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 TestMailer | |
| def load_settings(site) | |
| options = YAML.load_file("#{RAILS_ROOT}/config/test.yml")[RAILS_ENV][site] | |
| @@smtp_settings = { | |
| :address => options["address"], | |
| :port => options["port"], | |
| :domain => options["domain"], | |
| :authentication => options["authentication"], | |
| :user_name => options["user_name"], |
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
| default: -r features/support/env.rb -r features/support/plain.rb -r features/step_definitions features/plain | |
| selenium: -r features/support/env.rb -r features/support/enhanced.rb -r features/step_definitions features/enhanced |
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
| default: -r features/support/env.rb -r features/support/plain.rb -r features/step_definitions features/plain | |
| selenium: -r features/support/env.rb -r features/support/enhanced.rb -r features/step_definitions features/enhanced |
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
| CmdUtils.CreateCommand({ | |
| names: ["rails"], | |
| icon: "http://rubyonrails.org/favicon.ico", | |
| description: "Search rails documentation", | |
| help: "Type a rails class or method.", | |
| author: {name: "Jason Ong", email: "[email protected]"}, | |
| license: "GPL", | |
| homepage: "", | |
| arguments: [{role: "object", nountype: noun_arb_text, label: "class or method"}], | |
| preview: function preview(pblock, args) { |
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
| //General function for retrieving verses | |
| function verseQuery ( apiParams, callback) { | |
| var apiUrl = "http://www.esvapi.org/v2/rest/passageQuery?"; | |
| jQuery.ajax({ | |
| type: "GET", | |
| url: apiUrl, | |
| dataType: "html", | |
| data: apiParams, | |
| error: function() { |
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
| CmdUtils.CreateCommand({ | |
| names: ["objectliteral"], | |
| icon: "http://www.blogger.com/favicon.ico", | |
| description: "Shortcut to my blog.", | |
| help: "list, create or search", | |
| author: {name: "Jason Ong", email: "[email protected]"}, | |
| license: "GPL", | |
| homepage: "http://objectliteral.blogspot.com", | |
| arguments: [{role: 'object', nountype: noun_arb_text}], | |
| urls: { |
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
| namespace :unittest do | |
| task *[:tag, (0..100).map {|i| "t#{i}".to_sym }].flatten do |t, args| | |
| args.each do |key, value| | |
| Dir[File.join(RAILS_ROOT, 'test', 'unit', '*.rb')].each do |file| | |
| File.open(file,'r') do |fh| | |
| tags = fh.grep(/\~(\S+)/).map do |t| | |
| t.strip! |
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
| == Meetup == | |
| Date: 11th May 2011 | |
| Time: 7:30pm | |
| Venue: HackerspaceSG, 70A Bussorah Street | |
| == Food and Beer == | |
| Many thanks to Carl from Pivotal Labs for providing delicious Arabic snacks and ice cold Wychcrafts, Asahis and Hoegardens from Mabuk Monkey. | |
| And also special thanks to Meng for serving us flame thrown carnival. |
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
| Date: 25th May 2011 | |
| Time: 7:30pm | |
| Venue: HackerspaceSG, 70A Bussorah Street | |
| # Patrick: | |
| ~/.bashrc | |
| http://haller.ws/projects/bash/ | |
| # Ivan: | |
| http://en.wikipedia.org/wiki/The_Mother_of_All_Demos |
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
| # Talks | |
| * SF/SV communities - Aihui | |
| * Game design with verbs - Matthew Weise | |
| # Links | |
| * http://bit.ly/SiliconValleyStartupScene | |
| * http://gambit.mit.edu/ | |
| * http://www.flickr.com/photos/elfgoh/sets/72157626860409700/show/ |
OlderNewer