Page / User State | Logged Out | Logged In |
---|---|---|
/public-page | Go to /public-page | Go to /public-page |
/page-requiring-auth |
|
Go to /page-requiring-auth |
/login |
|
Redirect to / |
/logout | Redirect to / |
|
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
date | Airbus | Boeing | |
---|---|---|---|
2000-07-31 | 0 | 0 | |
2000-08-31 | -0.884 | 9.8912 | |
2000-09-29 | 9.6685 | 32.1383 | |
2000-10-31 | 32.5967 | 38.9245 | |
2000-11-30 | 33.1492 | 41.4853 | |
2000-12-29 | 30.7182 | 35.2113 | |
2001-01-31 | 27.0718 | 19.8464 | |
2001-02-28 | 24.3094 | 27.4264 | |
2001-03-30 | 16.0773 | 14.1306 |
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
license: gpl-3.0 |
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
license: gpl-3.0 |
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
license: gpl-3.0 |
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
# gem install benchmark-ips | |
require "benchmark/ips" | |
Benchmark.ips do |x| | |
x.report("range") { (1..100).each { |i| i } } | |
x.report("upto") { 1.upto(100).each { |i| i } } | |
x.report("times plus one") { 100.times { |i| i + 1 } } |
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
license: gpl-3.0 |
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
# gem install benchmark-ips | |
require "benchmark/ips" | |
uri = "http://twitter.com/user/statuses/1234567891011121314" | |
Benchmark.ips do |x| | |
x.report("file.basename") { File.basename(uri) } | |
x.report("split('/').last") { uri.split("/").last } |
JScript to find broken tracks that iTunes can no longer find. Perfect for those who like to manage their large music libraries.
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
function retry(isDone, next) { | |
var current_trial = 0, max_retry = 50, interval = 10, is_timeout = false; | |
var id = window.setInterval( | |
function() { | |
if (isDone()) { | |
window.clearInterval(id); | |
next(is_timeout); | |
} | |
if (current_trial++ > max_retry) { | |
window.clearInterval(id); |