Skip to content

Instantly share code, notes, and snippets.

View noopkat's full-sized avatar
🐤
building my own birdfeeder on here

Suz Hinton noopkat

🐤
building my own birdfeeder on here
View GitHub Profile
@noopkat
noopkat / meowshoes
Created February 10, 2014 06:32
meow shoes sample
// playback object, will contain all sequenced sounds
var playback = []
// set up the defaults
var freestyle = false,
currentVoice = 'meow',
bar = 16,
tempo = 120,
context = new webkitAudioContext(),
bopper = require('bopper')(context),
@noopkat
noopkat / truncated_reveal.js
Last active August 29, 2015 13:57
fullscreen aspect ratio respecting video in reveal.js [hack]
[...]
function startEmbeddedContent( slide ) {
[...]
if( el.hasAttribute( 'data-autoplay' ) ) {
// paste this above el.play()
var nw = el.videoWidth,
@noopkat
noopkat / _meow.md
Last active August 29, 2015 13:57
Grumpy Cat Login
@noopkat
noopkat / gist:10506922
Last active August 29, 2015 13:59
Sass Function extend
module Sass::Script::Functions
def getImg(string, url)
assert_type string, :String
assert_type url, :String
manifest = JSON.parse(File.read("manifest.json"))
Sass::Script::Value::String.new(url + "/" + manifest["img"][string])
end
declare :getImg, [:string]
end
@noopkat
noopkat / list.md
Last active August 29, 2015 14:11
OLED shopping list for Rick
@noopkat
noopkat / test5.js
Last active October 18, 2015 03:09
OLED-js custom font testing
var five = require('johnny-five');
var board = new five.Board();
var Oled = require('oled-js');
// require your newly made font file
var mycoolfont = require('./mycoolfont.js');
// testing features
board.on('ready', function() {
// I2C va USB or whatever your settings are
@noopkat
noopkat / foo.sh
Last active November 7, 2015 17:37
rebuild serialport for nw.js
npm install serialport
npm install -g node-pre-gyp
NW_VERSION='0.12.3'
cd node_modules/serialport
node-pre-gyp configure --runtime=node-webkit --target=$NW_VERSION
node-pre-gyp build --runtime=node-webkit --target=$NW_VERSION
@noopkat
noopkat / Preferences.sublime-settings
Last active December 24, 2015 19:29
Sublime Text User Prefs
{
"caret_style": "phase",
"color_scheme": "Packages/Color Scheme - Default/Solarized (Dark).tmTheme",
"fade_fold_buttons": false,
"font_size": 12,
"highlight_line": true,
"line_padding_bottom": 2,
"line_padding_top": 2,
"tab_size": 2,
"theme": "Flatland Dark.sublime-theme",
@noopkat
noopkat / flash.js
Last active December 1, 2016 03:44
lilypadUSB custom board flashing example
const Avrgirl = require('avrgirl-arduino');
const lilypad = {
name: 'lilypadUSB',
baud: 57600,
signature: new Buffer([0x43, 0x41, 0x54, 0x45, 0x52, 0x49, 0x4e]),
productId: ['0x9207', '0x9208', '0x1B4F'],
protocol: 'avr109'
};