Skip to content

Instantly share code, notes, and snippets.

View iamdustan's full-sized avatar

Dustan Kasten iamdustan

View GitHub Profile
App = Ember.Application.create();
App.ApplicationAdapter = DS.LSAdapter.extend({
namespace: 'lendly'
});
App.Router.map(function() {
this.resource('index', { path: '/' }, function() {
this.resource('item', { path: '/:item_id'}),

Titles

  • Front End Ops Evangelist
  • Master. Teacher. Advocate. Craftsman.
  • It's about people.

Abstracts

Our greatest moments are when we enable others to achieve more. As a

var gulp = require('gulp');
module.exports = function(config) {
var src = config.paths.test
return function() {
var browserify = require('gulp-browserify');
var karma = require('gulp-karma');
var es6ify = require('es6ify');
module.exports = function(config) {
config.set({
frameworks: ['jasmine'],
browsers: ['PhantomJS'],
files: [{
pattern: './app/vendor/*.js',
watched: false
}],
});
};
/** @jsx React.DOM */
'use strict';
var Popover = module.exports = React.createClass({
getInitialState() {
return {
isOpen: false,
activeText: this.props.items[0]
};
},
meta(name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, target-densitydpi=device-dpi")
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7) {
[application setStatusBarStyle:UIStatusBarStyleDarkContent];
self.window.clipsToBounds = YES;
self.window.frame = CGRectMake(0, 20, self.window.frame.size.width, self.window.frame.size.height - 20);
}
/** @jsx React.DOM */
var React = require('react/addons');
// from https://github.com/Polymer/paper-ripple/blob/master/paper-ripple.html
var waveMaxRadius = 150;
//
// INK EQUATIONS
//
#/usr/bin/env bash
# MIT © Sindre Sorhus - sindresorhus.com
# forked by Gianluca Guarini then Dustan Kasten
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)"
check_run() {
echo "$changed_files" | grep --quiet "$1" && eval "$2"
}
# Input: WordPress XML export file.
# Outputs: a series of Markdown files ready to be included in a middleman site
require 'pry'
require 'rubygems'
require 'nokogiri'
require 'upmark'
require 'html2md'