Skip to content

Instantly share code, notes, and snippets.

View logaan's full-sized avatar
🥔
Starchy

Logan Campbell logaan

🥔
Starchy
View GitHub Profile
logaan@logmac:libusb-0.1.12$ sudo make install
Password:
Making install in .
test -z "/usr/local/bin" || /Users/logaan/Downloads/libusb-0.1.12/install-sh -d "/usr/local/bin"
/usr/bin/install -c 'libusb-config' '/usr/local/bin/libusb-config'
test -z "/usr/local/lib" || /Users/logaan/Downloads/libusb-0.1.12/install-sh -d "/usr/local/lib"
/bin/sh ./libtool --mode=install /usr/bin/install -c 'libusb.la' '/usr/local/lib/libusb.la'
/usr/bin/install -c .libs/libusb-0.1.4.4.4.dylib /usr/local/lib/libusb-0.1.4.4.4.dylib
(cd /usr/local/lib && rm -f libusb-0.1.4.dylib && ln -s libusb-0.1.4.4.4.dylib libusb-0.1.4.dylib)
(cd /usr/local/lib && rm -f libusb.dylib && ln -s libusb-0.1.4.4.4.dylib libusb.dylib)
var table = /\<table(.*)\>.+\<\/table\>/g;
var tables = table.exec(html);
if ( tables == null )
return table.exec(html)[0];
else {
var bands = tables[0];
return bands;
}
require File.join( File.dirname(__FILE__), '..', "spec_helper" )
def group name
yield Group.create(:name => name)
end
class Group
def group name
new_group = Group.create(:name => name)
self.children << new_group
require File.join( File.dirname(__FILE__), '..', "spec_helper" )
def group name
yield Group.create(:name => name)
end
class Group
def group name
new_group = Group.create(:name => name)
self.children << new_group
require File.join( File.dirname(__FILE__), '..', "spec_helper" )
def group name
yield Group.create(:name => name)
end
class Group
def group name
new_group = Group.create(:name => name)
self.children << new_group
require File.join( File.dirname(__FILE__), '..', "spec_helper" )
def group name
yield Group.create(:name => name)
end
class Group
def group name
new_group = Group.create(:name => name)
self.children << new_group
require File.join( File.dirname(__FILE__), '..', "spec_helper" )
def group name
yield Group.create(:name => name)
end
class Group
def group name
new_group = Group.create(:name => name)
self.children << new_group
require File.join(File.dirname(__FILE__), "spec_helper")
describe UrchinClient do
before do
@agent = mock(WWW::Mechanize)
WWW::Mechanize.stub!(:new).and_return(@agent)
end
describe "initialization" do
@logaan
logaan / gist:41237
Created December 29, 2008 10:37 — forked from benaskins/gist:41203
// X and Y axis labels and captions default to global style if not provided
targets = ["xAxisLabel", "yAxisLabel", "yAxisCaption", "hoverLabel", "hoverValue"]
types = ["Color", "Font", "FontSize"]
for each (type in types) {
for each (target in targets) {
// Note: I'm using array notation for attributes rather than dot notation
// (foo["bar"] rather than foo.bar)
if (!this.settings[target + type]) {
this.settings[target + type] = this.settings["label" + type]
-module(string_tree).
-export([format/1]).
format(StringTree) ->
FormattedString = format(StringTree, 0, ""),
io:format(FormattedString).
% Leaves are in the format {String, []}
% Regular nodes are in the format {String, [Node1, Leaf1, ... NodeN, LeafN]}
format({String, []}, Indentation, Output) ->