Skip to content

Instantly share code, notes, and snippets.

View kormie's full-sized avatar
🏢
In a meeting

David kormie

🏢
In a meeting
View GitHub Profile
@kormie
kormie / InterfaceBuilder.xml
Last active February 18, 2016 19:01
Example Interface Builder XML
<object class="IBClassDescriber" key="IBDocument.Classes">
<array class="NSMutableArray" key="referencedPartialClassDescriptions">
<object class="IBPartialClassDescription">
<string key="className">SampleWelcomeViewController</string>
<string key="superclassName">UIViewController</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBProjectSource</string>
<string key="minorKey">./Classes/SampleWelcomeViewController.h</string>
</object>
</object>
@kormie
kormie / quora de-spammer.js
Created October 29, 2015 21:23
Quora's sign up process is horrible and I refuse to complete it. This bookmarklet kills it for me so I can actually read the content.
javascript:(function()%7B%24(%22%5Bid*%3D'modal_nux_wrapper'%5D%22).hide()%7D)()
@kormie
kormie / Model.h
Last active January 3, 2016 13:19
Rendering UITableViewCells
@interface Model : NSObject
@property (nonatomic, copy) NSString *name;
@end
@kormie
kormie / gist:5455499
Last active December 16, 2015 15:19
my tmux.conf file
# Set prefix to C-\
unbind-key C-b
set -g prefix C-a
# Use vim bindings
set-window-option -g mode-keys vi
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-selection
#this allows us to double tape for the begining of the line
@kormie
kormie / page_specific_js.coffee
Created September 27, 2012 16:06
My method for page specific JS
window.FooPageJavaScript = class FooPageJavaScript
constructor: ->
@setupPage()
@bindEvents()
@kormie
kormie / rakefile.rb
Created November 30, 2011 04:27
Prefixr build file written in Rake
task :default => [:run_prefixr]
task :run_prefixr do
puts "Running Prefixr"
Dir.glob('css/*.css').each do |file|
puts "Copying #{file} to #{file}.old"
`cp #{file} #{file}.old`
puts "Prefixr-fying #{file}"
`curl -sSd css='#{File.read(file)}' http://prefixr.com/api/index.php > #{file}`
end