Skip to content

Instantly share code, notes, and snippets.

View ggoodman's full-sized avatar

Geoff Goodman ggoodman

View GitHub Profile
@ggoodman
ggoodman / index.html
Last active October 1, 2015 20:18 — forked from ggoodman/app.js
Backbone.js
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<link rel="stylesheet" href="style.css" />
<script data-require="underscore.js" data-semver="1.4.4" src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.4/underscore.js"></script>
<script data-require="jquery" data-semver="2.0.1" src="http://code.jquery.com/jquery-2.0.1.min.js"></script>
<script data-require="backbone.js" data-semver="1.0.0" src="//cdn.jsdelivr.net/backbonejs/1.0.0/backbone-min.js"></script>
@ggoodman
ggoodman / index.html
Created March 16, 2012 15:57 — forked from ggoodman/index.html
Bootstrap@2.1.1 + Coffee
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Bootstrap, from Twitter</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!-- Le styles -->
@ggoodman
ggoodman / index.html
Created March 12, 2012 20:23 — forked from mbostock/.block
Force Layout Multiples (Custom Gravity)
<!DOCTYPE html>
<meta charset="utf-8">
<style>
circle {
stroke: #fff;
}
</style>
<body>
@ggoodman
ggoodman / index.html
Last active October 1, 2015 15:37 — forked from ggoodman/app.js
Bootstrap
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Bootstrap, from Twitter</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="" />
<meta name="author" content="" />
<!-- Le styles -->
@ggoodman
ggoodman / index.html
Last active October 1, 2015 14:17 — forked from ggoodman/index.html
Basic jQuery + jQuery UI
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title><!-- Title here --></title>
<link data-require="jqueryui" data-semver="1.10.0" rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/jqueryui/1.10.0/css/smoothness/jquery-ui-1.10.0.custom.min.css" />
<link rel="stylesheet" href="style.css" />
<script data-require="jquery" data-semver="2.0.1" src="http://code.jquery.com/jquery-2.0.1.min.js"></script>
<script data-require="jqueryui" data-semver="1.10.0" src="//cdnjs.cloudflare.com/ajax/libs/jqueryui/1.10.0/jquery-ui.js"></script>
@ggoodman
ggoodman / index.html
Last active October 1, 2015 12:37 — forked from ggoodman/app.js
jQuery + CoffeeScript
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<link rel="stylesheet" href="style.css" />
<script data-require="jquery" data-semver="2.0.1" src="http://code.jquery.com/jquery-2.0.1.min.js"></script>
<script src="script.js"></script>
</head>
@ggoodman
ggoodman / index.html
Last active October 1, 2015 11:48 — forked from anonymous/index.html
Basic jQuery
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<link rel="stylesheet" href="style.css" />
<script data-require="jquery" data-semver="2.0.1" src="http://code.jquery.com/jquery-2.0.1.min.js"></script>
<script src="script.js"></script>
</head>
@ggoodman
ggoodman / app.js
Created March 2, 2012 20:52
Basic AngularJS
var app = angular.module('plunker', []);
app.controller('MainCtrl', function($scope) {
$scope.name = 'World';
});
@ggoodman
ggoodman / ACTUAL.md
Created February 22, 2012 17:58
Proposed use-case for a redis alias / pointer type and operations.

My crappy understanding of how this would currently be done

Adding a new revision

Step 1: Get the current revision pointer

GET foo:1:latest_revision
// Returns foo:1:11
@ggoodman
ggoodman / index.html
Created February 17, 2012 05:19
Plunker Testing Script
<!DOCTYPE html><html><head><title>Plunker testbed</title><link rel="stylesheet" href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css"><script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script><script type="text/javascript">
(function() {
$(function() {
var addFile, buildPlunk, loadPlunk;
addFile = (function() {
var counter;
counter = 0;
return function(file) {
var $content, $controls, $delete, $fieldset, $filename, $input, $label;