This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void setup() { | |
pinMode(0, INPUT_PULLUP); | |
} | |
void loop() { | |
int val = analogRead(0); //read pot value | |
val = map(val, 625, 220, 0, 1024);//map range to normal pot range | |
val = constrain(val, 0, 1024);//then constrain for noise reduction | |
Joystick.X(val); | |
//Serial.println(val) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"event": "Wyzecam", | |
"properties": { | |
"distinct_id": "4101", | |
"token": "TOKEN HERE", | |
"location": "Backyard" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* `data-x`, `data-y`, `data-z` - they define the position of **the center** of step element on | |
the canvas in pixels; their default value is 0; | |
* `data-rotate-x`, `data-rotate-y`, 'data-rotate-z`, `data-rotate` - they define the rotation of | |
the element around given axis in degrees; their default value is 0; `data-rotate` and `data-rotate-z` | |
are exactly the same; | |
* `data-scale` - defines the scale of step element; default value is 1 | |
These values are used by impress.js in CSS transformation functions, so for more information consult | |
CSS transfrom docs: https://developer.mozilla.org/en/CSS/transform |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./dropbearmulti ssh root@remotehost cat test3.jpg > ~/tmp/testsdfsdf.jpg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Put this in your terminal and smoke it | |
$ echo "export PS1=' ⚡️'" >> ~/.bash_profile | |
# Update shell | |
$ source ~/.bash_profile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://stackoverflow.com/questions/3937387/rotating-videos-with-ffmpeg | |
accepted | |
Rotate 90 clockwise: | |
ffmpeg -i in.mov -vf "transpose=1" out.mov | |
For the transpose parameter you can pass: | |
0 = 90CounterCLockwise and Vertical Flip (default) | |
1 = 90Clockwise | |
2 = 90CounterClockwise |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Install Mosquitto, a MQTT Broker(server) | |
brew install mosquitto | |
Subscribe to the Kereberos MQTT Topic set in configuration as an output | |
mosquitto_sub -t kios/mqtt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am robertcedwards on github. | |
* I am robertcedwards (https://keybase.io/robertcedwards) on keybase. | |
* I have a public key ASBvPiFlwnag-j-0MgmtzDYbprFgWI7cs7xZB4FVQETxFgo | |
To claim this, I am signing this object: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://www.hackster.io/rayburne/esp8266-mini-sniff-f6b93a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://www.npmjs.com/package/node-dash-button |