text:
---
template: SinglePost
title: Two killed in separate wrecks in Bell County
status: Published
date: 2009-04-20
featuredImage: /images/accident-arround-austin.jpg
excerpt: Two people died in separate accidents Saturday in Bell County, said
  Glenn Miller, a spokeswoman for the Texas Department of Public Safety.
categories:
  - category: Accidents
meta:
  title: Two killed in separate wrecks in Bell County
  description: Two people died in separate accidents Saturday in Bell County, said
    Glenn Miller, a spokeswoman for the Texas Department of Public Safety.
---
<!--StartFragment-->

Two people died in separate accidents Saturday in Bell County, said Glenn Miller, a spokeswoman for the Texas Department of Public Safety.

According to authorities, at 5:30 p.m. a Jeep Cherokee crossed into incoming traffic on FM 93 southeast of Temple and collided with a Chevrolet pickup.

The driver of the Jeep, Kathren Turnbaugh, 43, died at the scene. The pickup driver, Billie Mahler, 82, and passenger Suma Mahler, 80, were hospitalized with major lacerations. The driver of a third vehicle, Tanesha Farmer, 38, suffered minor injuries when she drove into a drainage culvert to avoid a collision, Miller said.

- - -

Northwest of Belton on FM 439, Heather Lewis, 31, died in a head-on collision when the Toyota sedan she was driving veered into oncoming traffic at 11:20 p.m. and hit a Dodge pickup, according to reports.

She was pronounced dead at the scene, Miller said. The driver of the pickup, William Bonner, 46, was treated for minor injuries at the scene.

<!--EndFragment-->

repository: emmadigital/austinlaw

gha_language: JavaScript

repo_name: emmadigital/austinlaw


text:
Subsonic
========

