This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'); | |
}); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @library wrapper.js | |
* @author Edward Hotchkiss <edward@candidblend.la> | |
* @contributor Avi Deitcher <avi@deitcher.net> | |
* @description wraps any function/module/object/lib within an | |
* AMD-compliant definition if possible, otherwise binding to `window` | |
* @license MIT | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.highlight { | |
background-color: #efefef; | |
padding: 7px 7px 7px 10px; | |
border: 1px solid #ddd; | |
-moz-box-shadow: 3px 3px rgba(0,0,0,0.1); | |
-webkit-box-shadow: 3px 3px rgba(0,0,0,0.1); | |
box-shadow: 3px 3px rgba(0,0,0,0.1); | |
margin: 20px 0 20px 0; | |
overflow: hidden; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Uses MongooseJS to Connect to MongoDB | |
* .Maps out all collections within | |
*/ | |
var mongoose = require('mongoose') | |
, MONGO_DB = 'mongodb://localhost/test'; | |
mongoose.connect(MONGO_DB); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gm = require('gm'); | |
var canvasWidth = 248; | |
var canvasHeight = 389; | |
gm(__dirname + '/original.jpg').size(function(error, size) { | |
if (error) { | |
console.error(error); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @method calculatePaddedNewAspectRatio | |
* @param {Number} rW New Aspect Ratio Width | |
* @param {Number} rH New Aspect Ratio Height | |
* @param {Number} cW Current Width | |
* @param {Number} cH Current Height | |
* @return {Object} Aspect ratio correct .width and .height | |
**/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Setup Module with `highlight` filter | |
*/ | |
var JekyllApp = angular.module('JekyllApp', [], function($routeProvider) { | |
}); | |
JekyllApp.filter('highlight', function() { | |
return function(text, filter) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Uses MongooseJS to Connect to MongoDB | |
* .Maps out all collections within | |
*/ | |
var mongoose = require('mongoose') | |
, MONGO_DB = 'mongodb://localhost/test'; | |
mongoose.connect(MONGO_DB); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
* @description Grunt@!!!!! | |
*/ | |
module.exports = function(grunt) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
uglify: { |
NewerOlder