#pixel art in ur bash
Follow these instructions here - use this repo with branch os_x if you're on a mac.
// 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), |
[...] | |
function startEmbeddedContent( slide ) { | |
[...] | |
if( el.hasAttribute( 'data-autoplay' ) ) { | |
// paste this above el.play() | |
var nw = el.videoWidth, |
#pixel art in ur bash
Follow these instructions here - use this repo with branch os_x if you're on a mac.
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 |
A Pen by Jim Savage on CodePen.
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 |
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 |
{ | |
"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", |
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' | |
}; |