wavepipe features an emulated [Subsonic](http://www.subsonic.org/pages/index.jsp) API, which can be used with
clients which implement the Subsonic API.

There are some fundamental incompatibilities with the data model of Subsonic vs. wavepipe's own data model,
but where possible, efforts are made to emulate Subsonic in the most sane way possible.

To see which Subsonic API endpoints are currently available with wavepipe, check [GoDoc](http://godoc.org/github.com/mdlayher/wavepipe/subsonic).

Clients which are known to work include:
  - [Clementine](https://www.clementine-player.org/)
  - [Subsonic for Android](https://play.google.com/store/apps/details?id=net.sourceforge.subsonic.androidapp&hl=en)

If you find another client which works, feel free to send a pull request!  If you experience any issues using
a client, please [file an issue](https://github.com/mdlayher/wavepipe/issues)!

## Howto

The emulated Subsonic API is exposed via the same HTTP server as wavepipe's own, but is nested under the
`/subsonic` path.  In order to use the Subsonic API, you must first authenticate using wavepipe's own API.

This can be done using `curl` as follows:

```
$ curl -X POST -d "username=test&password=test&client=subsonic" http://localhost:8080/api/v0/login
```

The wavepipe API will return a [Session](http://godoc.org/github.com/mdlayher/wavepipe/data#Session) object:

```json
{
	"error": null,
	"session": {
		"id": 1,
		"userId": 1,
		"client": "subsonic",
		"expire":<PHONE_NUMBER>,
		"key": "abcdef0123456789abcdef0123456789"
	}
}
```

Now that a wavepipe session has been generated, we may use the `key` as a "password" to access the Subsonic API.

```
$ curl http://localhost:8080/subsonic/rest/ping.view?u=test&p=abcdef0123456789abcdef0123456789&c=curl&v=1.8.0
<subsonic-response xmlns="http://subsonic.org/restapi" status="ok" version="1.8.0"></subsonic-response>
```

At this point, you have successfully authenticated to wavepipe's emulated Subsonic API.  Often, Subsonic clients
will ask for the following parameters:

| Name | Example | Description |
| :--: | :-----: | :---------: |
| host | `http://localhost:8080/subsonic` | The URL of your wavepipe server, with `/subsonic` path suffix. |
| username | `test` | The username used to authenticate to wavepipe's API. |
| password | `abcdef0123456789abcdef0123456789` | The API session key generated by wavepipe's API. |

Once these parameters have been set, you should be ready to go!

Feel free to [file an issue](https://github.com/mdlayher/wavepipe/issues) if you experience any trouble setting
up wavepipe to work with Subsonic clients.

license: MIT

repository: doniexun/wavepipe

branch_name: refs/heads/master

extension: md

license_type: permissive

repo_name: doniexun/wavepipe


text:
---
layout: default
---

# 1995-11-09 - Industry Group Rebuffs U.S. on Encryption

## Header Data

From: John Young<EMAIL_ADDRESS>To<EMAIL_ADDRESS>Message Hash: b43e69e0d46ab14a6513626c8b6b0f98513afc3c0868ba8628062f48e792580b

Message ID<EMAIL_ADDRESS>Reply To: _N/A_

UTC Datetime: 1995-11-09 03:14:09 UTC

Raw Date: Thu, 9 Nov 1995 11:14:09 +0800

## Raw message

```
{% raw  %}From: John Young<EMAIL_ADDRESS>Date: Thu, 9 Nov 1995 11:14:09 +0800
To<EMAIL_ADDRESS>Subject: Industry Group Rebuffs U.S. on Encryption
Message-ID<EMAIL_ADDRESS>MIME-Version: 1.0
Content-Type: text/plain

   The New York Times, November 8, 1995.

   Industry Group Rebuffs U.S. On Encryption

   By John Markoff

   The campaign by the Clinton Administration to create a
   standard for data encryption acceptable to industry, civil
   liberties and law enforcement groups broke down yesterday
   when a group including some of the nation's most powerful
   technology companies rejected a compromise proposal.

   The aim is to set a policy that meets the needs of
   electronic commerce as well as the concerns of the National
   Security Agency and other Federal offices that are opposed
   to the proliferation of data-coding software, feeling it
   will make it impossible for them to gather intelligence
   overseas.

   The Administration offered a compromise plan and had been
   seeking comment from the public. But the industry coalition
   said yesterday that it found the Government unwilling to
   compromise. Thus, the group of 37 companies said, it would
   formulate its own policy proposal to present to the White
   House and to Congress in the next six months.

   High-technology industries want a data-coding standard
   secure enough that both businesses and overseas customers
   could use it for sensitive financial and business
   correspondence. They seek a longer and more powerful
   encryption key than the Government is willing to grant, and
   object to Government demands that law enforcement agencies
   have "back-door" access to such transmissions that would
   allow them to intercept coded messages.

   The letter is signed by several of the country's leading
   computer, software and on-line companies, among them
   America Online, Apple Computer, AT&T, Eastman Kodak
   I.B.M.'s Lotus Development division, MCI Communications,
   Microsoft, Novell, Oracle Sybase and Tandem Computers.

   On Aug. 17, the Administration proposed a liberalization of
   export-control procedures for "key escrow" software
   products, or those providing law-enforcement access.

   "The current policy directive also does not address the
   need for immediate liberalization of current export
   restrictions," the letter said "Such liberalization is
   vital to enable U.S. companies to export state-of-the-art
   software products during the potentially lengthy process of
   developing and adopting a comprehensive national
   cryptography policy."

   [End]

----------

   The Washington Post, November 8, 1995

   Encryption Control Plan Sparks Industry Protest

      High-Tech Groups Say Proposals Unworkable

   By Elizabeth Corcoran

   High-technology companies and advocacy groups are writing
   to Vice President Gore and House Speaker Newt Gingrich to
   protest what they contend are unworkable federal proposals
   for controllng the export of data scrambling technology.

   The letters deepen an industry-government rift that began
   only days after federal officials unveiled an outline of
   what they hoped would be a palatable plan at an industry
   meeting in August.

   Two separate coalitions are criticizing the
   administration's draft proposal, which the government
   circulated on the Internet on Monday.

   Current export regulations prohibit companies froan sending
   overseas any encryption, or data-scrambling technology,
   that exceeds a certain degree of sophistication. The
   government argues that it needs to be able to peek at
   messages and files with proper court authorization -- to do
   its job of protecting U.S. citizens from terrorist groups
   and other malevolent organizations.

   In July, some French students demonstrated they could
   readily break the type of encryption technology that the
   U.S. government lets companies export. In August, the
   administration said it would let companies include more
   complex types of encryption, provided they pledged to
   entrust to an authorized agent a "spare key," or the means
   for unscrambling the information.

   Unlike early proposals in which the government said it
   would hold such keys, the administration is suggesting that
   companies and individuals would be able to select private
   keyholders, much the way people pick their banks.

   But after a brief honeymoon, industry and civil liberties
   groups began to find flaws with the details in the new
   proposals. This week's letters indicate that whatever
   fragile compromise the government had hoped it had found
   has grown even weaker.

   One coalition, pulled together by the Washington advocacy
   group Center for Democracy and Technology, includes about
   three dozen high-tech companies and associations. The group
   has promised to draft an alternative plan within six
   months.

   "There is a very serious message here: that national
   security can't be controlling the Internet," said Jerry
   Berman, executive director of the center. "There are other
   issues, global competitiveness and privacy, that need to be
   placed in the balance -- and the administration's policy
   doesn't do that."

   A second coalition of about 10 free-market and libertarian
   groups, led by another policy group, Americans for Tax
   Reform, plans to send their letter to Gingrich in the next
   day or two. The group contends the administration's
   encryption proposals are an encroachment on citizens' civil
   rights.

   The administration's proposals would not restrict tbe
   encryption technologies that people use within U.S.
   boundaries. But it would require that if they
   electronically send an encrypted message to parties outside
   the United States, a spare key must be stored with an
   authorized agency.

   "Even though we recognize [the administration] has worked
   hard on its proposals, it's not the right direction," said
   Rebecca Gould, director of policy at the Business Software
   Alliance, a trade association of software firms.

   "We've been in this [debate] since July 1994," she added,
   a long time for companies that churn out a new version of
   most products every 18 months. "That means lost sales for
   us and a loss of U.S. industry sales abroad."

   [End]

----------

Both slipped by gummed eyes, thx gnu.

{% endraw %}
```

## Thread

+ Return to [November 1995](/archive/1995/11)

+ Return to "[John Young <jya@pipeline.com>](/authors/john_young_jya_at_pipeline_com_)"

+ 1995-11-09 (Thu, 9 Nov 1995 11:14:09 +0800) - Industry Group Rebuffs U.S. on Encryption - _John Young<EMAIL_ADDRESS>

gha_license_id: MIT


text:
# Strategic action: Score the Goal

##### [Go back to main page](../../Documentation.md)

## Score Goal

Score Goal is one of the most important actions for the robots as it determines which team wins the game. Therefore, effective strategies for goal scoring should be considered carefully.

Figure 1 shows how the Score Goal works.

__Figure 1__: The flow of scoring the goal

As mentioned before, our team adopts the Decision Tree to control all the robots. In the **Decision Tree**, when a robot gets the ball, it needs to judge how far the opponents are from scoring a goal.

What is more, it also needs to check if ```scoring the goal is feasible``` that is mentioned in the supporting functions. This function will return **(x, y) coordinate**, which is the place that robot should kick to.

We reuse this function here and set the target position to the enemy's goal, thus, passing the ball to the enemy's net is equivalent to scoring the goal.

### Score Goal Implementation
The test case for this function is shown in Figure 2:

__Figure 2__: Visualisation of goal scoriing.

The process of goal scoring is implemented in three main functions.

#### 1) Check if a Team Has a Ball

This function returns a flag if any of the team's players are within contact distance to the ball.
If so, it returns the identifies.

In code, this function is defined with a static method

```def has_ball(game_info: list)```

The function uses the game information to judge if the robot has the ball and returns a boolean value.

#### 2) Check if a Robot Can Score a Goal

This function returns a flag, along with kick coordinates, if a robot with a ball can score a goal with a direct kick.
It reuses supporting functions to generate points on the net and check for possible collisions with robots along the kick trajectory.

In code, this function is defined with a static method

```def can_score(game_info: list, team_id) -> (direct_kick_feasible, kick_x, kick_y)```

This function helps to assess whether the recent location is feasible for robots to score a goal. More details are mentioned in the ***can_score()*** .

#### 3) Score the Goal

This function shares the code with _Pass the_Ball_ function. The only difference between discussed functions is that _Score the Goal_ refers to a stationary point on a net rather than another player.

In the code, this function is defined with a static method

```def score_goal(game_info,kick_x,kick_y) -> command ```

Using the output of the second function (***can_score()***), the robot will ***do score_goal()*** directly if the output is **True** (i.e., the robot is close to the opponent's goal and finds a feasible location to score a goal). The discussed situation is presented in Figure 3:  **No. 3** robot in the **Team 0** (shown in blue) scores the goal.

__Figure 3__: Visualisation of goal scoring.

branch_name: refs/heads/main

gha_language: Python


text:
{% capture perform_graph_01 %}
**NOTE** : The Max Torque and the Stall Torque of Performance Graph are different in measurement methods.
Stall torque is a measured value of the momentary torque that it can reach. This is generally how RC servos are measured.
The Performance graph is also called as N-T curves, which is measured with the gradually increasing load.
The actual motor operation environment is closer to the performance graph, not stall torque method.
For this reason, the performance graph is broadly used in the industrial field.
Generally, Max Torque of the Performance Graph is less than the Stall Torque.
{% endcapture %}

{{ perform_graph_01 | markdownify }}

{% capture caution_power %}
**CAUTION : When supplying power**
{% unless page.product_group == 'dxl_p' or page.product_group == 'dxl_pro' or page.product_group == 'dxl_pro_a' or page.ref == 'xh430-v210'or page.ref == 'xh430-v350'or page.ref == 'xh540-v150' or page.ref == 'xh540-v270' %}
- It is recommended using ROBOTIS controller or SMPS2DYNAMIXEL.
{% endunless %}
- Do not connect or disconnect DYNAMIXEL when power is being supplied.
{% if page.product_group=='dxl_pro' or page.product_group=='dxl_pro_a' or page.product_group=='dxl_p' or page.ref=='xh430-v210' or page.ref=='xh430-v350'or page.ref=='xh540-v150' or page.ref=='xh540-v270' %}
- In case of DYNAMIXEL PRO and DYNAMIXEL-P, please supply power through 24V power port.
{% else %}
{% endif %}

{% endcapture %}

{{ caution_power | markdownify }}

repository: ROBOTIS-GIT/emanual

repo_name: ROBOTIS-GIT/emanual


text:
---
name: Bug report
about: Report a bug in the project
---

<!-- Thank you for your contribution. Before you submit the issue:
1. Search open and closed issues for duplicates.
2. Read the contributing guidelines.
-->

**Description**

<!-- Provide a clear and concise description of the problem.
Describe where it appears, when it occurred, and what it affects.  -->

<!-- Provide relevant technical details such as the Kubernetes version, the cluster name and provider, the Kyma version, the browser name and version, or the operating system. -->

**Expected result**

<!-- Describe what you expect to happen. -->

**Actual result**

<!-- Describe what happens instead. -->

**Steps to reproduce**

<!-- List the steps to follow to reproduce the bug. Attach any files, links, code samples, or screenshots that could help in investigating the problem. -->

**Troubleshooting**

<!-- Describe the steps you have already taken to solve the issue. -->

repository: kyma-project/kyma

gha_language: Go

repo_name: kyma-project/kyma


text:
---
path: redeyecpa.com
date: 2020-10-16T20:54:40.922Z
title: How to fill out form 8300?
description: Tips on how to file form 8300
---
So.. you got paid in cash. What now? Well, first of all, spend it wisely.  Second of all, make sure you comply with the IRS cash reporting requirements.

The IRS combats money laundering and wants to track any large movements of cash. A person that received a large amount of money may be required to file form 8300.

**Question:** In what cases am I required to submit form 8300?
**Answer**: Whenever you receive 10k as a lump sum. Or when you accept smaller amounts, they amount to 10k, and you received them within 24 hours. You should also file the form if you receive cash within 12 months, and each payment is a part of the same deal.
Also, only business transactions need to be reported. One-time personal payments do not have a reporting requirement.

**Question:** What do I consider cash?
**Answer:** Money, cashier checks, money orders, and bank drafts are considered cash. A personal check connected to the buyer’s bank account is not cash, and you don't have to report it.

**Question:** What's the deadline?                                                                                **Answer:** You are required to file the form within 15 days from a transaction. You will pay $270 (as of 2020) if you forget to submit the form. Penalties for intentional late filing are much higher and include criminal sanctions.

**Here are some tips that will help you to file your first form 8300:**
**Collect buyers information:**
Before the meeting, inform your client that you will need the following documents:

1. ID (driver license will do) and SS number of the person delivering the cash. It is enough to take a picture of both documents.
2. Form W-9 for the business entity. This paper does not get filed with the IRS. The buyer fills out and signs this form for your records.

It is crucial to collect this information before or during a sale. In my experience, there is very little chance that the buyer would be willing to provide the information after your meeting is over. Filing responsibility is on you and not on the buyer and the buyer has no incentive to provide you with their personal information.

3. Make sure to record how many $100 bills were in the payment. This information goes in Part III of the return.

   ![cash reporting in Cannabis Industry](../assets/f8300-1.png "Form 8300 instructions")

   **What to do if the client is not responding?**                                                                                If you cannot get all of the necessary information from your buyer, try to do your best. Contact the client in a written form and ask again. If the client refuses to communicate or ignores your attempts, keep a copy of all of your communication. This will be proof of your compliance. Complete form 8300 with the information you have on file, and attach a statement explaining your attempts to collect the missing data.

   **How to file:**
   You can file this form online or send it via mail. If mailing to the IRS, remember that the day of filing is the day you mailed the envelope. So, if you post the form precisely 15 days after the transaction, you will be in good shape as long as you keep proof of mailing.

   **Statement to the buyer:**
   By January 31st, you will have to furnish your client with a statement that informs them of your 8300 form filings activity. The report is in free form but should include the following information:  contact information of both parties, the total amount of reportable cash in the past year, and notification that the company provided the information mentioned above to the IRS.
   The IRS imposes enormous penalties for failure to provide statements to buyers. So, make sure that you send them out by the end of January.

   That's all. You can read up on details here:  https://www.irs.gov/pub/irs-pdf/p1544.pdf


text:
# Art & Logic

## Company blurb

We have built software for over 900 clients from a diverse set of industries including education, aerospace, music technology, consumer electronics, entertainment, financial services, and many more. Coding the "impossible."™

## Company size

Over 50

## Remote status

Art & Logic developers all work remotely from across the US and Canada. Most of us work from our home offices, but some of us prefer to rent office space or work at a coworking facility. We do our best to accommodate the unique schedule and work-style requirements of our people, but because our work is highly collaborative within project teams, it’s important that everyone have a reasonable amount of overlap with traditional middle-of-the-day business hours. This means that we’re not a suitable option for anyone looking to pick up a handful of night & weekend moonlighting hours. We’re only considering developers who are able to regularly work 30 or more billable hours per week.

Being a distributed company is built into Art & Logic’s DNA — since being founded in 1991, we’ve acquired, built, and stumbled across tools and practices that let us work efficiently and productively, even though no two of us are in the same location.
For most of our collaboration, we rely on the suite of tools provided as part of Google Apps for Business — we use Docs for shared documents, Groups for project-specific communications (both within the team and between Art & Logic and clients), and Hangouts/GChat for real-time voice/video communication.

From reading the trade magazines, you’d think that there wasn’t any development talent once you got 50 miles outside of the Bay Area, except for a few small pockets of talent in New York City and Boston.  We also disagree with the idea that work is mostly a place you go — it’s a thing you do, and given the right environment, support, and culture, you should be able to do great work from wherever you work best. For most of us at Art & Logic, that workspace is at home, where we can maintain control of noise, distractions, and other factors that can make it difficult to remain productive throughout the work day.

We like to say that we don’t telecommute, because there’s no place for us to telecommute to. If you’ve had bad experiences working remotely in the past because you’ve been left out of what was happening in ‘the office’ — we’re different. The tools, infrastructure, and work practices that we’ve adopted over the years let us work together effectively, efficiently, and very collaboratively without regard to the physical distances between any two of us.

## Region

US and Canada

## Company technologies

We work with an extensive range of languages and technologies.

* C++
* Python
* Objective C
* PHP
* JavaScript
* ActionScript
* Ruby
* Java
* C#
* Git

## Office locations

Headquarters in Pasadena, CA and offices throughout the US.

## How to apply

We’re always looking for great developers, whether we have an immediate place for them or not. Our recruiting process runs continuously in the background, identifying people we’d like to work with as soon as an appropriate opportunity surfaces. When the rate of new projects starting exceeds the rate of existing projects being completed, we reach out to that group of already vetted developers, looking for the best match of skills, availability, and likelihood of long-term success at Art & Logic.

Careers page [here](https://artandlogic.com/careers/) and general application [here](https://artandlogic.com/apply/).

repository: remoteintech/remote-jobs

repo_name: remoteintech/remote-jobs


text:
---
id: 4718
title: Cynthia Gerlein-Safdi receives Mary and Randall Hack ‘69 Graduate Award
date: 2016-07-14T16:12:13+00:00
author: Cynthia Gerlein-Safdi
guid: http://caylor.princeton.edu/?p=4718
permalink: /2016/07/14/cynthia-gerlein-safdi-receives-mary-and-randall-hack-69-graduate-award/
categories:
  - Funding
  - News
  - Research
tags:
  - Hack Award
  - PEI
  - Dryland Ecohydrology
  - Environmental Sensing
  - Cynthia Gerlein-Safdi
  - Award
excerpt: "Cynthia Gerlein-Safdi just got awarded the Mary and Randall Hack ‘69 Graduate Award by the Princeton Environmental Institute"
---

  [Cynthia Gerlein-Safdi]({{ site.baseurl }}{% link _people/gerlein-safdi.md %})
 just got awarded the Mary and Randall Hack ‘69 Graduate Award by the Princeton Environmental Institute. The Mary and Randall Hack ’69 Award provides research funding to support Princeton University graduate students pursuing innovative research on water and water-related topics with implications for the environment. Cynthia is planning on using the award for her project mapping dew formation in tropical forests using the QuikSCAT satellite.

  See the PEI announcement HERE.


text:
# webots_ros2_universal_robot

This package provides an interface between ROS2 and the [UR3e, UR5e and UR10e simulation models](https://cyberbotics.com/doc/guide/ure) of the [Universal Robots](https://www.universal-robots.com) running in Webots.
It includes several simulations of these robots.

## universal_robot Node

This node acts as a Webots robot controller.
It publishes the `/joint_states` topic that represents the state of all the joints of the robot.
And it provides the `/follow_joint_trajectory` action server that allows you to send joint trajectory action to the robot.

## Samples Simulations

The following simulations are provided within this package:

### universal_robot

This simulation can be started with the following launch file:
```
ros2 launch webots_ros2_universal_robot universal_robot.launch.py
```

![Universal Robot Image](./assets/universal_robot.png)
This simulation contains one UR5e robot in a very simple environment.

### universal_robot_rviz_dynamic

This simulation uses a new Webots feature to export URDF.
Therefore, you will be able to change the robot model in Webots and to see the changes in RViz.

```
ros2 launch webots_ros2_universal_robot universal_robot_rviz_dynamic.launch.py
```

> Note that the visual elements are still not supported, only the transforms will be shown.

### universal_robot_multiple

This simulation can be started with the following launch file:
```
ros2 launch webots_ros2_universal_robot universal_robot_multiple.launch.py
```

![Multiple Universal Robots](./assets/universal_robot_multiple.png)
This simulation contains a UR3e and a UR5e robot in a simple factory environment.
This is a very good example showcasing how to use the multi-robots support with the Webots-ROS2 interface.

### universal_robot_lidar

This world contains UR5e robot with 3D LiDAR.

```bash
ros2 launch webots_ros2_core robot_launch.py \
    executable:=webots_robotic_arm_node \
    world:=$(ros2 pkg prefix webots_ros2_universal_robot --share)/worlds/universal_robot_lidar.wbt
```

## Interact with the Robot
### Move the Robot
The `/follow_joint_trajectory` action server can be tested directly using the [ROS2 action CLI](https://index.ros.org/doc/ros2/Tutorials/Introspection-with-command-line-tools) interface to move the robot (if more than one robot is present in the simulation, the action name should be changed, e.g. `/UR3e/follow_joint_trajectory`):
```
ros2 action send_goal /follow_joint_trajectory control_msgs/action/FollowJointTrajectory "{
  trajectory: {
    joint_names: [shoulder_pan_joint, shoulder_lift_joint, elbow_joint, wrist_1_joint, wrist_2_joint, wrist_3_joint],
    points: [
      { positions: [3.02, -1.63, -1.88, 1.01, 1.51, 1.13], velocities: [0.1, 0.1, 0.1, 0.1, 0.1, 0.1], accelerations: [0.1, 0.1, 0.1, 0.1, 0.1, 0.1], time_from_start: { sec: 5, nanosec: 500 } },
      { positions: [-1.01, 0.38, -0.63, -0.88, 0.25, -1.63], velocities: [0.1, 0.1, 0.1, 0.1, 0.1, 0.1], accelerations: [0.1, 0.1, 0.1, 0.1, 0.1, 0.1], time_from_start: { sec: 6, nanosec: 500 } },
      { positions: [-1.01, 0.38, -0.63, -0.88, 0.25, 6.2], velocities: [0.1, 0.1, 0.1, 0.1, 0.1, 0.1], accelerations: [0.1, 0.1, 0.1, 0.1, 0.1, 0.1], time_from_start: { sec: 50, nanosec: 500 } }
    ]
  },
  goal_tolerance: [
    { name: shoulder_pan_joint, position: 0.01 },
    { name: shoulder_lift_joint, position: 0.01 },
    { name: elbow_joint, position: 0.01 },
    { name: wrist_1_joint, position: 0.01 },
    { name: wrist_2_joint, position: 0.01 },
    { name: wrist_3_joint, position: 0.01 }
  ]
}"
```

### Display the Joint State
The joint state (`/joint_states` topic) can be displayed directly using the [ROS2 topic CLI](https://index.ros.org/doc/ros2/Tutorials/Introspection-with-command-line-tools) interface (if more than one robot is present in the simulation, the action name should be changed, e.g. `/UR3e/joint_states`):
```
ros2 topic echo /joint_states
```


text:
---
title: Core Concepts
eleventyNavigation:
    key: core concepts
    title: Core Concepts
    parent: use eslint
    order: 2
---

This page contains a high-level overview of some of the core concepts of ESLint.

## What is ESLint?

ESLint is a configurable JavaScript linter. It helps you find and fix problems in your JavaScript code. Problems can be anything from potential runtime bugs, to not following best practices, to styling issues.

## Rules

Rules are the core building block of ESLint. A rule validates if your code meets a certain expectation, and what to do if it does not meet that expectation. Rules can also contain additional configuration options specific to that rule.

For example, the [`semi`](../rules/semi) rule lets you specify whether or not JavaScript statements should end with a semicolon (`;`). You can set the rule to either always require semicolons or require that a statement never ends with a semicolon.

ESLint contains hundreds of built-in rules that you can use. You can also create custom rules or use rules that others have created with [plugins](#plugins).

For more information, refer to [Rules](../rules/).

## Configuration Files

An ESLint configuration file is a place where you put the configuration for ESLint in your project. You can include built-in rules, how you want them enforced, plugins with custom rules, shareable configurations, which files you want rules to apply to, and more.

For more information, refer to [Configuration Files](./configure/configuration-files).

## Shareable Configurations

Shareable configurations are ESLint configurations that are shared via npm.

Often shareable configurations are used to enforce style guides using ESLint's built-in rules. For example the sharable configuration [eslint-config-airbnb-base](https://www.npmjs.com/package/eslint-config-airbnb-base) implements the popular Airbnb JavaScript style guide.

For more information, refer to [Using a shareable configuration package](./configure/configuration-files#using-a-shareable-configuration-package).

## Plugins

An ESLint plugin is an npm module that can contain a set of ESLint rules, configurations, processors, and environments. Often plugins include custom rules. Plugins can be used to enforce a style guide and support JavaScript extensions (like TypeScript), libraries (like React), and frameworks (Angular).

A popular use case for plugins is to enforce best practices for a framework. For example, [@angular-eslint/eslint-plugin](https://www.npmjs.com/package/@angular-eslint/eslint-plugin) contains best practices for using the Angular framework.

For more information, refer to [Configure Plugins](./configure/plugins).

## Parsers

An ESLint parser converts code into an abstract syntax tree that ESLint can evaluate. By default, ESLint uses the built-in [Espree](https://github.com/eslint/espree) parser, which is compatible with standard JavaScript runtimes and versions.

Custom parsers let ESLint parse non-standard JavaScript syntax. Often custom parsers are included as part of shareable configurations or plugins, so you don't have to use them directly.

For example, [@typescript-eslint/parser](https://www.npmjs.com/package/@typescript-eslint/parser) is a custom parser included in the [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint) project that lets ESLint parse TypeScript code.

## Custom Processors

An ESLint processor extracts JavaScript code from other kinds of files, then lets ESLint lint the JavaScript code. Alternatively, you can use a processor to manipulate JavaScript code before parsing it with ESLint.

For example, [eslint-plugin-markdown](https://github.com/eslint/eslint-plugin-markdown) contains a custom processor that lets you lint JavaScript code inside of Markdown code blocks.

## Formatters

An ESLint formatter controls the appearance of the linting results in the CLI.

For more information, refer to [Formatters](./formatters/).

## Integrations

One of the things that makes ESLint such a useful tool is the ecosystem of integrations that surrounds it. For example, many code editors have ESLint extensions that show you the ESLint results of your code in the file as you work so that you don't need to use the ESLint CLI to see linting results.

For more information, refer to [Integrations](./integrations).

## CLI & Node.js API

The ESLint CLI is a command line interface that lets you execute linting from the terminal. The CLI has a variety of options that you can pass to its commands.

The ESLint Node.js API lets you use ESLint programmatically from Node.js code. The API is useful when developing plugins, integrations, and other tools related to ESLint.

Unless you are extending ESLint in some way, you should use the CLI.

For more information, refer to [Command Line Interface](./command-line-interface) and [Node.js API](../integrate/nodejs-api).

repository: eslint/eslint

repo_name: eslint/eslint


text:
[![image](https://img.shields.io/pypi/v/mglg.svg)](https://pypi.python.org/pypi/mglg)
![Build](https://github.com/aforren1/mglg/workflows/Build/badge.svg)

Built-for-purpose, minimal 2D graphics library.

Working on documentation, but the file [examples/jamboree.py](https://github.com/aforren1/mglg/blob/master/examples/jamboree.py) is pretty comprehensive.

To pre-create the glyphs and atlas, there's a command line tool, e.g.:

```bash
python -m mglg.util.prebake_font examples\UbuntuMono-B.ttf fonts\
```

Which saves a pickled file (in this case, `fonts\UbuntuMono-B.pklfont`) that includes the atlas, glyphs, and other info to avoid touching the font file. Add `--view` to see the atlas.

`freetype-py` is required to generate pickled fonts or do on-the-fly font loading, and can be installed either via `pip install freetype-py` or `pip install mglg[freetype]`.


text:
---
title: 'Bayesian Coresets and Edward'
date: 2019-01-24
permalink: /posts/2019-01-24-coresets1
tags:
  - coreset
  - edward
  - Bayes
---

Modern datasets often contain a large number of redundant samples, making the storing of data and the learning of models expensive. Coreset computation is an approach to reduce the amount of samples by selecting (and weighting) informative samples and discarding redundant ones.

In Bayesian statistics, Bayesian coresets are designed to preserve a limited number of samples, while guaranteeing that the posterior learned from a coreset would be close to the posterior learned from the whole dataset. An excellent explanation of Bayesian coresets and their application is offered in this [video](https://www.youtube.com/watch?v=Moo4-KR5qNg) from ICML18.

In this notebook, we run a tutorial in which we explore the computation of Bayesian coresets as proposed in [this article](https://arxiv.org/abs/1710.05053) and [this article](https://arxiv.org/abs/1802.01737). In particular we integrate the [original code](https://github.com/trevorcampbell/bayesian-coresets) with the [Edward](http://edwardlib.org/) framework, thus exploiting the functions often by probabistic programming to further automate the computation of coresets.

[Notebook here](https://nbviewer.jupyter.org/github/FMZennaro/BayesianCoresets-Edward/blob/master/1.%20BayesianCoresets%20-%20Example%20with%20Edward.ipynb)

[ ](https://emilykesling.github.io/)


text:
# Google Spreadsheets + AlaSQL

AlaSQL can query data directly from a google spreadsheet - so its easy to edit the raw data in the spreadsheet and make manipulations like grouping, filtering, or saving to XLSX directly in your app. The feature depends on the plugin [Tabletop library](https://github.com/jsoma/tabletop).

```html
<script src='https://cdnjs.cloudflare.com/ajax/libs/tabletop.js/1.4.2/tabletop.min.js'></script>
<script src="//cdn.jsdelivr.net/alasql/0.2/alasql.min.js"></script>

<div id="res"></div>

<script>
    var url = 'https://docs.google.com/spreadsheet/pub?hl=en_US&hl=en_US&key=0AmYzu_s7QHsmdDNZUzRlYldnWTZCLXdrMXlYQzVxSFE&output=html';

    alasql('SELECT * INTO HTML("#res",{headers:true}) FROM TABLETOP(?) WHERE name < "D" ORDER BY category',[url]);
</script>
```

Play with this example [in jsFiddle](http://jsfiddle.net/tov0zcmd/)

Remember to publish your spreadsheet. In case of problem read this [StackoOverflow question](http://stackoverflow.com/questions/28059346/get-json-feed-from-published-google-sheet).

More info about [the `TABLETOP` keyword](TABLETOP)

license: MS-PL,MIT

detected_licenses: MS-PL MIT


text:
# Rossman Store Sales

A data science project to predict rossman daily sales for up to six weeks in advance.

## Dataset Information

This dataset was originally used in a [Kaggle competition](https://www.kaggle.com/c/rossmann-store-sales) and it was provided with historical sales data for 1,115 Rossmann stores. The task is to forecast the "Sales" column for the test set. However, here it was used to create a data science project.  This project is part of the [Seja um Data Scientist](https://sejaumdatascientist.com/como-ser-um-data-scientist/) (*Be a Data Scientist*) course. It's a course that aims to prepare the data scientist for the process of a data science project.

### Features

Most of the fields are self-explanatory. The following are descriptions for those that aren't.

* **Id** - an Id that represents a (Store, Date) duple within the test set
* **Store** - a unique Id for each store
* **Sales** - the turnover for any given day (this is what you are predicting)
* **Customers** - the number of customers on a given day
* **Open** - an indicator for whether the store was open: 0 = closed, 1 = open
* **StateHoliday** - indicates a state holiday. Normally all stores, with few exceptions, are closed on state holidays. Note that all schools are closed on public holidays and weekends. a = public holiday, b = Easter holiday, c = Christmas, 0 = None
* **SchoolHoliday** - indicates if the (Store, Date) was affected by the closure of public schools
* **StoreType** - differentiates between 4 different store models: a, b, c, d
* **Assortment** - describes an assortment level: a = basic, b = extra, c = extended
* **CompetitionDistance** - distance in meters to the nearest competitor store
* **CompetitionOpenSince[Month/Year]** - gives the approximate year and month of the time the nearest competitor was opened
* **Promo** - indicates whether a store is running a promo on that day
* **Promo2** - Promo2 is a continuing and consecutive promotion for some stores: 0 = store is not participating, 1 = store is participating
* **Promo2Since[Year/Week]** - describes the year and calendar week when the store started participating in Promo2
* **PromoInterval** - describes the consecutive intervals Promo2 is started, naming the months the promotion is started anew. E.g. "Feb,May,Aug,Nov" means each round starts in February, May, August, November of any given year for that store

## Context

>This context was created by [Meigarom](https://github.com/meigarom) during [Data Science em Produção](https://sejaumdatascientist.com/como-ser-um-data-scientist/) (*Data Science in Production*) Course. So this is a totally fictional context.

The stakeholder need investment in store renovation, but they don't know how much it will cost. Therefore they ask the data scientist to create a project to help them to idealize a solution for this problem, in other words, predict the sales for up to six weeks in advance. If they know the store's sales they can use part of the revenue to reinvest in renovation of the stores.

### Objective

Create a data science project to predict daily sales for up to six weeks in advance.

## Methodology

This project will be based on Cross-industry standard process for data mining (CRISP-DM). A standard idea about data science project may be linear: data preparation, modeling, evaluation and deployment. However, when we use CRISP-DM methodology a data science project become circle-like form. Even when it ends in Deployment, the project can restart again by Business Understanding. How might it help?

It may help to avoid the data scietist to stop in one specific step and wast time on it. When all the project is completed the data scientist can return to initial step and do every step again. Therefore, the main goal it is to follow circles as it needs.

### Pipeline

* Opening

* Data Description

* Feature Engineering

* Data Analysis

* Data Preparation

* Feature Selection

* Machine Learning Models

* Hyperparameter Fine Tuning

* Traduciton and Error's Interpretation

* Model Deploy

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.


text:
# SupperMassiveFab Breakout

The application is prototype of common known _*Breakout game*_. Player should control the panel at the bottom of the games pace, he/she can move it to the left or to the right by clicking on the corresponding button. His/her goal is to keep a flying ball in game space and to lead ball in the direction of the bricks. Each time ball hits the brick -> brick breaks (a bit); after several hits, the brick destroys. Player wins if all bricks are destroyed and looses if he/she missed ball three times (i.e. lost three lives). During the game process, player can see the buffs, if player collects them with a platform -> he/she can get more scores or one additional life.

### Features:
* Bricks has different type of "breakness"
* Player can collect buffs to enlarge scores and get more lives

### Control:
* LEFT and RIGHT to move platform
* ESC to call in-game menu

## Project configuration

1. Open up Eclipse.
2. Create a new java project and select the folder containing this seed.
2. Go to Project Menu  --> Properties in the menu bar.
3. Click on Java Build Path.
4. click the Add Jar button.
5. Select the *lib* folder in your project.
6. Select all the *.jar* files and click OK.
7. Expand *lwjgl.jar*.
8. Select *Natives Library Location* and click the Edit button.
9. Click the Workspace button.
10. Select the *native* folder in your project
11. Select your operating system and click OK until you get back to the default eclipse window.
12. Press play to check if it works.

## Build runnable JAR file:
To generate an executable version of the game you will need to use JarSplice:

1. Use _ Eclipse _
2. Choose File -> Export
2. Click on Java and select * JAR File * .
3. Select current project in the Lunch configuration .
4. Select _ Extract generated classes files and resources _ ,
5. Select all _ Options _ in the bottom of the window.
6. Press _ Finish _ .
7. Download JarSplice at http://ninjacave.com/jarsplice and execute it (double-click on it).
8. Select * ADD JARS *, press the * Add Jar(s) * button in the bottom and select the previously exported JAR file, as well as, go to the _ lib _ game folder and select all Jars.
9. Select * ADD NATIVES * , press the Add Native(s) button in the bottom, go to you projects native library and select files for your OS.
10. Select * MAIN CLASS * , and in the Enter Main Class area type in the name of your main class including the name of the package : game.GameSpace
11. Select * CREATE FAT JAR * and press the Create Fat Jar button.
12. * Now you can play *

***
Authors: Jelizaveta Zovnercuka, Kristians Konovalovs, Germans Savcisens
***
Aalborg University - Copenhagen , 2015

repository: faradayDK/SupperMassiveFabBreakout

repo_name: faradayDK/SupperMassiveFabBreakout


text:
# Pointers

The pointer type belongs to the `special datatypes`,
having extra operators and syntax.

A normal pointer's size is 8 bytes and only points to a memory location where a single value is stored. Objects and variables of datatypes but not functions.

They can point to other function pointers.

The `ptr` keyword defines pointers:

```
string ptr ptrvar;
```

A pointer needs to have it's type named before. Leaving the type blank doesn't initiate a C-like "void" pointer.

Pointers can be assigned to other pointers, meaning they point to the same location.

```
ptrvar = otherstringptr;
```

Besides that, they are assigned to memory locations of other variables / values via the ampersand operator `&`.

```
ptrvar = &somestring;
```

If there is no personal favour in getting the memory location at first, the "pointing-to" operator `=>` can be used:

```
ptrvar => somestring;
```

The dereference operator `*` allows to get the value of the memory location it's being pointed on.

C-like dereferencing on assignment is not possible, but this is:

```
ptrvar = otherstringptr;
# is the same as
ptrvar => *otherstringptr;
```

repository: yungcxn/mond

repo_name: yungcxn/mond


text:
# Changes to PostCSS Color Functional Notation

### 2.0.1 (September 18, 2018)

- Updated: PostCSS Values Parser 2 (patch for this project)

### 2.0.0 (September 17, 2018)

- Updated: Support for PostCSS v7+
- Updated: Support for Node 6+

### 1.0.2 (July 13, 2018)

- Fixed: Poorly detected hsl() and rgb() now resolve correctly

### 1.0.1 (May 11, 2018)

- Fixed: A non-percentage 0 works alongside other percentages

### 1.0.0 (May 7, 2018)

- Initial version

repository: jeffmcfadden/PiThermostat

gha_language: Ruby

repo_name: jeffmcfadden/PiThermostat


text:
# Sulcopyrenula staurospora (Tuck. ex Willey) H. Harada SPECIES

#### Status
ACCEPTED

#### According to
The Catalogue of Life, 3rd January 2011

#### Published in
Lichenologist 31(6): 571 (1999)

#### Original name
Pyrenula staurospora Tuck. ex Willey

### Remarks
null

repository: mdoering/backbone

repo_name: mdoering/backbone


text:
# csvfix

Just a quick script to "fix"/normalise CSV files, such as actually making it
comma-separated (it's not called a CSV for nothing...), and converting the
decimal point to a `.`.

Might add more settings later.

```
usage: csvfix.py [-h] [-H] [-d DELIMITER] [-D DECIMAL] [-t THOUSANDS] file

positional arguments:
  file                  the input file

optional arguments:
  -h, --help            show this help message and exit
  -H, --headings        whether the input file has headings
  -d DELIMITER, --delimiter DELIMITER
                        the input file's delimiter character
  -D DECIMAL, --decimal DECIMAL
                        the input file's decimal delimiter
  -t THOUSANDS, --thousands THOUSANDS
                        the input file's thousands separator
```

repository: vijfhoek/csvfix

repo_name: vijfhoek/csvfix


text:
# Full-text File Search

If you're using a Pro Edition Server, you can search file and folder names, as well as the content of certains files, in the Seafile web app. Currently Seafile can search the contents of the following file types:

* Microsoft Office Doc: .doc, .docx (Pro Edition Server only)
* Microsoft Office PowerPoint: .ppt, .pptx (Pro Edition Server only)
* Microsoft Office Excel: .xls, .xlsx (Pro Edition Server only)
* LibreOffice files
* PDF files
* Markdown files: .md
* Various source code files
* Text files: .txt, .log

Note that your Seafile system administrator may not have enabled the full-text search feature. In that case, you can only search file and folder names.

repository: haiwen/seafile-user-manual

gha_language: CSS

repo_name: haiwen/seafile-user-manual


text:
---
Categories : ["ZSH","MacOS","WSL","Linux"]
Tags : ["ZSH","MacOS","WSL","Linux"]
title : "ZSH : Oh My ZSH with Powerlevel10k"
date : 2023-05-01
draft : false
toc: true
---

You will find in this article, the steps to install [ZSH](https://www.zsh.org/) with [Oh My ZSH](https://ohmyz.sh/) and the theme [Powerlevel10k](https://github.com/romkatv/powerlevel10k).

More specifically, for [MacOS](https://www.apple.com/fr/macos/ventura/) and [Windows WSL](https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux) configuration.

<!--more-->

# Tools installation

## For MacOS

The steps are :
1. Installation of [Xcode](https://apps.apple.com/fr/app/xcode/id497799835?mt=12)
2. Installation of [Homebrew](https://brew.sh/index_fr) (package manager)
3. Installation of [iTerm2](https://iterm2.com/) , [ZSH](https://www.zsh.org/), [FZF](https://github.com/junegunn/fzf), [FD](https://github.com/sharkdp/fd), [Tree](https://www.computerhope.com/unix/tree.htm)
4. Installation of [Oh My ZSH](https://ohmyz.sh/)

The commands are :
```bash
# Step 1 : Xcode
xcode-select --install

# Step 2 : Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

# Step 3 : iTerm2, ZSH, FZF, FD, TREE
brew install iterm2 zsh fzf fd tree

# Step 4 : Oh My ZSH
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

```

## For Windows WSL (and Linux)

The steps are :
1. Installation of [Windows Terminal](https://apps.microsoft.com/store/detail/windows-terminal/9N0DX20HK701)
2. Installation of [Windows WSL Ubuntu](https://ubuntu.com/wsl)
3. Connect to WSL 2 with `Windows Terminal` and update `Ubuntu`
4. Installation of [ZSH](https://www.zsh.org/), [FZF](https://github.com/junegunn/fzf), [FD](https://github.com/sharkdp/fd), [Tree](https://www.computerhope.com/unix/tree.htm)
5. Installation of [Oh My ZSH](https://ohmyz.sh/)

```bash
# Step 2 : Windows WSL Ubuntu

## Install WSL
wsl --install -d ubuntu

## Check version
wsl -l -v

## Set WSL2 if needed
wsl --set-version ubuntu 2

# Step 3 : Update Ubuntu
sudo apt update && sudo apt upgrade

# Step 4 : Installation of zsh fzf fd-find tree
sudo apt install zsh fzf fd-find tree

# Step 5 : Oh My ZSH
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# Do you want to change your default shell to zsh? [Y/n]
Y

```

# Tools configuration

## Alias

1. Create a config file to store all your alias `~/.alias`
2. Add the link to the alias config file `~/.alias` in your ZSH config file `~/.zshrc`

For MacOS & Linux :
```bash

# Step 1 : Alias file creation
touch ~/.alias

# Step 2 : Add the Alias config file in ZSH config file
echo "[[ ! -f ~/.alias ]] || source ~/.alias" >> ~/.zshrc

```

For Windows WSL
```bash

# Step 1 : Alias file creation
echo "alias fd=fdfind" >> ~/.alias

# Step 2 : Add the Alias config file in ZSH config file
echo "[[ ! -f ~/.alias ]] || source ~/.alias" >> ~/.zshrc

```

## Oh My ZSH Plugins

1. Installation of [powerline fonts](https://github.com/powerline/fonts.git) (you'll find more instructions on this [link](https://github.com/romkatv/powerlevel10k#manual-font-installation))

For MacOS & Linux :
```bash
git clone https://github.com/powerline/fonts.git
cd fonts
./install.sh
```

For Windows (with `Windows Terminal`)  :
```bash
# Change the current user execution policy
set-executionpolicy -scope CurrentUser -executionPolicy Unrestricted
get-executionpolicy -list

# Install Fonts
git clone https://github.com/powerline/fonts.git
cd fonts
.\install.ps1

# Change the current user execution policy
set-executionpolicy -scope CurrentUser -executionPolicy Default

```

2. Installation of the Powerlevel10k theme and the plugins (manually)
```bash

# Install Theme
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k

# Install plugins
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone --depth 1 https://github.com/unixorn/fzf-zsh-plugin.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/fzf-zsh-plugin
git clone --depth 1 https://github.com/aubreypwd/zsh-plugin-fd ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-plugin-fd

```

3. Modification of the ZSH config file : `~/.zshrc`

```bash
# Replace the ZSH_THEME config
ZSH_THEME="powerlevel10k/powerlevel10k"

# Replace the PLUGINS config
plugins=(
    git
    zsh-autosuggestions
    zsh-syntax-highlighting
    fzf-zsh-plugin
    zsh-plugin-fd
)

```

## Iterm2 (for MacOS)

1. Get the desired [iTerm2 color schemes](https://github.com/mbadolato/iTerm2-Color-Schemes)

2. Change fonts : Navigate to `iTerm2 > Preferences > Profiles > Text > Font`
    1. Choose `MesloLGS NF`
    2. Check option : `Use ligatures`

3. Import color scheme : Navigate to `iTerm2 > Preferences > Profiles > Colors`
    1. Click on `Color Presets ...` and choose `Import...`
    2. Click on your desired iTerm2 color scheme (from step n°1)

4. Add Key mapping : Navigate to `iTerm2 > Preferences > Profiles > Keys > Key Mappings`
    1. Choose the icon `+`
    2. Add the following key map

| Shortcut | Action | Esc+ |
|:--|:--:|:--|
| `⌘←` | Send Escape Sequence | `OH` |
| `⌘→` | Send Escape Sequence | `OF` |
| `⌥←` | Send Escape Sequence | `b` |
| `⌥→` | Send Escape Sequence | `f` |

## Windows Terminal (for Windows WSL)

1. Get your desired color scheme from [windowsterminalthemes.dev](https://windowsterminalthemes.dev/)
2. Open the Windows Terminal and navigate to `Windows Terminal > Settings`
    1. Go to `Startup`
        1. Default Profile : `Ubuntu`
        2. Default terminal application : `Windows Terminal`
    2.  Paste the color scheme in the `schemes` JSON key
    3. Go to `Color Schemes`
        1. choose your schemes name
    4. For each profile (Defaults, Windows PowerShell, Command Prompt, Ubuntu, Azure CLoud Shell, Git Bash, ....)
        1. Go to `Appearance`
            1. Color scheme : Use your color scheme
            2. Font face : `MesloLGS NF`

Example for the scheme modification in the JSON config file :
```json
"schemes":
[
    {...},
    {
        "background": "#1B1B1B",
        "black": "#1B1B1B",
        "blue": "#458588",
        "brightBlack": "#928374",
        "brightBlue": "#83A598",
        "brightCyan": "#8EC07C",
        "brightGreen": "#B8BB26",
        "brightPurple": "#D3869B",
        "brightRed": "#FB4934",
        "brightWhite": "#EBDBB2",
        "brightYellow": "#FABD2F",
        "cursorColor": "#EBDBB2",
        "cyan": "#689D6A",
        "foreground": "#EBDBB2",
        "green": "#98971A",
        "name": "GruvboxDarkHard",
        "purple": "#B16286",
        "red": "#CC241D",
        "selectionBackground": "#665C54",
        "white": "#A89984",
        "yellow": "#D79921"
    },
    {....}
]
```

## Powerlevel10K configuration

1. Execute the command `p10k configuration` in the `iterm2` or `ubuntu` terminal with `zsh`
    1. Prompt Style : `Lean`
    2. Character Set : `Unicode`
    3. Prompt Colors : `256 colors`
    4. Show current time : `24-hour format`
    5. Prompt Height : `Two lines`
    6. Prompt Connection : `Disconnected`
    7. Prompt Frame : `Left`
    8. Frame Color : `Dark`
    9. Prompt Spacing : `Sparse`
    10. Icons : `Many icons`
    11. Prompt Flow : `Concise`
    12. Enable Transient Prompt : `No`
    13. Instant Prompt Mode : `Verbose`
    14. Overwrite `~/.p10k.zsh` : `Yes`

repository: pragmatias/documentation

repo_name: pragmatias/documentation


text:
# ListMe
#Android Pre-work - Todo App

ListMe is an android app which allows to build a todo list. User can manage todo items using Add new items, Edit and Delete functionality.

Created and Submitted by: Akanksha Jain

Total Time spent: 10 hours

##User Stories- Submission Checklist

**Required** functionality is completed:

 * [x] User can **successfully add and remove items** from the todo list
 * [x] User can tap a todo item in the list and goto an edit screen for the **editing todo item** and can do changes to the text reflected in the todo list.
 * [x] User can **persist todo items and retrieve them properly** on app restart

**Exteneded** features in ToDo are:

 * [x] Persist the todo items into [SQLite](http://guides.codepath.com/android/Persisting-Data-to-the-Device#sqlite) instead of a text file
 * [x] Improve style of the todo items in the list using a [custom adapter](http://guides.codepath.com/android/Using-an-ArrayAdapter-with-ListView)
 * [x] Add support for completion due dates for todo items (and display within listview item)
 * [x] Use a [DialogFragment](http://guides.codepath.com/android/Using-DialogFragment) instead of new Activity for editing items
 * [x] Add support for selecting the priority of each todo item (and display in listview item)
 * [x] Tweak the style improving the UI / UX, play with colors, images or backgrounds

## Video WalkThrough
Here's a walkthrough of implemented user stories:
![VideoWalkThrough](http://i.imgur.com/wY4pWJw.gif)

GIF created with [LiceCap](http://www.cockos.com/licecap/).
## Notes
* [x] Used good fragment communication patterns,appcompat usage, etc.
* [x] Used **Floating Action Button and Snackbar**
* [x] Used **Spinner for Priority**
* [x] Implemented  add, delete and edit items
* [x] **Improved UI with colors**
* [x] Working on adding **Due date, reminder, ScrollingView and  current status feature for an item**

## License
Copyright 2016 Akanksha Jain

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0


text:
---
layout: post
title: "Simulating animal vocalizations"
date: 22-02-2018
---

This post shows how to simulate animal vocalizations using the new [warbleR](https://cran.r-project.org/package=warbleR) function `sim_songs`. The function allows users to create song with several sub-units and harmonics, which are return as a wave object in the `R` environment. This can have several applications, from simulating song evolution to testing the efficacy of methods to measure acoustic structure for different signal types.

The function uses a brownian motion model of stochastic diffusion to simulate the changes in frequency (e.g. modulation) across continuous traces of sound (song sub-units or elements). Several parameters of the songs can be customized, which allow users to simulate an wide range of signal structures. Nonetheless, more parameters and diffusion models will be added in future versions.

First install and/or load [warbleR](https://cran.r-project.org/package=warbleR) developmental version (if there is an older [warbleR](https://cran.r-project.org/package=warbleR) version installed it has to be removed first):

{% highlight r %}
# remove warbleR
remove.packages("warbleR")

# install devtools if not installed
if (!"devtools" %in% installed.packages()[,"Package"])
  install.packages("devtools")

# and install warbleR from github
devtools::install_github("maRce10/warbleR")
library("warbleR")
{% endhighlight %}

The basic song "parameters" that can be customized using the `sim_songs` function are:

1. The number of sub-units
1. The number of harmonics
1. the carrier frequencies
1. The degree of frequency modulation
1. The duration of sub-units and silences in between

The following code simulates a "song" with 5 sub-units, with a starting frequency of 5 kHz and a single harmonic (fundamental):

{% highlight r %}
# simulate song
sm_sng <- sim_songs(n = 5, harms = 1, freqs = 5, seed = 8)

#plot spectro
spectro(sm_sng, grid = FALSE, flim = c(0, 12), wl = 300,
                    collevels = seq(-27, 0 , 1),
        palette = reverse.topo.colors, scale = FALSE)
{% endhighlight %}

* A seed is used so the same song will be generated every time. If `seed = NULL` (as by default) then a different song will produced each time

Longer "repertoires" can be produced by simply increasing `n`:

{% highlight r %}
# 10 elements
sm_sng <- sim_songs(n = 10, harms = 1, freqs = 5, seed = 16,
                    sig2 = 0.7, steps = 8)

#plot spectro
spectro(sm_sng, grid = FALSE, flim = c(0, 12), wl = 300,
        collevels = seq(-27, 0 , 1),
        palette = reverse.heat.colors, scale = FALSE)
{% endhighlight %}

{% highlight r %}
# 15 elements
sm_sng <- sim_songs(n = 15, harms = 1, freqs = 5, seed = 37, steps = 10)

#plot spectro
spectro(sm_sng, grid = FALSE, flim = c(1, 12), wl = 300,
        collevels = seq(-27, 0 , 1),
        palette = reverse.terrain.colors, scale = FALSE)
{% endhighlight %}

The amount of modulation can be controlled with the argument `sig2` (just as in the brownian model of evolution). Low values will produce little variation in the frequency slope:

{% highlight r %}
# low sigma
sm_sng <- sim_songs(n = 5, harms = 1, freqs = 5, seed = 8, sig2 = 0.1)

#plot spectro
spectro(sm_sng, grid = FALSE, flim = c(1, 12), wl = 300,
        collevels = seq(-25, 0 , 1),
        palette = reverse.topo.colors, scale = FALSE)
{% endhighlight %}

While higher `sig2` values will generate "faster" frequency changes:

{% highlight r %}
# high sigma
sm_sng <- sim_songs(n = 5, harms = 1, freqs = 5, seed = 8, sig2 = 0.9)

#plot spectro
spectro(sm_sng, grid = FALSE, flim = c(1, 12),
        collevels = seq(-27, 0 , 1),
        palette = reverse.terrain.colors, scale = FALSE)
{% endhighlight %}

Harmonics can also be added to the songs by modifying the `harms` argument:

{% highlight r %}
# high sigma
sm_sng <- sim_songs(n = 5, harms = 3, freqs = 5, seed = 8, sig2 = 0.9)

#plot spectro
spectro(sm_sng, grid = FALSE, flim = c(1, 12),
        collevels = seq(-27, 0 , 1),
        palette = reverse.terrain.colors, scale = FALSE)
{% endhighlight %}

The `steps` argument allows to define the length of the time series generated by the underlying brownian motion function. This time series is simply the frequency values at each time window (after some spline smoothing) of the song elements. Lower `steps` values will produce less modulated songs (other things equal):

{% highlight r %}
# high sigma
sm_sng <- sim_songs(n = 5, harms = 3, freqs = 5, seed = 8,
                    sig2 = 0.9, steps = 4)

#plot spectro
spectro(sm_sng, grid = FALSE, flim = c(1, 12),
        collevels = seq(-27, 0 , 1),
        palette = reverse.terrain.colors, scale = FALSE)
{% endhighlight %}

Higher `steps` values will increase modulation:

{% highlight r %}
# high sigma
sm_sng <- sim_songs(n = 5, harms = 3, freqs = 5, seed = 8,
                    sig2 = 0.9, steps = 70)

#plot spectro
spectro(sm_sng, grid = FALSE, flim = c(1, 12),
        collevels = seq(-27, 0 , 1),
        palette = reverse.terrain.colors, scale = FALSE)
{% endhighlight %}

The duration of the sub-units and gaps between elements can also be specified for each of the items:

{% highlight r %}
durs <- seq(0.5, 0.1, length.out = 5)
gaps <- c(0.2, 0.15, 0.1, 0.08, 0.05, 0.2)

# high sigma
sm_sng <- sim_songs(n = 5, harms = 3, freqs = 5, seed = 84, sig2 = 0.1,
                    steps = 20, durs = durs, gaps = gaps)

#plot spectro
spectro(sm_sng, grid = FALSE, flim = c(1, 12),
        collevels = seq(-27, 0 , 1),
        palette = reverse.terrain.colors, scale = FALSE)
{% endhighlight %}

Users can also adjust the relative amplitude of the harmonics. The following code puts the highest energy on the second harmonic (e.g. the dominant frequency) using the `amps` argument:

{% highlight r %}
# high sigma
sm_sng <- sim_songs(n = 4, harms = 5, freqs = 5, seed = 24,
                    amps = c(0.7, 1, 0.5, 0.3, 0.25))

#plot spectro
spectro(sm_sng, grid = FALSE, flim = c(1, 12),
        collevels = seq(-23, 0 , 1),
        palette = reverse.topo.colors, scale = FALSE)
{% endhighlight %}

The simulated song can be played with the `play` function from [tuneR](https://cran.r-project.org/package=tuneR) or by saving the wave file and opening it in a regular audio player. Here is an example of a 20 element simulated song:

{% highlight r %}
#set variable durations
durs <- rnorm(n = 20, mean = 0.21, sd = 0.05)

#and variable gaps
gaps <- rnorm(n = 21, mean = 0.12, sd = 0.06)

# and frequencies
freqs <- rnorm(n = 20, mean = 3, sd = 0.7)

# high sigma
sm_sng <- sim_songs(n = 20, harms = 3, seed = 25,
                    durs = durs, gaps = gaps, steps = 4,
                    freqs = freqs, diff_fun = "BB")

#plot spectro
spectro(sm_sng, grid = FALSE, flim = c(0, 9),
        collevels = seq(-23, 0 , 1),
        palette = reverse.topo.colors, scale = FALSE)
{% endhighlight %}

{% highlight r %}
# save it as a wave file
writeWave(sm_sng, "simulated_song.wav")
{% endhighlight %}

And this is how it sounds:

<audio controls style="width: 700px;">
   <source src="/img/simulated_song.mp3" type="audio/mpeg">
</audio>

In the above example the "BB" diffusion model was used to simulate the sounds (argument `diff_fun`). This method forces the sub-units to start and end at the same frequency. Note also that combining random variables to set durations and gaps can help create more realistic songs.

Finally, the background noise level (argument `bgn`), sampling rate (`samp.rate`) amd amplitude fade-in (`fin`) and fade-out (`fout` & `shape`) can also be adjusted.

More options will be added in future versions. Suggestions are welcome. I am particularly interested on diffusion models (or any other algorithm) that can generate different types of signals, ideally even more similar to the ones found in nature.

Please report any bugs [here](https://github.com/maRce10/warbleR/issues).

gha_language: HTML


text:
---
layout: post
title:  "Multicolor Tweens in Flutter"
date:   2020-05-21  02:00:00
categories: flutter dart software
---

# Multicolor Tweens in Flutter

Flutter's built-in `ColorTween` is the standard way to animate a color transition between two colors.  With `ColorTween` we can _lerp_ (linearly interpolate) between two colors along the lifetime of a controller's animation.

But how can we smoothly transition between multiple colors?

This article discusses three methods, each which may suit different situations.

![Three methods of multicolor tweens](/assets/multicolor-tweening-in-flutter/multicolor_tween_flutter.mp4.gif){:width="75%" .center-image}

# Tween Sequence Approach

First, we recognize that transitioning between multiple colors is equivalent to transitioning between pairs of colors in sequence.  For example, the transition of `Red → Blue → Green → Yellow → Red` is simply the seamless succession of transitions:

* Red → Blue
* Blue → Green
* Green → Yellow
* Yellow → Red

In Flutter, we can mirror this concept exactly by building a composite tween, `TweenSequence`, consisting of individual ColorTweens.

```dart
Animatable<Color> bgColor = TweenSequence<Color>([
  TweenSequenceItem(
    weight: 1.0,
    tween: ColorTween(begin: Colors.red, end: Colors.blue),
  ),
  TweenSequenceItem(
    weight: 1.0,
    tween: ColorTween(begin: Colors.blue, end: Colors.green),
  ),
  TweenSequenceItem(
    weight: 1.0,
    tween: ColorTween(begin: Colors.green, end: Colors.yellow),
  ),
  TweenSequenceItem(
    weight: 1.0,
    tween: ColorTween(begin: Colors.yellow, end: Colors.red),
  ),
])
```

Each item in the sequence is a two-color transition, and each `SequenceItem` has equal weight, meaning each occupy equal parts of the total animation duration (i.e. one-fourth).

This tween can now be used to form an animation in a widget's state.  In the example below, a `TweenSequence` _bgColor_ is driven by a 5-second looping controller to build an `Animation`.

```dart
class _TweenSequenceBoxState extends State<TweenSequenceBox>
    with SingleTickerProviderStateMixin {
  AnimationController _controller;
  Animation<Color> _colorAnim;

  @override
  void initState() {
    super.initState();

    _controller = AnimationController(
      duration: const Duration(seconds: 5),
      vsync: this,
    )..forward()..repeat();

    _colorAnim = bgColor.animate(_controller);
  }

 // Our build method will go here

 @override
  void dispose() { // don't forget to clean up!
    _controller.dispose();
    super.dispose();
  }

}
```

With the animation prepared, the build method makes use of an `AnimatedBuilder` to draw a `Container` with a background color.  Each frame, the widget is rebuilt with a background color as defined by the `_colorAnim` value.

```dart
  Widget build(BuildContext context) {
    return AnimatedBuilder(
        animation: _controller,
        builder: (context, child) {
          return Container(
            padding: EdgeInsets.all(24.0),
            decoration: BoxDecoration(color: _colorAnim.value),
            child: Text('Tween Sequence'),
          );
        });
  }
```

## Rainbow Color Tween Approach

The [rainbow_color](https://pub.dev/packages/rainbow_color) package provides a simpler interface to build multicolor tween: `RainbowColorTween`.  This may be used as a drop-in replacement for an equal-weighted `TweenSequence<Color>`.  For example, the _bgColor_ sequence above can be replaced with the more direct

```dart
 Animatable<Color> bgColor = RainbowColorTween([
    Colors.red,
    Colors.blue,
    Colors.green,
    Colors.yellow,
    Colors.red,
  ])
```

All other code remains identical.

## Rainbow Interpolation Approach

`RainbowColorTween` utilizes the `Rainbow` multicolor interpolation class behind the scenes.  If a widget involves numerous derived multicolor animations, especially those dependent on the spectrum itself, then it may be useful to directly use Rainbow spectrum interpolation.  For example, the following widget shows the text foreground color "lagging" one color behind the background in the sequence:

```dart
class _RainbowBoxState extends State<RainbowBox>
    with SingleTickerProviderStateMixin {
  AnimationController _controller;
  Animation<double> _anim;

  @override
  void initState() {
    super.initState();
    _controller = AnimationController(
      duration: const Duration(seconds: 5),
      vsync: this,
    )..forward()..repeat();
    _anim = bgValue.animate(_controller);
  }

  // animate a double from 0 to 10
  Animatable<double> bgValue = Tween<double>(begin: 0.0, end: 10.0);

  // build a rainbow spectrum that blends across the same numerical domain
  Rainbow rb = Rainbow(rangeStart: 0.0, rangeEnd: 10.0, spectrum: [
    Colors.red,
    Colors.blue,
    Colors.green,
    Colors.yellow,
    Colors.red,
  ]);

  Widget build(BuildContext context) {
    return AnimatedBuilder(
        animation: _controller,
        builder: (context, child) {
          return Container(
              padding: EdgeInsets.all(24.0),
              decoration: BoxDecoration(color: rb[_anim.value]),  // lerp for background color
              child: Text('Rainbow'),
                style: TextStyle(color: rb[(_anim.value - 2) % 10]), //shift one color backward
              );
        });
  }
}

// dispose() omitted
}
```

## Conclusion

For simple equal-weighted multicolor tweens without curves, `RainbowColorTween` is the simplest solution.  For more complex use-cases, combine `ColorTween` items into a `TweenSquence`.

Finally, if animations involve choreography within a multicolor spectrum or across several spectra, then utilizing `Rainbow` directly to interpolate may prove simplest.

## Source

See [multicolor_tweening_flutter_example](https://github.com/ilikerobots/multicolor_tweening_flutter_example) on Github.


text:
## Introduction

The `vtkMatrixBuilder` class provides a system to create a mat4
transformation matrix. All functions return the MatrixBuilder Object
instance, allowing transformations to be chained.

## Usage

```js
let point = [2,5,12];
vtkMatrixBuilder.buildfromDegree().translate(1,0,2).rotateZ(45).apply(point);
```

The vtkMatrixBuilder class has two functions,
`vtkMatrixBuilder.buildFromDegree()` and
`vtkMatrixbuilder.buildFromRadian()`, predefining the angle format used for
transformations and returning a MatrixBuilder instance. The matrix is
initialized with the Identity Matrix.

## Methods

### apply

Multiplies the array by the MatrixBuilder's internal matrix, in sets of
3. Updates the array in place. If specified, `offset` starts at a given
position in the array, and `nbIterations` will determine the number of
iterations (sets of 3) to loop through. Assumes the `typedArray` is an
array of multiples of 3, unless specifically handling with offset and
iterations. Returns the instance for chaining.

| Argument | Type | Description |
| ------------- | ------------- | ----- |
| **typedArray** |
required |  |
| **offset** |
required |  |
| **nbIterations** |
required |  |

### getMatrix

Returns the internal `mat4` matrix.

### identity

Resets the MatrixBuilder to the Identity matrix.

### multiply

Resets the MatrixBuilder to the Identity matrix.

| Argument | Type | Description |
| ------------- | ------------- | ----- |
| **mat4x4** |
required |  |

### new

| Argument | Type | Description |
| ------------- | ------------- | ----- |
| **useDegree** |
required |  |

### rotate

Normalizes the axis of rotation then rotates the current matrix `angle`
degrees/radians around the provided axis.

| Argument | Type | Description |
| ------------- | ------------- | ----- |
| **angle** |
required |  |
| **axis** |
required |  |

### rotateFromDirections

Multiplies the current matrix with a transformation matrix created by
normalizing both direction vectors and rotating around the axis of the
crossProduct by the angle from the dotProduct of the two directions.

| Argument | Type | Description |
| ------------- | ------------- | ----- |
| **originDirection** |
required |  |
| **targetDirection** |
required |  |

### rotateX

Rotates `angle` degrees/radians around the X axis.

| Argument | Type | Description |
| ------------- | ------------- | ----- |
| **angle** |
required |  |

### rotateY

Rotates `angle` degrees/radians around the Y axis.

| Argument | Type | Description |
| ------------- | ------------- | ----- |
| **angle** |
required |  |

### rotateZ

Rotates `angle` degrees/radians around the Z axis.

| Argument | Type | Description |
| ------------- | ------------- | ----- |
| **angle** |
required |  |

### scale

Scales the matrix by sx, sy, sz.

| Argument | Type | Description |
| ------------- | ------------- | ----- |
| **sx** |
required |  |
| **sy** |
required |  |
| **sz** |
required |  |

### setMatrix

Copies the given `mat4` into the builder. Useful if you already have a
transformation matrix and want to transform it further. Returns the
instance for chaining.

| Argument | Type | Description |
| ------------- | ------------- | ----- |
| **mat4x4** |
required |  |

### translate

Translates the matrix by x, y, z.

| Argument | Type | Description |
| ------------- | ------------- | ----- |
| **x** |
required |  |
| **y** |
required |  |
| **z** |
required |  |

repository: shijieS/vtk-js

repo_name: shijieS/vtk-js


text:
# `@frdl/frdl` (frdl.js) - Current/Next Version
- Frdlweb/Webfan javascript cli tooling
- frdl.js library as `frdl` > v5.0.0 | `@frdl/frdl` > v5.0.13

## `frdl` (frdl.js) - Legacy Versions and Un-Deprecation:
   *   This package was currently redesigned, breaking changes will be applied to the new versions > version v5+
   *   The legacy version was saved to the [v4-x-flavor branch](https://github.com/frdl/frdl.js/tree/v4-x-flavor) | `frdl` < v4.0.1 | `@frdl/frdl` <= v4.0.7


text:
# Running the labs

## Here's the software stack I use:
* [VS Code](https://code.visualstudio.com/)
* [Git](https://git-scm.com/downloads)
* [Java JDK]()
* [Gradle](https://gradle.org/)
* [Docker](https://www.docker.com/)

## Installing

First, make sure you have the repository:
  git clone https://github.com/bathcat/design_patterns
  cd design_patterns/labs


text:
# cookiecutter-snakemake-workflow

Cookiecutter template for snakemake workflows.

## Usage

### Install cookiecutter

``` sh
conda install -c conda-forge cookiecutter
```

### Create new Snakemake Workflow

``` sh
cookiecutter https://gitlab.com/functional-genomics/cookiecutter-snakemake-workflow
# or
cookiecutter gl:functional-genomics/cookiecutter-snakemake-workflow
```


text:
# Create PR Action

[![CI Status](https://github.com/technote-space/create-pr-action/workflows/CI/badge.svg)](https://github.com/technote-space/create-pr-action/actions)
[![codecov](https://codecov.io/gh/technote-space/create-pr-action/branch/main/graph/badge.svg)](https://codecov.io/gh/technote-space/create-pr-action)
[![CodeFactor](https://www.codefactor.io/repository/github/technote-space/create-pr-action/badge)](https://www.codefactor.io/repository/github/technote-space/create-pr-action)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/technote-space/create-pr-action/blob/main/LICENSE)

*Read this in other languages: [English](README.md), [日本語](README.ja.md).*

This is a `GitHub Actions` that executes an arbitrary command and commits the changes to the new pull request.
It also has a management function that resolves conflicts and closes pull requests that are no longer needed.

## Table of Contents

Details

- [Installation](#installation)
  - [e.g. Update npm packages](#eg-update-npm-packages)
  - [e.g. Update composer packages](#eg-update-composer-packages)
  - [e.g. Mixed](#eg-mixed)
- [Screenshots](#screenshots)
  - [Run commands](#run-commands)
  - [Created Pull Request](#created-pull-request)
- [Options](#options)
- [Action event details](#action-event-details)
  - [Target event](#target-event)
- [Variables](#variables)
  - [Variables1](#variables1)
  - [Variables2](#variables2)
- [Addition](#addition)
  - [GITHUB_TOKEN](#github_token)
- [Author](#author)

## Installation
### e.g. Update npm packages
e.g. `.github/workflows/update-npm-packages.yml`
```yaml
on:
 schedule:
   - cron: 0 0 * * *
 pull_request:
   types: [opened, synchronize, reopened, closed]

name: Update packages
jobs:
 release:
   name: Update npm packages
   runs-on: ubuntu-latest
   steps:
     - name: Update npm packages
       uses: technote-space/create-pr-action@v2
       with:
         EXECUTE_COMMANDS: |
           npx npm-check-updates -u --packageFile package.json
           yarn install
           yarn upgrade
           yarn audit
         COMMIT_MESSAGE: 'chore: update npm dependencies'
         COMMIT_NAME: 'GitHub Actions'
         COMMIT_EMAIL<EMAIL_ADDRESS>         PR_BRANCH_NAME: 'chore-npm-update-${PR_ID}'
         PR_TITLE: 'chore: update npm dependencies'
```

### e.g. Update composer packages
e.g. `.github/workflows/update-composer-packages.yml`
```yaml
on:
 schedule:
   - cron: 0 0 * * *
 pull_request:
   types: [opened, synchronize, reopened, closed]

name: Update packages
jobs:
 release:
   name: Update composer packages
   runs-on: ubuntu-latest
   steps:
     - name: Update composer packages
       uses: technote-space/create-pr-action@v2
       with:
         EXECUTE_COMMANDS: |
           rm -f "composer.lock"
           < "composer.json" jq -r '.require | to_entries[] | select(.value | startswith("^")) | select(.key | contains("/")) | .key' | tr '\n' ' ' | xargs -r php -d memory_limit=2G "$(command -v composer)" require --no-interaction --prefer-dist --no-suggest
           < "composer.json" jq -r '."require-dev" | to_entries[] | select(.value | startswith("^")) | select(.key | contains("/")) | .key' | tr '\n' ' ' | xargs -r php -d memory_limit=2G "$(command -v composer)" require --dev --no-interaction --prefer-dist --no-suggest
         COMMIT_MESSAGE: 'chore: update composer dependencies'
         COMMIT_NAME: 'GitHub Actions'
         COMMIT_EMAIL<EMAIL_ADDRESS>         PR_BRANCH_NAME: 'chore-composer-update-${PR_ID}'
         PR_TITLE: 'chore: update composer dependencies'
```

### e.g. Mixed
e.g. `.github/workflows/update-packages.yml`
```yaml
on:
 schedule:
   - cron: 0 0 * * *
 pull_request:
   types: [opened, synchronize, reopened, closed]

name: Update packages
jobs:
 release:
   name: Update packages
   runs-on: ubuntu-latest
   steps:
     - name: Update packages
       uses: technote-space/create-pr-action@v2
       with:
         EXECUTE_COMMANDS: |
           npx npm-check-updates -u --packageFile package.json
           yarn install
           yarn upgrade
           yarn audit
           rm -f "composer.lock"
           < "composer.json" jq -r '.require | to_entries[] | select(.value | startswith("^")) | select(.key | contains("/")) | .key' | tr '\n' ' ' | xargs -r php -d memory_limit=2G "$(command -v composer)" require --no-interaction --prefer-dist --no-suggest
           < "composer.json" jq -r '."require-dev" | to_entries[] | select(.value | startswith("^")) | select(.key | contains("/")) | .key' | tr '\n' ' ' | xargs -r php -d memory_limit=2G "$(command -v composer)" require --dev --no-interaction --prefer-dist --no-suggest
         COMMIT_MESSAGE: 'chore: update dependencies'
         COMMIT_NAME: 'GitHub Actions'
         COMMIT_EMAIL<EMAIL_ADDRESS>         PR_BRANCH_NAME: 'chore-update-${PR_ID}'
         PR_TITLE: 'chore: update dependencies'
```

[More details of target event](#action-event-details)

## Screenshots
### Run commands
![run command](https://raw.githubusercontent.com/technote-space/create-pr-action/images/screenshot-1.png)

### Created Pull Request
![pull request](https://raw.githubusercontent.com/technote-space/create-pr-action/images/screenshot-2.png)

## Options
| name | description | default | required | e.g. |
|:---:|:---|:---:|:---:|:---:|
|GLOBAL_INSTALL_PACKAGES|Packages to be global installed| | |`imagemin-cli`|
|EXECUTE_COMMANDS|Commands to be executed| | | |
|COMMIT_MESSAGE|Commit message| | | |
|COMMIT_NAME|Git commit name|`${github.actor}`| | |
|COMMIT_EMAIL|Git commit<EMAIL_ADDRESS>| |
|PR_BRANCH_PREFIX|PullRequest branch prefix|`create-pr-action/`|true|`imagemin/`|
|PR_BRANCH_NAME|PullRequest branch name
Several variables are available ([variables1](#variables1))| |true|`imagemin-${PR_ID}`|
|PR_TITLE|PullRequest title
Several variables are available ([variables1](#variables1))| |true|`chore: minify images`|
|PR_BODY|PullRequest body
Several variables are available ([variables2](#variables2))| |true| |
|CHECK_DEFAULT_BRANCH|Whether to check default branch|`true`| |`false`|
|ONLY_DEFAULT_BRANCH|Whether not to check other than default branch|`pull_request: false`
 `else: true`| |`true`|
|GITHUB_TOKEN|アクセストークン|`${{github.token}}`|true|`${{secrets.ACCESS_TOKEN}}`|

## Action event details
### Target event
| eventName | action |
|:---:|:---:|
|pull_request|opened, synchronize, reopened, labeled, unlabeled|
|pull_request|closed|
|schedule, repository_dispatch, workflow_dispatch|*|

- The following activity types must be explicitly specified ([detail](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request))
  - `labeled`, `unlabeled`, `closed`

## Variables
### Variables1
| name | description |
|:---|:---|
| PR_NUMBER | pull_request.number (e.g. `11`) |
| PR_NUMBER_REF | `#${pull_request.number}` (e.g. `#11`) |
| PR_ID | pull_request.id (e.g. `21031067`) |
| PR_HEAD_REF | pull_request.head.ref (e.g. `change`) |
| PR_BASE_REF | pull_request.base.ref (e.g. `main`) |
| PR_TITLE | pull_request.title (e.g. `Update the README with new information.`) |
| PATCH_VERSION | new patch version (e.g. `v1.2.4`) |
| MINOR_VERSION | new minor version (e.g. `v1.3.0`) |
| MAJOR_VERSION | new major version (e.g. `v2.0.0`) |

### Variables2
- [variables1](#variables1)

| name | description |
|:---|:---|
| PR_LINK | Link to PR |
| COMMANDS_OUTPUT | Results of command |
| FILES_SUMMARY | e.g. `Changed 2 files` |
| FILES | Changed file list |

## Addition
### GITHUB_TOKEN
The `GITHUB_TOKEN` that is provided as a part of `GitHub Actions` doesn't have authorization to create any successive events.
So it won't spawn actions which triggered by push.
This can be a problem if you have branch protection configured.

If you want to trigger actions, use a personal access token instead.
1. Generate a [personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token) with the public_repo or repo scope.
(repo is required for private repositories).
1. [Save as ACCESS_TOKEN](https://docs.github.com/en/actions/security-guides/encrypted-secrets)
1. Add input to use `ACCESS_TOKEN` instead of `GITHUB_TOKEN`.
   e.g. `.github/workflows/update-packages.yml`
   ```yaml
   on:
     schedule:
       - cron: 0 0 * * *
     pull_request:
       types: [opened, synchronize, reopened, closed]

   name: Update packages
   jobs:
     release:
       name: Update npm packages
       runs-on: ubuntu-latest
       steps:
         - name: Update npm packages
           uses: technote-space/create-pr-action@v2
           with:
             GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
             EXECUTE_COMMANDS: |
               npx npm-check-updates -u --packageFile package.json
               yarn install
               yarn upgrade
               yarn audit
             COMMIT_MESSAGE: 'chore: update npm dependencies'
             COMMIT_NAME: 'GitHub Actions'
             COMMIT_EMAIL<EMAIL_ADDRESS>             PR_BRANCH_NAME: 'chore-npm-update-${PR_ID}'
             PR_TITLE: 'chore: update npm dependencies'
   ```

## Author
[GitHub (Technote)](https://github.com/technote-space)
[Blog](https://technote.space)

repository: technote-space/create-pr-action

gha_language: TypeScript

repo_name: technote-space/create-pr-action


text:
---
title: 2014
metadata:
    description: 2014 Sabbath School Lessons, Discipleship, Christ and His Law, Teachings of Jesus, James
    keywords: Old Testament History,
    author: Brian Onang'o
---

#### 2014

YEAR/QUARTER |   1  | 2| 3| 4
-------------|------------|---|--|---
2014   |  [Discipleship](/2011-2020/2014/quarter1) | [Christ and His Law](/2011-2020/2014/quarter2) | [Teachings of Jesus](/2011-2020/2014/quarter3) | [James](/2011-2020/2014/quarter4) |

repository: GospelSounders/sabbathschool

repo_name: GospelSounders/sabbathschool


text:
## Test environments
* local R installation, R 4.1.1
* ubuntu 16.04 (on travis-ci), R 4.1.1
* win-builder (devel)

## R CMD check results

0 errors | 0 warnings | 2 notes

* Maintainer has changed from Nick Golding to Nicholas Tierney.
* We have included a LICENSE file with the Apache 2.0 to indicate Nick Golding as the copyright holder

repository: vishalbelsare/greta

gha_language: R

gha_license_id: NOASSERTION

repo_name: vishalbelsare/greta


text:
---
template: BlogPost
path: /nasa
date: 2019-07-15T23:13:04.783Z
title: NASA Photo Of The Day
thumbnail: /assets/nasapod.png
metaDescription: NASA, React
---
## This was a small React project that I got super interested in and had fun with.

### Built with: React, vanilla CSS, NASA [APOD API](https://api.nasa.gov/)

A typical school day at Lambda consists of 2 hours of lecture and a project after lunch that you have ~4 hours to complete.

Every now and then you get something that really catches your interest and in this case, once I found out we had to work with NASA's API I was really excited.

The goal was to pull the photo of the day and display it. I got a little fancy and setup a calendar so you could pull a photo from the past as well. Eventually I found the earliest photo of the day in their database (06-20-1995) by manually going through and seeing what came up with my inquiries.

It kinda killed my idea to make this about everyone's birthday since the database works the best with kids younger than me but I figured it was still a cool idea and prompted someone to get curious about what has happening in space.

View Website

repository: katie-rose/portfolio

repo_name: katie-rose/portfolio


text:
# TTS (Text to Speech) Service

TTS (Text to Speech) service runs as an independant docker container. It can subscribe to 0MQ and convert the streaming text input to wav audio. It can publish the wav audio output onto 0MQ over a predefined topic. Additionally it has a feature to play the wav audio to the sound device(s).

It uses `tts_openvino` which is based on modified ForwardTacotron and melgan vocoder accelerated via OpenVINO™. It is based on the TTS sample hosted on [openvino model zoo](https://github.com/openvinotoolkit/open_model_zoo/tree/master/demos/text_to_speech_demo/python).

## Pre-requisites

- OpenVINO™ 2021.3 docker image
- docker 19.03 or greater
- audio hardware (speaker/headphones)

## Data Formats

| Input Format  | Output Format         |
| ------------- | --------------------- |
| bytes (unicode string) | bytes (wave file) |

NOTE: A string can be obtained from byte encoded input/out buffer using `.decode()` method. `data_string = data.decode()`

## Run

An example docker-compose.yml service.
```
  tts:
    image: "tts:1.0"
    devices:
      - /dev/snd:/dev/snd
    environment:
      - INPUT_ADDR=ipc:///feeds/2
      - INPUT_TOPIC=nlp
      - OUTPUT_ADDR=ipc:///feeds/3
      - OUTPUT_TOPIC=tts
      - AUTHZ_SERVER_ADDR=ipc:///feeds/9
      - LOG_LEVEL=debug
      - PLAY_AUDIO=1
    command: ["./run.sh"]
    volumes:
      - zmq_ipc_vol:/feeds

```

Following environment variables are required by this service.

| ENV Variable  | Description       |
| ------------- | --------------------- |
| INPUT_ADDR | It is the address of 0MQ socket. |
| INPUT_TOPIC | It is the topic on which 0MQ input is recieved. |
| OUTPUT_ADDR |It is 0MQ socket address on which wave data is published. |
| OUTPUT_TOPIC | It is the topic on which tts service will publish pcm wave data. |
| AUTHZ_SERVER_ADDR | It is the address of 0MQ socket of `authz` rpc server. |
| LOG_LEVEL | It can have values info, debug, warning, error. |
| PLAY_AUDIO | (optional) If the variable is set, tts service will play the audio. |

## Limitations

- It is based on pretrained models which are downloaded from openVINO™ model zoo.
- It supports english language only.

repository: CuchulainX/conversational-ai-chatbot

repo_name: CuchulainX/conversational-ai-chatbot


text:
# generator-trailpack

TrailPack Yeoman Generator.

## Usage
```sh
$ yo trailpack --help

Usage:
  yo trailpack [options]

Options:
        --help          # Print the generator's options and usage
        --skip-cache    # Do not remember prompt answers             Default: false
        --skip-install  # Do not automatically install dependencies  Default: false
        --skip-update   # Do not check for generator's updates       Default: false

Generators:

  Create New Api
    yo trailpack:api <api-name>

  Create New Model
    yo trailpack:model <model-name>

  Create New Controller
    yo trailpack:controller <controller-name>

  Create New Policy
    yo trailpack:policy <policy-name>

  Create New Service
    yo trailpack:service <service-name>
```

## Contributing
We love contributions! In order to be able to review your code efficiently,
please keep the following in mind:

1. Pull Requests (PRs) must include new and/or updated tests, and all tests [must pass](https://travis-ci.org/trailsjs/generator-trailpack).
2. Use `eslint`! See the `eslintConfig` in [package.json](./package.json).
3. Please [reference the relevant issue](https://github.com/blog/1506-closing-issues-via-pull-requests) in your Pull Request.

## License
[MIT](./LICENSE)

repository: konstantinzolotarev/generator-trailpack

repo_name: konstantinzolotarev/generator-trailpack


text:
## Outline
- Introduction to web layouts
- CSS grid
- Flexbox
- Additional properties for layout, like transforms, writing-mode etc.
- Feature queries and fallbacks

## Requirements

- Good working knowledge of HTML and CSS
- Reasonable understanding of how the browser renders elements
- Knowing the difference between CSS and frameworks like Bootstrap or Foundation
- Laptop & your favourite text editor
- Firefox Nightly installed
- Pencil/Pen and Paper

repository: tjmonsi/ffc-pwdo

repo_name: tjmonsi/ffc-pwdo


text:
# Personal Notes
Some notes I can make public. I keep track of my scripts, skeleton code, boilerplate and courses and workshops I've been working on

## Scripts
Scripts I worked on before that may help me start working on a project.

## Blogs
All about my personal blogs

## License
```

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
```

repository: saishaddai/Personal-Notes

repo_name: saishaddai/Personal-Notes


text:
### ExpandButtonAnimation

Floating button animation

## Requirements

 - XCode 10
 - iOS 12

## Description

  I have used the following

  - [UIViewPropertyAnimator](https://developer.apple.com/documentation/uikit/uiviewpropertyanimator)
  - [UIView.animate(withDuration:animations:)](https://developer.apple.com/documentation/uikit/uiview/1622418-animate)

  Watch it in YouTube

  [![DroppingBall](https://github.com/AnanthaKrish/SwiftAnimations/blob/master/Day%203%20-%20ExpandButtonAnimation/images/ExpandButtonAnimation.png)](https://www.youtube.com/watch?v=Uxg5elN8MGw&feature=youtu.be)

## LICENCE

  Please checkout [Licence](https://github.com/AnanthaKrish/SwiftAnimations/blob/master/LICENSE)

repository: AnanthaKrish/ExpandButtonAnimation

repo_name: AnanthaKrish/ExpandButtonAnimation


text:
<!-- add-breadcrumbs -->
#Employee Tax Exemption Proof Submission
Employees are required to submit proofs for all the spendings they claim tax exemption for. This is usually done at the end of a Payroll Period, but employees can submit any number of proofs unlike Employee Tax Exemption Declaration.

To create a new Employee Tax Exemption Proof Submission, go to

> Human resources > Payroll > Employee Tax Exemption Proof Submission > New Employee Tax Exemption Proof Submission

<img class="screenshot" alt="Employee Tax Exemption Proof Submission"
	src="{{docs_base_url}}/assets/img/human-resources/employee-tax-exemption-proof-submission.png">

The the **Total Exemption Amount** will be exempted from annual taxable earnings of the employee while calculating the tax deductions in the last payroll.

> Note: Even if employees submit exemption proofs anytime during the payroll period, ERPNext will only consider this in the last payroll of the Payroll Period for adjusting the final taxes based on the proof submitted. If you need to adjust any additional tax collected or consider proof submission of employees anytime before the last payroll, while processing Payroll Entry (or in the Salary Slip of the employee) check the **Deduct Tax For Unsubmitted Tax Exemption Proof** option.

### Regional - India
For the current fiscal year, in India, House Rent Allowance (HRA) exemption from taxable earnings is the minimum of:
 * The actual amount allotted by the employer as the HRA.
 * Actual rent paid less 10% of the basic salary.
 * 50% of the basic salary, if the employee is staying in a metro city (40% for a non-metro city).

As part of the Employee Tax Exemption Proof Submission, employees shall also submit proof for HRA Exemption.

 > Note: HRA component shall be configured in Company for HRA exemption to work

repository: tsendawula/foundation

repo_name: tsendawula/foundation


text:
nl4dv-docker
=================================
A docker container for [NL4DV](https://nl4dv.github.io/nl4dv/), an open-source python toolkit that converts a natural language query into data visualizations.

## Pre-requisite
Install Docker by following the instructions on the [official website](https://docs.docker.com/get-docker/). Create a new environment and start it. To verify, type `docker images` in your command-line/terminal and it should return an \<empty\> list of images. If you are using the GUI, you can check the status of your environment in the [Docker Dashboard](https://docs.docker.com/desktop/dashboard/).

### Usage
From the command-line OR the GUI, pull the **nl4dv** image from [Docker Hub](https://hub.docker.com/r/arpitnarechania/nl4dv)
```bash
docker pull arpitnarechania/nl4dv:latest
```

Run / start the container.
```bash
docker run -p 8000:80 arpitnarechania/nl4dv:latest
```

### API Playground
Open your browser and go to `{localhost, <IP_ADDRESS>, HOST_IP}:8000/docs` depending on your host OS to execute different queries with different configuration settings.

### FAQ
For developing locally, eventually do the following:
```bash
docker-compose build
docker-compose up
```

### Credits
Arpit Narechania and @helt.

### License
The software is available under the [MIT License](https://github.com/nl4dv/nl4dv-docker/blob/master/LICENSE).


text:
# 👨🍳 The Grill
[![Python CI](https://github.com/thegrill/grill/actions/workflows/python-package.yml/badge.svg)](https://github.com/thegrill/grill/actions/workflows/python-package.yml)
[![codecov](https://codecov.io/gh/thegrill/grill/branch/main/graph/badge.svg)](https://codecov.io/gh/thegrill/grill)
[![Documentation Status](https://readthedocs.org/projects/grill/badge/?version=latest)](https://grill.readthedocs.io/en/latest/?badge=latest)
[![PyPI version](https://badge.fury.io/py/grill.svg)](https://badge.fury.io/py/grill)
[![PyPI](https://img.shields.io/pypi/pyversions/grill.svg)](https://pypi.python.org/pypi/grill)

> Cook digital.

`The Grill` is a toolset that helps with digital content creation. This is the `grill` namespace, a meta-package with core tools and philosophy guidelines.

With future users and readers in mind, `The Grill` aims to stick to the following principles:

- [DRY (don't repeat yourself)](https://en.wikipedia.org/wiki/Don%27t_repeat_yourself)
- [SSOT (single source of truth)](https://en.wikipedia.org/wiki/Single_source_of_truth)
- [Convention over configuration (sensible defaults)](https://en.wikipedia.org/wiki/Convention_over_configuration)
- [SOLID (understandable, flexible and maintainable)](https://en.wikipedia.org/wiki/SOLID)
- [KISS (keep it simple)](https://en.wikipedia.org/wiki/KISS_principle)

Foundational tools:
- [Python](https://docs.python.org/3/)
- [USD](https://graphics.pixar.com/usd/docs/index.html)
- [EdgeDB](https://edgedb.com)

Please [visit the docs](https://grill.rtfd.io) for a full walk-through!

repository: thegrill/grill

repo_name: thegrill/grill