Tested in Mac OS X: super == command
Open/Goto
- super+t: go to file
- super+ctrl+p: go to project
- super+r: go to methods
require 'json' | |
def flatten_current_array(array,new_array) | |
if array.class == Array | |
array.each do |elem| | |
flatten_current_array(elem,new_array) | |
end | |
else | |
new_array.push(array) | |
end |
=begin | |
Notes | |
===== | |
Labels: On the label you should put a "for" attribute if you're not using something like simple_form | |
This helps capybara to find your field | |
e.g. <label for="my_field_id">Some label</label> | |
=end | |
field = "Label on my field" | |
value = "existing option in list" |
</Proxy *> | |
AddDefaultCharset off | |
Order deny,allow | |
Deny from all | |
Allow from localhost | |
</Proxy> |
There have been several HOWTOs posted regarding streaming the 2012 Olympics using HTTP / SOCKS proxies via SSH and other similar methods. None of these actually work using the latest Flash on Mountain Lion (with Firefox, Chrome or Safari). Additionally, the third-party streaming sites don't provide BBC's amazing interface, which lets you quickly skip to individual competitors and events. However, setting up an OpenVPN server does work, with some tweaks. You'll get the exact same UX that people in England receive.
Get a Linode VM in the UK. The 512MB server for $20 works just fine. (If you want to use my referral link, go for it: http://bit.ly/OuzdVe)
Follow the standard OpenVPN installation documentation. (Basically, 'apt-get install openvpn' or 'yum install openvpn' and then follow these docs: http://openvpn.net/index.php/open-source/documentation/howto.html). For an OS X client, I prefer Viscosity: http://www.thesparklabs
Sublime Text 2 ships with a CLI called subl (why not "sublime", go figure). This utility is hidden in the following folder (assuming you installed Sublime in /Applications
like normal folk. If this following line opens Sublime Text for you, then bingo, you're ready.
open /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl
You can find more (official) details about subl here: http://www.sublimetext.com/docs/2/osx_command_line.html