Gabe Moothart gmoothart

View gist:6954226
1 2 3 4 5 6 7 8 9 10
\version "2.16.1"
stemOff = { \override Staff.Stem #'transparent = ##t }
 
tick = \markup {
\raise #2 \fontsize #-5 \musicglyph #"scripts.rvarcomma"
}
 
% definition of the long bar
longbar = {
\override Rest #'font-size = #4
View gist:6929479
1 2 3 4 5 6 7 8 9 10
\version "2.16.1"
stemOff = { \override Staff.Stem #'transparent = ##t }
 
\score {
\new Staff \with { \remove "Time_signature_engraver" }
{
\relative c' {
\cadenzaOn
\stemOff
f4 g (a) r1 bes4 a a g a a2 \bar "|"
View gist:4382020
1 2 3 4 5 6 7 8 9 10
 
from flask import Flask
import happybase
 
 
app = Flask(__name__)
app.debug = True
 
@app.route("/")
def hello():
View gist:3744225
1 2 3 4 5 6 7 8 9 10
"""
A command-line client. Run `twistd -ny jsonrpc_dev.py` first before running this.
"""
 
# TODO:
# 1) pretty-print json
# 2) take hostname and port as optional parameters
 
import sys
from twisted.internet import reactor, protocol
View xmldiff.cs
1 2 3 4 5 6 7 8 9 10
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using System.Diagnostics;
 
namespace ConsoleApplication1
{
class Program
View gist:1265744
1 2 3 4 5 6 7 8 9
class FairnessWorkerSelectionStrategy: IWorkerSelectionStrategy<ProcessOrderMessage>
{
const int availabilityThreshold = 3;
const int ordersPerCompanyAtOnce = 5;
 
/// <summary>
/// Map company id to number of recent orders placed for it
/// </summary>
Dictionary<long, int> companyRecentOrdersCount = new Dictionary<long,int>();
View .vimrc
1 2 3 4 5 6 7 8 9 10
au BufRead,BufNewFile jquery.*.js set ft=javascript syntax=jquery
set nocompatible
set autoindent
set tabstop=2
set showmatch
set vb t_vb=
set ruler
set nohls
set incsearch
syntax on
View tree.cs
1 2 3 4 5 6 7 8 9 10
sealed class Dumper
{
static public string Dump(Node root) {
return Dump(root, new List<bool>{});
}
 
// isLastPath - for every node in the current path, is it the last child?
static internal string Dump(Node n, List<bool> isLastPath) {
string bar = "¦";
string junction = "+";
View gist:531280
1 2 3 4 5 6 7 8 9 10
using System;
using System.Collections.Generic;
using FluentNHibernate.Cfg;
using FluentNHibernate.Cfg.Db;
using FluentNHibernate.Mapping;
using NHibernate;
using NHibernate.Tool.hbm2ddl;
 
namespace nhib_test
{
View gist:329348
1 2 3 4 5 6 7 8 9 10
YUI().use('event', 'io', function(Y) {
...
Y.on('click', function(ev) {
// lazy-load admin stuffz
Y.OhYeahUseTheseToo('anim', 'admin-module', function() {
// anim and admin-module are now available on the existing Y instance
});
Something went wrong with that request. Please try again.