This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-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) -> |
OlderNewer