Skip to content

Instantly share code, notes, and snippets.

View daytonn's full-sized avatar
💀
Trying to figure out why I would care to add a status to github

Dayton Nolan daytonn

💀
Trying to figure out why I would care to add a status to github
View GitHub Profile
@daytonn
daytonn / named_on_callback.js
Created July 1, 2013 15:27
Named callback using on event method
function togglePanel() {
$(".panel").slideToggle();
}
$('.arrow').on('click', togglePanel);
@daytonn
daytonn / named_callback.js
Created July 1, 2013 15:24
Named event callback
function togglePanel() {
$(".panel").slideToggle();
}
$('.arrow').click(togglePanel);
@daytonn
daytonn / anonymous_callback.js
Last active December 19, 2015 04:59
callback with anonymous function
$(".arrow").click(function(){
$(".panel").slideToggle();
});
@daytonn
daytonn / uicolor.rb
Created June 23, 2013 00:56
Properly Namespaced UIColor helper
module UIColor
def self.black
UIColor.blackColor
end
def self.darkGray
UIColor.darkGrayColor
end
@daytonn
daytonn / Default (OSX).sublime-keymap
Created May 3, 2013 20:06
Sublime keymap hotness
[
// Upper/Lower case
{ "keys": ["super+alt+u"], "command": "upper_case" },
{ "keys": ["super+alt+l"], "command": "lower_case" },
// Hash rocket
{ "keys": ["super+alt="], "command": "insert_snippet", "args": {"contents": "=>"} },
// Symbolize selection
{ "keys": ["super+shift+;"], "command": "insert_snippet", "args": {"name": "Packages/User/ruby-symbol.sublime-snippet"}},
// TextMate style drawer toggle
{ "keys": ["ctrl+super+alt+d"], "command": "toggle_side_bar" },
@daytonn
daytonn / TestConsole.hidden-tmTheme
Created April 30, 2013 15:17
Alternate theme for RubyTest
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>TestConsoleTheme</string>
<key>settings</key>
<array>
<dict>
<key>settings</key>
@daytonn
daytonn / Neopolitan.tmTheme
Created April 24, 2013 14:56
Neopolitan theme for Sublime Text 2
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Neopolitan</string>
<key>author</key>
<string>Dayton Nolan</string>
<key>settings</key>
<array>
@daytonn
daytonn / Custom.css
Created April 24, 2013 14:55
Neopolitan theme for Chrome's console
/*
* This stylesheet overrides the display of code in the Chrome Inspector.
* Put it here: ~/Library/Application\ Support/Google/Chrome/Default/User\ StyleSheets/Custom.css
*/
/**********************************************/
/*
/* Darker Skin by Darcy Clarke - 2011
/*
/* Based on Joe Bergantine's Specials Board:
var myTemplate = _.template('<h1><%= myvar %></h1>');
myTemplate({ myvar: 'foo' });
@daytonn
daytonn / Guardfile
Created March 20, 2013 19:38
Guardfile
# A sample Guardfile
# More info at https://github.com/guard/guard#readme
group :interactive do
guard 'spork', :rspec_env => {'RAILS_ENV' => 'test'}, :wait => 50 do
watch('config/application.rb')
watch('config/environment.rb')
watch(%r{^config/environments/.+\.rb$})
watch(%r{^config/initializers/.+\.rb$})