- Software Update
- Alfred (app store)
- 1Password (app store)
| #!/usr/bin/env ruby | |
| # Outputs sorted args to stdout | |
| # from: | |
| # http://dis.4chan.org/read/prog/1295544154/170 | |
| def sleep_sort(*args) | |
| args.each { |e| fork { sleep(e.to_f/1000); puts e } } | |
| end | |
| sleep_sort(*ARGV) |
| module JQueryEventsHelpers | |
| def trigger_js_event(selector, event) | |
| script = "$('#{selector}').trigger('#{event}')" | |
| page.execute_script(script); | |
| end | |
| end | |
| World(JQueryEventsHelpers) |
| BIG_NUMBER = 600_851_475_143 | |
| require 'prime' | |
| def slow_largest_prime_factor_of(n) | |
| possible_prime_factors = primes_up_to(Math.sqrt(n).to_i) | |
| returner = nil | |
| possible_prime_factors.each do |f| | |
| if n % f == 0 | |
| returner = f |
| #!/usr/bin/env ruby | |
| require 'rubygems' | |
| require 'RMagick' | |
| require 'capybara' | |
| require 'capybara/dsl' | |
| # ================================================================ | |
| # Collect input args | |
| # ================================================================ | |
| begin |
| # Basic Settings | |
| # | |
| fontName = "Monaco" | |
| fontSize = 12 | |
| # Extra files to include | |
| # | |
| myExtraIncludes = ".tm_properties,.htaccess,.gitignore" | |
| fileBrowserGlob = "{*,$myExtraIncludes}" | |
| include = "{$include,$myExtraIncludes}" |
| # custom current_gemset check | |
| function my_rbenv_current_gemset(){ | |
| rbenv gemset active &>/dev/null | |
| if [ $? -eq 0 ]; then | |
| local gemset="$(rbenv gemset active 2>/dev/null)" | |
| echo "$gemset" | |
| else # an error status means no gemsets | |
| echo "NO_GEMSET" | |
| fi |
| class Hash | |
| def every_combo | |
| arr = self.to_a | |
| 1.upto(arr.size).inject([]) do |memo, n| | |
| memo << arr.combination(n).to_a.map{|a| Hash[a] } | |
| memo | |
| end.flatten | |
| end | |
| end |
Get it from http://developer.apple.com. You will not be able to submit apps to any stores using this XCode version, so turn away if that is something you might want to do.
In XCode's Preferences > Downloads you can install command line tools.