Skip to content

Instantly share code, notes, and snippets.


James jamesplease

Block or report user

Report or block jamesplease

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
anonymous / gistbook.json
Created Nov 25, 2014
Anonymous Gistbook
View gistbook.json
{"title":"Anonymous Gistbook","author":"Anonymous","pages":[{"pageName":"","sections":[{"type":"text","source":"Welcome to Gistbook! This is anonymous"}]}],"public":true}
supereggbert / index.html
Last active Aug 14, 2019
3D Surface Plot in D3.js
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
font-family: sans;
padding: 10px;
svg path{
staltz /
Last active Sep 22, 2019
The introduction to Reactive Programming you've been missing
View devTools.js
define([], function() {
var breakOn = function(object, method) {
var originalMethod = object[method];
if (!originalMethod) {
throw new Error('Couldnt find method ' + method + ' to break on.');
return object[method] = function stopExecution() {

A future version of Ember will come with a new templating engine known as HTMLBars.

The original motivation for HTMLBars was to allow helpers and properties to have better contextual information about what they were bound to.

So for example, consider a template like this:

<a href="{{url}}">{{link}}</a>
thanpolas / Gruntfie.js
Last active Dec 26, 2015
Grunt Config for node server + livereload
View Gruntfie.js
module.exports = function (grunt) {
express: {
options: {
// Override defaults here
web: {
options: {
brian-mann / gist:7085402
Last active Sep 3, 2017
The latest and greatest folder and file structure for Backbone / Marionette Apps
View gist:7085402
##Folder structure
##Inside Apps
willurd /
Last active Sep 20, 2019
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
gnarf /
Last active Sep 2, 2019
git pr - Global .gitconfig aliases for Pull Request Managment


Either copy the aliases from the .gitconfig or run the commands in


Easily checkout local copies of pull requests from remotes:

  • git pr 4 - creates local branch pr/4 from the github upstream(if it exists) or origin remote and checks it out
  • git pr 4 someremote - creates local branch pr/4 from someremote remote and checks it out
murtaugh / cursor-reset.css
Last active Sep 13, 2019
CSS Cursor Reset
View cursor-reset.css
body {
cursor: default;
code {
cursor: text;
You can’t perform that action at this time.