This file contains hidden or 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
//Tango Palette: http://tango.freedesktop.org/Tango_Icon_Theme_Guidelines#Color_Palette | |
//Licensed as Public Domain | |
//SASS'd by James Mason ([email protected]) | |
//Butter | |
$light_butter: #fce94f | |
$butter: #edd400 | |
$dark_butter: #c4a000 | |
//Orange |
This file contains hidden or 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
When /^(?:|I )double-click the card$/ do | |
snippet = <<-EOS | |
$(".card[data-id='1']").dblclick(); | |
EOS | |
page.execute_script( snippet ) | |
end |
This file contains hidden or 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
[Device] | |
Vendor=Motorola | |
Product=CLIQ2/MB611 | |
AccessProtocol=storage | |
DeviceMatch=usb:22b8:41d9; | |
[Media] | |
OutputFormats=OutputFormats=audio/mpeg;audio/x-ms-wma;audio/3gpp;audio/mp4;audio/aac;audio/vnd.rn-realaudio;audio/x-midi;audio/x-wav;application/ogg | |
[storage] |
This file contains hidden or 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
Depends on the "xml-simple" and "net-http-digest_auth" gems... | |
For Rails 2: | |
config/environment.rb: | |
Rails::Initializer.run do |config| | |
... | |
config.gem "xml-simple", :lib => "xmlsimple" | |
config.gem "net-http-digest_auth", :lib => "net/http/digest_auth" |
This file contains hidden or 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
#! /usr/bin/ruby | |
# data set: | |
# id | name | score | postal | color | |
# 1 | john | 14 | 12345 | blue | |
# 2 | jane | 10 | 12345 | blue | |
# 3 | jeff | 6 | 12345 | green | |
# define a simple class for holding the dataset |
This file contains hidden or 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
//Tango Palette: http://tango.freedesktop.org/Tango_Icon_Theme_Guidelines#Color_Palette | |
//Licensed as Public Domain | |
//LESS'd by James Mason ([email protected]) | |
//Butter | |
@light_butter: #fce94f; | |
@butter: #edd400; | |
@dark_butter: #c4a000; | |
//Orange |
This file contains hidden or 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
#!/usr/bin/ruby | |
require 'rubygems' | |
require 'sinatra' | |
require 'haml' | |
require 'gdata' | |
PROJECT_PATH = "/your/project/path" | |
DOMAIN = 'your_google_apps_domain_or_blank_for_any_google_account.com' |
This file contains hidden or 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
#! /usr/bin/ruby | |
require 'rubygems' | |
require 'sinatra' | |
require 'haml' | |
require 'thin' | |
set :public, File.dirname(__FILE__) | |
get '/' do |
This file contains hidden or 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
class Core < ActiveResource::Base | |
self.site = case Rails.env | |
when 'production' | |
"http://core.yamatoengines.com" | |
else | |
"http://localhost:3005" | |
end | |
end |
This file contains hidden or 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
# clear a table | |
Given /^I have no (\S+)$/ do |table| | |
ActiveRecord::Base.connection.execute "DELETE FROM `#{table.tableize}`" | |
end | |
# create a new instance, as an @underscore_named_var, and @it. | |
Given /^I have a new (\S+)$/ do |model| | |
eval "@#{model.underscore} = #{model.classify}.new" | |
eval "@it = #{model.classify}.new" | |
end |