Skip to content

Instantly share code, notes, and snippets.

🍕
please

James jamesplease

🍕
please
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
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
supereggbert / index.html
Last active Aug 14, 2019
3D Surface Plot in D3.js
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>
body{
font-family: sans;
padding: 10px;
}
svg path{
@staltz
staltz / introrx.md
Last active Sep 22, 2019
The introduction to Reactive Programming you've been missing
View introrx.md
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() {
debugger;
View htmlbars.md

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
thanpolas / Gruntfie.js
Last active Dec 26, 2015
Grunt Config for node server + livereload
View Gruntfie.js
module.exports = function (grunt) {
require('load-grunt-tasks')(grunt);
grunt.initConfig({
express: {
options: {
// Override defaults here
},
web: {
options: {
@brian-mann
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
/backbone
app.js
/apps
/entities
/lib
##Inside Apps
/apps
@willurd
willurd / web-servers.md
Last active Sep 20, 2019
Big list of http static server one-liners
View web-servers.md

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
gnarf / ..git-pr.md
Last active Sep 2, 2019
git pr - Global .gitconfig aliases for Pull Request Managment
View ..git-pr.md

Install

Either copy the aliases from the .gitconfig or run the commands in add-pr-alias.sh

Usage

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
murtaugh / cursor-reset.css
Last active Sep 13, 2019
CSS Cursor Reset
View cursor-reset.css
html,
body {
cursor: default;
}
code {
cursor: text;
}
/*
You can’t perform that action at this time.