Skip to content

Instantly share code, notes, and snippets.

View soldair's full-sized avatar

Ryan Day soldair

  • Google
  • San Jose CA
View GitHub Profile
@soldair
soldair / jquery.dirtyforms.helpers.alwaysdirty.json
Created July 7, 2015 16:23
jquery.dirtyforms.helpers.alwaysdirty 1.2.2
{
"repository" : {
"url" : "git+https://github.com/snikch/jquery.dirtyforms.git",
"type" : "git"
},
"keywords" : [
"jquery",
"plugin",
"dirty",
"forms",
@soldair
soldair / keybase.md
Created May 20, 2015 18:58
keybase.md

Keybase proof

I hereby claim:

  • I am soldair on github.
  • I am soldair (https://keybase.io/soldair) on keybase.
  • I have a public key whose fingerprint is F1FE 8791 5DE4 0E28 52C6 6704 65A6 1688 8058 EEC8

To claim this, I am signing this object:

@soldair
soldair / wild-mustard.md
Last active August 29, 2015 14:20
Recipe for Saharan mustard greens.

Saharan/Asian mustard

stuff

  • 1 tsp sesame oil
  • soy sauce/tempura sauce. not too much otherwise it will over power.
  • 1 tbsp butter
  • 1/2 tbsp honey
  • one handful of greens
  • cover leaves with water. We will reduce this so not too much.
@soldair
soldair / resume.md
Last active January 12, 2016 13:39
resume

I am Ryan Day.

I love javascript and opensource. I am just as comfortable on the frontend as on the server. Managing servers, crunching big data, or running a team to meet business goals. Over the last 10 years i have worked in ecom, social networking, and most recently open IOT hardware. The cool thing is it turns out you need javascript for just about everything. I am not a one trick js pony though i have used c/c++/python/sh to name a few to get jobs done when js is not the right tool.

I follow the js framework debates and have a good working grasp on their design tradeoffs and am more than comfortable using any of them or none of them when it comes to frontend. Browserify and npm are the greatest tools to happen in recent history to js. I love fully tested and covered code and prefer minimal testing frameworks like node-tap/tap, but have worked with many others. Responsive ui design impacts conversion rates so much in good ways if done right. I'm a very big fan of AB testing in modern/mobile browser f

@soldair
soldair / server.js
Created December 16, 2014 05:35
stand alone pinoccio server with http
var server = require('pinoccio-server');
// you would use an array to support multiple troops
var troop;
server(function(t){
troop = t;
troop.command(1,'led.red',function(err,data){
console.log('i set the led to red',data);
});
@soldair
soldair / pinoccio-scout.js
Created December 12, 2014 18:31
trying to flash scout with new stk500
/// flash a scout with bootstrap and js
var serial = require('./node_modules/stk500/node_modules/serialport');
var stk500 = require('stk500');
var port = '/dev/ttyACM0';
var fs = require('fs');
var intelhex = require('intel-hex');
var hex = intelhex.parse(fs.readFileSync(__dirname+"/bootstrap.hex",{encoding:'utf8'})).data;
@soldair
soldair / setup-batch-flash.sh
Created December 5, 2014 05:20
setup batch flashing on a pi
# HEY run this first https://gist.github.com/soldair/22604c4de8c1befe01cd
cd ~/pinoccio
# this fixes a link for using the example test in lib/testscout.js (batch-flashing)
ln -s `pwd`/node_modules/pinoccio-serial/node_modules/serialport/ node_modules/serialport
#download the latest hex
rm bootstrap.hex
wget https://pinocc.io/bootstrap/2014111401/bootstrap.hex
@soldair
soldair / install-avrdude.sh
Last active August 29, 2015 14:10
install avrdude 6.0.0 on raspi
wget http://download.savannah.gnu.org/releases/avrdude/avrdude-6.0.1.tar.gz
tar -xvf avrdude-6.0.1.tar.gz
sudo apt-get install build-essential flex bison libusb-dev libelf-dev libftdi-dev
cd avrdude-6.0.1
./configure --enable-linuxgpio
make
sudo make install
@soldair
soldair / pi-pinoccio-install.sh
Last active August 29, 2015 14:10
install the pinoccio cli on raspi using prebuilt binaries and already downloaded npm modules
# note run this as your pi user.
wget https://pinocc.io/prebuilt/client-node-pinoccio_0.1.29.tar.gz && tar -xvf client-node-pinoccio_0.1.28.tar.gz && cd pinoccio && npm rebuild && sudo npm link --production
@soldair
soldair / pinoccio-bridge-on-boot.sh
Last active August 29, 2015 14:08
install pinccio cli on pi
# to setup pinoccio bridge on boot
# this starts bridge and keeps it running if it crashes.
# if there are no scouts connected it will retry once per second.
# log data is written to /var/log/pinoccio-bridge.log
# for verbose logging change `pinoccio bridge` to `pinoccio bridge -v`
echo "while [ 1 ]\
do\
pinoccio bridge\