Skip to content

Instantly share code, notes, and snippets.

View robdodson's full-sized avatar
🏠
Working from home

Rob Dodson robdodson

🏠
Working from home
View GitHub Profile
@robdodson
robdodson / bower.json
Created February 18, 2013 23:00
example bower.json
{
"name": "myProject",
"version": "1.0.0",
"main": "./path/to/main.css",
"dependencies": {
"jquery": "~1.7.2",
"highcharts": ">=1.2.3",
"jquery-ui": "1.0.x"
}
}
@robdodson
robdodson / main.js
Created March 4, 2013 18:13
knockout.templates
require([
'jquery',
'lodash',
'knockout',
'models/AppViewModel',
'bootstrap'
], function($, _, ko, AppViewModel) {
// Document Ready
$(function() {
@robdodson
robdodson / snippet.js
Created March 14, 2013 02:26
require
define(['require', 'jquery'], function(require, $) {
$(function() {
// do a buncha stuff with jquery on document load...
// later on...
require(['d3'], function(d3) {
// now it's loaded d3
});
});
@robdodson
robdodson / index.html
Created March 23, 2013 17:34
D3 Waves
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Title</title>
</head>
<body>
<style>
.bar {
height: 5px;
@robdodson
robdodson / index.html
Created March 23, 2013 17:36
D3 Waves
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Title</title>
</head>
<body>
<style>
.bar {
height: 5px;
@robdodson
robdodson / Default (OSX).sublime-keymap
Created March 30, 2013 17:12
open current file in finder
{ "keys": ["super+shift+o"], "command": "open_dir", "args": {"dir": "$file_path", "file": "$file_name"} }
npm ERR! peerinvalid The package flatiron does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer flatiron-cli-config@0.1.3 wants flatiron@~0.1.9
npm ERR! peerinvalid Peer flatiron-cli-users@0.1.4 wants flatiron@~0.3.0
npm ERR! System Darwin 12.2.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "grunt-cli"
npm ERR! cwd /Users/Rob/Desktop/webapp
npm ERR! node -v v0.10.9
npm ERR! npm -v 1.2.24
npm ERR! code EPEERINVALID
@robdodson
robdodson / app.js
Created July 27, 2013 01:35
require bluebutton
var bb = require('bluebutton');
@robdodson
robdodson / server.sh
Created August 29, 2013 05:37
The world's easiest server
#!/bin/sh
echo Starting server at http://localhost:8000
python -m SimpleHTTPServer
@robdodson
robdodson / chart.html
Created September 26, 2013 19:05
polymer and native custom elements
<template id="chart-pie">
<style>
:host {
display: inline-block;
}
</style>
<canvas class="myChart" width="200" height="200"></canvas>
</template>
<script>