Skip to content

Instantly share code, notes, and snippets.

View jbonhag's full-sized avatar
🌊

Jeff Bonhag jbonhag

🌊
  • America/New_York
View GitHub Profile
@jbonhag
jbonhag / gist:c18f695f19b15ace9ad5
Last active August 27, 2015 17:11
Populate Ext ComboBox with data/display pairs
var combo = new Ext.form.ComboBox({
typeAhead: true,
triggerAction: 'all',
lazyRender:true,
mode: 'local',
store: new Ext.data.ArrayStore({
id: 0,
fields: [
'myId',
'displayText'
@jbonhag
jbonhag / Cory
Created August 28, 2015 04:07
Arduino output pin shifter example
/*
Button
Turns on and off a light emitting diode(LED) connected to a random digital
pin (9, 10, 11, 12, or 13), when pressing a pushbutton attached to pin 2.
The circuit:
* LED/greeting card attached from pin 9 to ground
* LED/greeting card attached from pin 10 to ground
* LED/greeting card attached from pin 11 to ground
hexdump -v -e '/1 "%02X"' output.txt
<video style="display:none;" autoplay></video>
<img src="">
<canvas width="800" height="600" style="display:none;"></canvas>
<script>
var video = document.querySelector('video');
var canvas = document.querySelector('canvas');
var ctx = canvas.getContext('2d');
var localMediaStream = null;
require 'nokogiri'
require 'open-uri'
require_relative 'lib/thing'
pattern = ARGV[0]
urls = ARGV[1..-1]
thing = Thing.new
urls.each do |url|
@jbonhag
jbonhag / gist:a4e813758000858bdcb3
Created July 1, 2014 14:08
Remove file by an inode number
The -i option to ls displays the index number (inode) of each file:
ls -li
Use find command as follows to delete the file if the file has inode number 4063242:
$ find . -inum 4063242 -delete
OR
ruby -run -e httpd . -p 5000
Noise n => WvOut w => blackhole;
"noise.wav" => w.wavFilename;
3::second => now;
[216,2,4,2,[[1,0,0,1,0,0,0,0,0,1,0,0,1,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,1],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0],[0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1],[1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0],[1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0],[1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,1],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0],[0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1],[0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0],[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,1],[0,0,1,0,0,0,0,0,0,0,0,0,0
http://www.musicvault.com/aa-bondy/video/american-heart_1000099.html
http://www.musicvault.com/aa-bondy/video/im-so-lonesome-i-could-cry_1013972.html
http://www.musicvault.com/aa-bondy/video/john-the-revelator_1000088.html
http://www.musicvault.com/aa-bondy/video/killed-myself_1013971.html
http://www.musicvault.com/aa-bondy/video/killed-myself-when-i-was-young_1000110.html
http://www.musicvault.com/aa-bondy/video/oh-the-vampyre_1000102.html
http://www.musicvault.com/aa-bondy/video/oh-the-vampyre_1013968.html
http://www.musicvault.com/aa-bondy/video/rapture-sweet-rapture_1000091.html
http://www.musicvault.com/aa-bondy/video/theres-a-reason_1000093.html
http://www.musicvault.com/aa-bondy/video/vice-rag_1000107.html