Skip to content

Instantly share code, notes, and snippets.

View ybakos's full-sized avatar
💭
the machine stops the machine stops the machine stops

Yong Joseph Bakos ybakos

💭
the machine stops the machine stops the machine stops
View GitHub Profile
@larrybotha
larrybotha / A.markdown
Last active December 28, 2022 19:00
Monokai Sidebar Theme | Sublime Text

Sublime Text Monokai Sidebar Theme

A theme for the sidebar in Sublime Text to match the workspace of the Monokai theme.

This theme only modifies the sidebar to better match the Monokai theme, without modifying any of the styling elsewhere defined by Monokai.

File location: Packages/User

For a theme that extends beyond just the sidebar, visit https://gist.github.com/umpirsky/5842174

@cspickert
cspickert / Search Xcode Documentation.applescript
Created April 26, 2012 16:36
Jump to the documentation search field in Xcode 4 using AppleScript.
#!/usr/bin/osascript
-- Jump to the documentation search field in Xcode 4's Organizer
-- To use, make sure "Enable access for assistive devices" is enabled in the Universal Access pref pane
tell application "System Events"
tell process "Xcode"
-- Activate Xcode if necessary
set frontmost to true
@ybakos
ybakos / gist:1253612
Created September 30, 2011 12:28
my terminator gem error
terminator-0.4.4/lib/terminator.rb:127:in `block in terminate': wrong number of arguments (1 for 0) (ArgumentError)
from /Users/ybakos/projects/261/csci261_grading_toolkit/final/lib/09_bottles/submission.rb:40:in `call'
from /Users/ybakos/projects/261/csci261_grading_toolkit/final/lib/09_bottles/submission.rb:40:in ``'
from /Users/ybakos/projects/261/csci261_grading_toolkit/final/lib/09_bottles/submission.rb:40:in `block in incorporates_user_choice_of_product'
from /Users/ybakos/.rvm/gems/ruby-1.9.2-p180@grading/gems/terminator-0.4.4/lib/terminator.rb:134:in `call'
from /Users/ybakos/.rvm/gems/ruby-1.9.2-p180@grading/gems/terminator-0.4.4/lib/terminator.rb:134:in `terminate'
from /Users/ybakos/projects/261/csci261_grading_toolkit/final/lib/09_bottles/submission.rb:38:in `incorporates_user_choice_of_product'
@ryanb
ryanb / rails_3_1_rc4_changes.md
Created May 6, 2011 01:10
The Changelogs for Rails 3.1 Beta 1

Railties 3.1 RC4

  • The new rake task assets:clean removes precompiled assets. [fxn]

  • Application and plugin generation run bundle install unless --skip-gemfile or --skip-bundle. [fxn]

  • Fixed database tasks for jdbc* adapters #jruby [Rashmi Yadav]

  • Template generation for jdbcpostgresql #jruby [Vishnu Atrai]

#Dr StrangeCode or "How I Learned to Stop Worrying and Love the Rails 3.0 Upgrade"* I recently upgraded one of my Rails applications from 2.3.5 to 3.0.0 (and from ruby 1.8.7 to 1.9.2). I took a series of notes of all the problems and issues I ran into. ##Ruby 1.8.7 to 1.9.2 upgrade

  • FasterCSV is part of 1.9.2, but not 1.8.7. If you want to maintain compatibility with both, then keep using FasterCSV.
  • ftools no longer exists in ruby 1.9.2. Was using it in a require. I just used fileutils instead.
  • I had a bunch of old-style case/when statements that no longer work in 1.9.
    hours = case r[6..6]
        when "M": [0,11]
 when "A": [12, 18]