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
~/dev/tshirts$ rake | |
(in /Users/juriy/dev/tshirts) | |
config.gem: Unpacked gem pg-0.7.9.2008.10.13 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this. | |
config.gem: Unpacked gem rake-0.8.3 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this. | |
config.gem: Unpacked gem sqlite3-ruby-1.2.2 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this. | |
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -Ilib:test "/Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake/rake_test_loader.rb" "test/functional/assets_controller_test.rb" "test/functional/items_controller_test.rb" "test/functional/pages_controller_test.rb" "test/functional/sessions_controller_test.rb" "test/functional/users_controller_test.rb" | |
config.gem: Unpacked gem pg-0.7.9.2008.10.13 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this. | |
config.gem: Unpacked gem rake-0.8.3 in vendor/gems has no specification file. Run 'rake |
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
var isNumber = (function(){ | |
var toString = Object.prototype.toString; | |
return function(o) { | |
return toString.call(o) === '[object Number]'; | |
} | |
})(); | |
function isNumber2(o) { | |
try { | |
return typeof (o && o.valueOf()) == 'number'; |
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
/* | |
transform-list: | |
wsp* transforms? wsp* | |
transforms: | |
transform | |
| transform comma-wsp+ transforms | |
transform: | |
matrix | |
| translate | |
| scale |
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
var wsp = '(\\u0020|\\u0009|\\u000D|\\u000A)'; | |
var digit = '\\d'; | |
var digit_sequence = '(' + digit + '+' + ')'; | |
var sign = '[-+]'; | |
var exponent = '[eE]' + sign + '?' + digit_sequence; | |
var fractional_constant = | |
'(' + | |
digit_sequence + '?' + '\\.' + digit_sequence + | |
'|' + |
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
var wsp = '(\\u0020|\\u0009|\\u000D|\\u000A)'; | |
var digit = '\\d'; | |
var digit_sequence = '(' + digit + '+' + ')'; | |
var sign = '[-+]'; | |
var exponent = '[eE]' + sign + '?' + digit_sequence; | |
var fractional_constant = | |
'(' + | |
digit_sequence + '?' + '\\.' + digit_sequence + | |
'|' + |
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
/* | |
'My name is #{name=Earl}'.interpolate2(); // "My name is Earl" | |
'My name is #{name}'.interpolate2({ name: 'Earl2D2' }); // "My name is Earl2D2" | |
*/ | |
String.prototype.interpolate2 = (function(){ | |
var re = /#{([-\w]+)(?:=([-\w]+))?}/g; | |
return function(source) { | |
if (!source) source = { }; |
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
function isArguments(o) { | |
function isPropertyDontEnum(o, prop) { | |
for (var p in o) { | |
if (p === prop) return false; | |
} | |
return true; | |
} | |
return (typeof o == 'object' && 'length' in o && | |
isPropertyDontEnum(o, 'callee')); | |
} |
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
Element.addMethods({ | |
store: function(element, key, value) { | |
if (!(element = $(element))) return; | |
var storage = element.getStorage(); | |
if (Object.isUndefined(value)) { | |
for (var prop in key) { | |
storage.set(prop, key[prop]); | |
} | |
} | |
else { |
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
(function(__global){ | |
if (!__global.console || (__global.console && !__global.console.log)) { | |
__global.console = { | |
log: (__global.opera && __global.opera.postError) | |
? __global.opera.postError | |
: function(){ } | |
} | |
} | |
})(this); |
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
require 'rubygems' | |
require 'net/http' | |
require 'uri' | |
require 'w3c_validators' | |
include W3CValidators | |
base_path = 'http://localhost:3000/' | |
uris = [ | |
'login', |