Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
import tornado.ioloop | |
import tornado.web | |
import tornado.httpserver | |
import tornado.httputil | |
import json | |
class MainHandler(tornado.web.RequestHandler): | |
def post(self): | |
# do something useful | |
name = self.get_argument('foo') |
#!/usr/bin/env python | |
""" | |
Plot histogram from list of dates | |
Usage | |
===== | |
Feed newline separated unix time via STDIN. | |
Ex.1: plot repository activity:: |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
"""Simple utility script for semi-gracefully downgrading v3 notebooks to v2""" | |
import io | |
import os | |
import sys | |
from IPython.nbformat import current | |
def heading_to_md(cell): | |
"""turn heading cell into corresponding markdown""" |
#!/usr/bin/env python | |
""" | |
simple example script for running notebooks and reporting exceptions. | |
Usage: `checkipnb.py foo.ipynb [bar.ipynb [...]]` | |
Each cell is submitted to the kernel, and checked for errors. | |
""" | |
import os,sys,time |
import sys | |
import time | |
from subprocess import Popen, PIPE | |
def magic_pypy(line, cell): | |
cmd = ['pypy', '-c', cell] | |
tic = time.time() | |
p = Popen(cmd, stdout=PIPE, stderr=PIPE) | |
p.wait() | |
toc = time.time() |
Consultant shall have the right to retain ownership of any inventions, original works of authorship, discoveries, concepts or ideas, which are unrelated to Consultant’s present work (or the actual or demonstrably anticipated research or development of the Company) under this Agreement; or that the Consultant developed entirely on his own time without using the Company’s equipment, supplies, facilities and does not contain any Company trade secrets, proprietary materials or any other protected intellectual property owned by the Company. Consultant represents that the exclusion of such Inventions from this Section 9 (Inventions) will not materially affect Consultant’s ability
Locate the section for your github remote in the .git/config
file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
zmq = require("zmq") | |
fs = require("fs") | |
var config = JSON.parse(fs.readFileSync(process.argv[2])) | |
var connexion = "tcp://"+config.ip+":" | |
var shell_conn = connexion+config.shell_port | |
var pub_conn = connexion+config.iopub_port | |
var hb_conn = connexion+config.hb_port |
"""Display Theano functions in the IPython notebook with pydotprint.""" | |
__author__ = "David Warde-Farley" | |
__copyright__ = "Copyright 2012, Universite de Montreal" | |
__credits__ = ["David Warde-Farley"] | |
__license__ = "3-clause BSD" | |
__email__ = "wardefar@iro" | |
__maintainer__ = "David Warde-Farley" | |