This file contains 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
curl -u [[MY_USERNAME]] -s https://api.github.com/users/[[TARGET_USERNAME]]/repos?per_page=200 | ruby -rubygems -e 'require "json"; JSON.load(STDIN.read).each { |repo| %x[git clone #{repo["ssh_url"]} ]}' |
This file contains 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
from cmath import pi, e, log | |
tau = 2 * pi | |
def average(readings): | |
base = e ** (1j * tau / 360) | |
total = 0 | |
for r in readings: | |
total += r[1] + base ** r[0] | |
result = total / len(readings) | |
return (log(result, base).real, abs(result)) |
This file contains 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
⇒ rtl_433 -a -f 390000000 | |
p_limit: 418 | |
bitbuffer:: Number of rows: 8 | |
[00] {11} 6c c0 : 01101100 110 | |
[01] {11} ab c0 : 10101011 110 | |
[02] {11} 6c c0 : 01101100 110 | |
[03] {11} ab c0 : 10101011 110 | |
[04] {11} 6c c0 : 01101100 110 | |
[05] {11} ab c0 : 10101011 110 |
This file contains 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
====== Inexplicably it just worked... I think. Those ff's are fairly ominous ===================== | |
pentoo ~ # goodfet.bsl --dumpinfo > info.txt | |
Use -h for help | |
Use --fromweb to upgrade a GoodFET. | |
MSP430 Bootstrap Loader Version: 1.39-goodfet-8 | |
Invoking BSL... | |
Transmit default password ... | |
Current bootstrap loader version: 2.13 (Device ID: f26f) | |
pentoo ~ # cat info.txt |
This file contains 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
<?xml version='1.0' encoding='utf-8'?> | |
<?grc format='1' created='3.7.8'?> | |
<flow_graph> | |
<timestamp>Tue Aug 25 19:04:21 2015</timestamp> | |
<block> | |
<key>options</key> | |
<param> | |
<key>author</key> | |
<value></value> | |
</param> |
This file contains 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
#!/bin/bash | |
echo "This script prints the filenames of any dylibs in your /usr/local/ that depend on the System Python" | |
for f in `find /usr/local/lib`; do | |
otool -L "$f" 2> /dev/null| grep Python | grep System &> /dev/null | |
status=$? | |
if [ $status -eq 0 ]; then | |
echo "$status: $f" | |
fi | |
done |
This file contains 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
function mystery (input) { // input is passed in as 3 | |
var secret = 4 // secret doesn't change in all of this. It stays as 4 and is used in the mystery2 function | |
input += 2 // 3 += 2 [input = input + 2] which is 5. | |
function mystery2 (multiplier) { | |
multiplier *= input /* multiplier = 6 * 5 : multiplier gets set when this returned function is | |
finally called as param(6) [after getting temporarily set as the variable `hidden`] */ | |
return secret * multiplier // secret is still just 4 and multiplier is now 30 [6 * 5] from the line above. | |
} | |
return mystery2 // becomes variable `hidden` and then actually called as param(6) | |
} |
This file contains 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
var five = require('johnny-five') | |
var board = new five.Board() | |
board.on('ready', function () { | |
var servo = new five.Servo(9) | |
board.repl.inject({ | |
servo: servo | |
}) |
This file contains 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
gyaresu@shazbot:~/programming/projects/node-ardx|master⚡ | |
⇒ node | |
> var five = require('johnny-five') | |
undefined | |
> var board = new five.Board() | |
undefined | |
> 1436405251015 Device(s) /dev/cu.usbmodem1411 | |
/Users/gyaresu/programming/projects/node-ardx/node_modules/johnny-five/node_modules/firmata/lib/firmata.js:584 | |
this.transport.write(new Buffer([REPORT_VERSION])); | |
^ |
This file contains 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
gyaresu@shazbot:~/programming/projects/node-ardx|master | |
⇒ node code/CIRC01-code-led-a-strobe.js | |
1436403241251 Device(s) /dev/cu.usbmodem1411 | |
/Users/gyaresu/programming/projects/node-ardx/node_modules/johnny-five/node_modules/firmata/lib/firmata.js:743 | |
this.transport.write(new Buffer([START_SYSEX, CAPABILITY_QUERY, END_SYSEX])) | |
^ | |
TypeError: undefined is not a function | |
at Board.queryCapabilities (/Users/gyaresu/programming/projects/node-ardx/node_modules/johnny-five/node_modules/firmata/lib/firmata.js:743:18) | |
at null.<anonymous> (/Users/gyaresu/programming/projects/node-ardx/node_modules/johnny-five/node_modules/firmata/lib/firmata.js:565:14) | |
at g (events.js:199:16) |