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
| Processing UserSessionsController#create (for 127.0.0.1 at 2010-11-01 14:12:23) [POST] | |
| Parameters: {"action"=>"create", "authenticity_token"=>"rB6dLcQC55xOHF5Bl3R1/0Y3mqRSkZwYB6q7tyjhu0M=", "controller"=>"user_sessions", "login"=>"dce", "password"=>"[FILTERED]"} | |
| User Load (14.4ms) SELECT * FROM `users` WHERE (`users`.`pseudo_user_token` = '05505517a648f628c45da6d97ece48ead0b21519') LIMIT 1 | |
| insider UserSessions#create | |
| User Load (0.4ms) SELECT * FROM `users` WHERE (LOWER(`users`.login) = 'dce') LIMIT 1 | |
| SQL (0.1ms) BEGIN | |
| Speaker Columns (1.6ms) SHOW FIELDS FROM `speakers` | |
| Speaker Load (0.4ms) SELECT * FROM `speakers` WHERE (`speakers`.`id` = 2) AND (speakers.is_spam = 0 OR NULL) | |
| User Update (0.3ms) UPDATE `users` SET `updated_at` = '2010-11-01 14:12:23', `perishable_token` = 'wizLh57sve3jPaAJBw', `last_login_at` = '2010-11-01 14:10:21', `current_login_at` = '2010-11-01 14:12:23', `login_count` = 4, `last_request_at` = '2010-11-01 14:12:23' WHERE `id` = 2 | |
| SQL (0.6ms) COMMIT |
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 Object | |
| def given(meth) | |
| yield self if send(meth) | |
| 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
| Hi user33! | |
| Here's what's been happening with your SpeakerRate profile lately. | |
| You were added as a speaker to 2 talks: | |
| * "TDD" (http://speakerrate.test/talks/1126-tdd) | |
| * "TDD" (http://speakerrate.test/talks/1127-tdd) | |
| New ratings on your talks: |
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
| ~/Projects/project[master] > rvm default | |
| ~/Projects/project[master] > which ruby | |
| /Users/dce/.rvm/rubies/ruby-1.8.7-p249/bin/ruby | |
| ~/Projects/project[master] > sc | |
| Loading development environment (Rails 2.3.8) | |
| ruby-1.8.7-p249 > BigDecimal("9.05").to_f | |
| => 9.05 | |
| ruby-1.8.7-p249 > exit | |
| ~/Projects/project[master] > rvm system | |
| ~/Projects/project[master] > which ruby |
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
| (define atom? | |
| (lambda (a) | |
| (not (or (null? a) (pair? a))))) | |
| (define rember* | |
| (lambda (a l) | |
| (cond | |
| ((null? l) `()) | |
| ((pair? (car l)) (cons (rember* a (car l)) (rember* a (cdr l)))) | |
| ((eq? (car l) a) (rember* a (cdr l))) |
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
| -module(fold). | |
| -export([fold/2, fold/3]). | |
| fold([First | Rest], Fun) -> | |
| fold(Rest, Fun, First); | |
| fold([], Fun) -> | |
| []. | |
| fold([First | Rest], Fun, Result) -> | |
| fold(Rest, Fun, Fun(Result, First)); |
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
| <html> | |
| <script src="jquery-1.4.2.min.js"></script> | |
| <script> | |
| var bitly = { | |
| login: "your_login", | |
| api_key: "your_api_key" | |
| }; | |
| chrome.browserAction.onClicked.addListener(function(tab) { | |
| $.get("http://api.bit.ly/v3/shorten?login=" + bitly.login + |
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
| (define lat? | |
| (lambda (l) | |
| (or (null? l) (and (atom? (car l)) (lat? (cdr l)))))) | |
| (define rember | |
| (lambda (a lat) | |
| (cond | |
| ((null? lat) lat) | |
| ((eq? a (car lat)) (cdr lat)) | |
| (else (cons (car lat) (rember a (cdr lat))))))) |
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
| object FunctionalTest { | |
| def fold(args: Array[Int], lambda: (Int, Int) => Int) : Int = { | |
| var result = 0 | |
| args.foreach((arg: Int) => result = lambda(result, arg)) | |
| result | |
| } | |
| def fold2(lambda: (Int, Int) => Int) : (Array[Int]) => Int = { | |
| def folded(args: Array[Int]) : Int = { | |
| var result = 0 |
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
| grammar BasicLISP | |
| rule expression | |
| "(" (expression / method_call) ")" | |
| end | |
| rule method_call | |
| [\w]+ argument* | |
| end | |
| rule argument |