Skip to content

Instantly share code, notes, and snippets.

@jbonney
jbonney / link.txt
Created September 4, 2013 07:23
Screenfly. Responsive screen testing on monitors, tablets, smart phones, and more.

Keybase proof

I hereby claim:

  • I am jbonney on github.
  • I am jbonney (https://keybase.io/jbonney) on keybase.
  • I have a public key ASBgDeWYjOtPoyZhuSwq-zuANFYogofsPCrYtKgGj_XwRQo

To claim this, I am signing this object:

@jbonney
jbonney / todomvc
Created June 9, 2013 12:34
Javascript MVC / MVVC / MVW framework comparison. Todo application with Backbone, AngularJS, Ember.js, KnockoutJS, Dojo, YUI, JQuery, RequireJS, etc... http://todomvc.com/
http://todomvc.com/
user=...
pass=...
host=localhost # or remote if necessary
database=...
mysqldump -u${user} -p${pass} -h ${host} --add-drop-table --no-data ${database} | grep ^DROP | mysql -u${user} -p${pass} -h ${host} ${database}
@jbonney
jbonney / link.txt
Created December 13, 2013 09:51
HTML5+JSON interactive table plugin. Dynatable is a funner, semantic, interactive table plugin using jQuery, HTML5, and JSON. And it's not just for tables.
@jbonney
jbonney / crontab.sh
Created December 4, 2013 18:06
Add crontab to Synology drives (/sbin/crontab).
#!/bin/sh
#
# Provides missing crontab editing
# Note: Synology crond requires arguments separated by a TAB character
# and the crontab user field only supports root. These requirements are
# enforced by this script.
#
# John Kelly, 2013-05-03
#
SCRIPTNAME=`basename $0`
@jbonney
jbonney / links.txt
Created November 10, 2013 20:15
Email framework from Zurb
@jbonney
jbonney / links.txt
Created November 1, 2013 11:10
Form styling links (Floating label form pattern)
@jbonney
jbonney / links.txt
Created October 21, 2013 17:11
Redis cache system. Some references.
#1: %x{ } – quick and easy
name = 'ls'
result = `which #{name}` # or result = %x{which #{name}}
#2: system – when you want to know how it went
result = system 'cp', '/full/path/to/my_file', '/target/directory'
if result.nil?
puts "Error was #{$?}"
elsif result
puts "You made it!"