This Gist is there to help you creating a Sankey Diagram from your Google Spreadsheets.
- Open a spreadsheet
- Click "Tools" -> "Scripts"
GitHub Wiki updated Bookmarklet (Sep 2014)
Note: Will not work with Firefox, see bug #866522
Wiki - Hides extra panels:
javascript:(function(e,a,g,h,f,c,b,d)%7Bif(!(f=e.jQuery)%7C%7Cg%3Ef.fn.jquery%7C%7Ch(f))%7Bc=a.createElement(%22script%22);c.type=%22text/javascript%22;c.src=%22https://ajax.googleapis.com/ajax/libs/jquery/%22+g+%22/jquery.min.js%22;c.onload=c.onreadystatechange=function()%7Bif(!b&&(!(d=this.readyState)%7C%7Cd==%22loaded%22%7C%7Cd==%22complete%22))%7Bh((f=e.jQuery).noConflict(1),b=1);f(c).remove()%7D%7D;a.documentElement.childNodes%5B0%5D.appendChild(c)%7D%7D)(window,document,%221.3.2%22,function($,L)%7B$('%23header,%20.pagehead,%20.breadcrumb,%20.commit,%20.meta,%20%23footer,%20%23footer-push,%20.wiki-actions,%20%23last-edit,%20.actions,%20.header,%20%23wiki-rightbar,%20.gh-header-actions,%20.sunken-menu-contents,%20.site-footer').remove();%20$('%23files,%20.file').css(%7B%22background%22:%22none%22,%20%22border%22:%22none%22%7D
Node.js is just JavaScript running on the server side. That's it. That's all there is to it.
var http = require('http'), | |
querystring = require('querystring'), | |
url = require( "url" ), | |
path = require( "path" ), | |
fs = require( "fs" ); | |
module.exports = http.createServer(function (req, res) { | |
var code = 404, | |
uri = url.parse( req.url ).pathname, | |
filename = path.join(process.cwd(), uri), |
From bmc Mon Oct 2 15:12:34 2000 | |
Subject: Undergrad systems curriculum | |
To: [email protected] | |
Date: Mon, 2 Oct 2000 15:12:34 -0700 (PDT) | |
X-Mailer: ELM [version 2.4ME+ PL31H (25)] | |
MIME-Version: 1.0 | |
Content-Type: text/plain; charset=US-ASCII | |
Content-Transfer-Encoding: 7bit | |
Content-Length: 4065 | |
Status: RO |
This article has been given a more permanent home on my blog. Also, since it was first written, the development of the Promises/A+ specification has made the original emphasis on Promises/A seem somewhat outdated.
Promises are a software abstraction that makes working with asynchronous operations much more pleasant. In the most basic definition, your code will move from continuation-passing style:
getTweetsFor("domenic", function (err, results) {
// the rest of your code goes here.
# A bunch of the stuff above relies on this, especially the aliases. | |
[user] | |
# you probably want to change this bit. | |
name = isaacs | |
email = [email protected] | |
signingkey = 0x6C481CF6 | |
[alias] | |
ci = commit | |
st = status | |
br = branch |
cat ~/.ssh/id_dsa.pub | ssh user@server 'touch .ssh/authorized_keys && cat >> .ssh/authorized_keys' |
#!/bin/bash | |
# | |
# DESCRIPTION: | |
# | |
# Set the bash prompt according to: | |
# * the branch/status of the current git repository | |
# * the branch of the current subversion repository | |
# * the return value of the previous command | |
# | |
# USAGE: |