Skip to content

Instantly share code, notes, and snippets.

View mjhea0's full-sized avatar

Michael Herman mjhea0

View GitHub Profile
# This Python file uses the following encoding: utf-8
import json
from types import NoneType
def type_to_string(typ):
"""Return a custom Type name for python Type
:param typ: The python Type
:type typ: type.
:raises: TypeError
var gulp = require('gulp');
var gutil = require('gulp-util');
gulp.task('default', function() {
gulp.start('copy_files');
});
gulp.task('copy_files', function() {
gulp.src('./public/**')
var http = require('http'),
httpProxy = require('http-proxy');
//
// A simple round-robin load balancing strategy.
//
// First, list the servers you want to use in your rotation.
//
var forwarding = {
"s.paddle.to" : {
target: "http://localhost:8001"

Front end

<div ><input type="button" value="bigger" id="bigger"></input></div>
<div><input type="button" value="normal" id="smaller"></input></div>
<div><input type="button" value="smaller" id="normal"></input></div>

Client-side JS

import datetime
import xlrd
from pprint import PrettyPrinter
def trim_nones(li):
""" remove trailing Nones from a list """
while li and li[-1] is None:
li.pop()
@mjhea0
mjhea0 / pr.md
Created June 11, 2014 20:29 — forked from piscisaureus/pr.md

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 = git@github.com: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:

<table>
<thead>
<tr class="header">
<th style="text-align: left;">Cohort</th>
<th style="text-align: left;">2011</th>
<th style="text-align: left;">2012</th>
<th style="text-align: left;">2013</th>
<th style="text-align: left;">2014</th>
</tr>
</thead>
@mjhea0
mjhea0 / Dockerfile
Last active August 29, 2015 14:07 — forked from yadutaf/Dockerfile
FROM ubuntu:14.04
MAINTAINER Jean-Tiare Le Bigot "jt@lebigot.net"
ENV DEBIAN_FRONTEND noninteractive
# Grab all dependencies
RUN apt-get update \
&& apt-get -y upgrade \
&& apt-get -y install curl libx11-dev libxtst-dev libxcomposite-dev \
libxdamage-dev libxkbfile-dev python-all-dev \