Skip to content

Instantly share code, notes, and snippets.

Avatar

Edward Hotchkiss edwardhotchkiss

View GitHub Profile
View grunt_sails_react.js
/**
* Compile JSX/ES6 to .js
*/
var babelify = require('babelify');
module.exports = function(grunt) {
grunt.config.set('browserify', {
View bison_tartare_recipe.md

BISON TARTARE RECIPE, V0.1.0

Ingredients

  • 1 LB Raw Bison diced
  • 1 TBSP Dijon Mustard
  • 1 TBSP Minced Garlic
  • 1/2 Cup Chives
  • 1 TBSP Worcestershire Sauce
  • 3 TBSP Capers
@edwardhotchkiss
edwardhotchkiss / Makefile
Created Mar 5, 2014
ATtiny85 avr-gcc / avrdude Makefile
View Makefile
DEVICE = attiny85
CLOCK = 8000000
PROGRAMMER = stk500v1
PORT = /dev/tty.usbmodem1421
BAUD = 19200
FILENAME = main
COMPILE = avr-gcc -Wall -Os -DF_CPU=$(CLOCK) -mmcu=$(DEVICE)
all: usb clean build upload
View a.js
var events = require('events');
var b = require('./b');
var emitter = module.exports = new events.EventEmitter();
module.exports.init = function(callback) {
b.init(function() {
emitter.emit('done');
});
};
@edwardhotchkiss
edwardhotchkiss / debug-grid.js
Created Sep 26, 2013
Creates an HTML Grid for debugging Animations
View debug-grid.js
/**
* @library DebugGrid
* @author CandidBlend <hi@candidblend.la>
* @description grid for debugging, layouts & demos
* @license MIT
*/
(function() {
@edwardhotchkiss
edwardhotchkiss / Gruntfile.js
Created Sep 11, 2013
Gruntfile (site, non-lib)
View Gruntfile.js
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
options: {
banner: '// <%= pkg.version %> v<%= pkg.version %>, <%= grunt.template.today("yyyy-mm-dd") %>\n'
},
build: {
View require-index.html
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>skeleton w/ requirejs</title>
<script data-main="src/init" src="vendor/require.js"></script>
</head>
<body>
</body>
View require-amd-usage.js
// configure
require.config({
baseUrl: './dist',
paths: {
'skeleton': 'wrapper-demo-0.0.1.min'
},
shim: {
skeleton: {
exports: 'Skeleton',
deps: []
View src-standard.js
var skeleton = new Skeleton({ name : 'skeletonStandard' });
=> this skeleton's name is "skeletonStandard"