Skip to content

Instantly share code, notes, and snippets.

View avetisk's full-sized avatar
🙏
Freelance Almighty Tech-Wizard

Avétis KAZARIAN avetisk

🙏
Freelance Almighty Tech-Wizard
View GitHub Profile
/home/multipass/code 192.168.64.1(rw,async,insecure,all_squash,no_subtree_check,anonuid=1000,anongid=1000)
@avetisk
avetisk / capture.sh
Created January 3, 2019 22:27
ffmpeg webcam video + audio for raspberry pi 3 model b+
ffmpeg -y -f alsa -i hw:1 -i /dev/video0 -framerate 30 -video_size 1280x720 -preset ultrafast yolo.mp4
@avetisk
avetisk / .eslintrc
Created September 1, 2014 16:19
.eslintrc
{
"env": {
"browser": true,
"mocha": true,
"node": true
},
"rules": {
"no-cond-assign": 2,
"no-console": 2,
"no-constant-condition": 2,
### Keybase proof
I hereby claim:
* I am avetisk on github.
* I am avetisk (https://keybase.io/avetisk) on keybase.
* I have a public key whose fingerprint is C2C2 0EE7 F5ED 0C1F 50F3 3D2B 9173 2ACC 28B6 C0EC
To claim this, I am signing this object:
@avetisk
avetisk / README.md
Last active August 29, 2015 14:02 — forked from mbostock/.block
d3 line chart animation

This example is the second of three in the Path Transitions tutorial; see the previous example for context.

The desired pairing of numbers for path interpolation is like this:

M x0, y0 L x1, y1 L x2, y2 L x3, y3 L xR, y4
   ↓   ↓    ↓   ↓    ↓   ↓    ↓   ↓
M xl, y0 L x0, y1 L x1, y2 L x2, y3 L x3, y4

Where xl is some negative value off the left side, and xr is some positive value off the right side. This way, the first point ⟨x0,y0⟩ is interpolated to ⟨xl,y0⟩; meaning, the x-coordinate is interpolated rather than the y-coordinate, and so the path appears to slide off to the left. Likewise, the incoming point ⟨xr,y4⟩ is interpolated to ⟨x3,y4⟩.

echo -n This file system is case- > tmp; echo -n in >> TMP; echo sensitive >> tmp; cat tmp; rm tmp; rm TMP 2> /dev/null