Skip to content

Instantly share code, notes, and snippets.

View stouset's full-sized avatar

Stephen Touset stouset

View GitHub Profile

Keybase proof

I hereby claim:

  • I am stouset on github.
  • I am stouset (https://keybase.io/stouset) on keybase.
  • I have a public key whose fingerprint is 762C 4988 A937 E727 E751 8481 0C7E 0CE2 F436 D1CF

To claim this, I am signing this object:

#!/bin/bash
CAFOPTS="--soundcheck-generate"
AACOPTS="--soundcheck-read -u pgcm 2 -b 256000 -q 127 -s 2"
DIR=`dirname "$1"`
BASENAME=`basename "$1" .flac`
FLAC=$DIR/$BASENAME.flac
AAC=$DIR/$BASENAME.m4a
10/26/14 1:30:29.469 PM OpenEmuHelperApp[10387]: parent application is: OpenEmu
10/26/14 1:30:29.519 PM OpenEmuHelperApp[10387]: Some shit about the game.
10/26/14 1:30:29.675 PM OpenEmuHelperApp[10387]: Higan: Loading game
10/26/14 1:30:29.675 PM OpenEmuHelperApp[10387]: Loading file "manifest.bml"
10/26/14 1:30:29.676 PM OpenEmuHelperApp[10387]: Loading file "program.rom"
10/26/14 1:30:29.684 PM OpenEmuHelperApp[10387]: Loading file "save.ram"
10/26/14 1:30:29.709 PM OpenEmuHelperApp[10387]: Loading file "ipl.rom"
10/26/14 1:30:30.686 PM OpenEmuHelperApp[10387]: Setting up emulation
/* current API */
{
let secret = Secret::new( /* bytes */ );
secret.read(|slice| { println!("{}", slice) });
}
/* desired API */
{
let secret = Secret::new( /* bytes */ );
<?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">
<dict>
<key>Colors</key>
<dict>
<key>Background</key>
<string>0.169 0.169 0.169</string>
<key>InsertionPoint</key>
<string>1.000 1.000 1.000</string>
class ThreadPool
attr_reader :size
attr_reader :queue
Job = Struct.new(:args, :block)
#
# Creates a new ThreadPool with +size+ threads, waiting at your beck and
# call.
#
#include <stdio.h>
int main(void) {
int fd = dup2(1, 3);
FILE *stdout2 = fdopen(fd, "w");
fprintf(stdout, "stdout\n");
fprintf(stdout2, "stdout2\n");
return 0;
}
module Authlogic::Session::Timeout::DontLockoutApiKey
def self.included(klass)
klass.class_eval do
before_persisting_callback_chain.detect {|c| c.method == :reset_stale_state }.options.update(:unless => :single_access?)
after_persisting_callback_chain.detect {|c| c.method == :enforce_timeout }.options.update(:unless => :single_access?)
end
end
end
class Authlogic::Session::Base
diff --git a/lib/bundler/source.rb b/lib/bundler/source.rb
index 75da44f..23b993e 100644
--- a/lib/bundler/source.rb
+++ b/lib/bundler/source.rb
@@ -188,18 +188,19 @@ module Bundler
private
def generate_bin(spec)
- # HAX -- Generate the bin
- bin_dir = "#{Gem.dir}/bin"
From af2fbd424f2b766dfb1a45f8fd1690aa60bd8eb9 Mon Sep 17 00:00:00 2001
From: Stephen Touset <stephen@touset.org>
Date: Thu, 18 Feb 2010 18:23:08 -0500
Subject: [PATCH] Generate gems through gemspec, so C extensions are built
---
lib/bundler/source.rb | 25 ++++++++++++++-----------
1 files changed, 14 insertions(+), 11 deletions(-)
diff --git a/lib/bundler/source.rb b/lib/bundler/source.rb