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
sql = '1 = 1' | |
values = {} | |
if params[:foo].present? | |
sql << 'AND foo >= :foo' | |
values[:foo] = params[:foo] | |
end | |
if params[:bar].present? | |
sql << 'AND bar < :bar' |
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 'mixpanel_client' | |
config = {api_key: 'FOO', api_secret: 'BAR'} | |
client = Mixpanel::Client.new(config) | |
data = client.request('engage', { | |
where: 'not defined(properties["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
<link rel='canonical' href: '/home' /> |
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
scenario 'I should see user soft delete button disabled' do | |
within("#user_#{@user.id}") do | |
page.should have_link I18n.t('soft_destroyed'), disabled: true | |
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
.count { | |
border: 1px solid #D4D4D4; | |
font-size: 11px; | |
font-weight: bold; | |
padding: 0px 8px; | |
line-height: 20px; | |
margin-left: 10px; | |
border-radius: 2px; | |
color: #333; | |
background-color: white; |
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
Abingdon Road | |
Adam Drive | |
Adam Park | |
Adam Road | |
Adis Road | |
Admiralty Drive | |
Admiralty Lane | |
Admiralty Link | |
Admiralty Road | |
Admiralty Road East |
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/ |
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
== 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
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! |
NewerOlder