This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
font-family: Helvetica, arial, sans-serif; | |
font-size: 14px; | |
line-height: 1.6; | |
padding-top: 10px; | |
padding-bottom: 10px; | |
background-color: white; | |
padding: 30px; } | |
body > *:first-child { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
property dueTag : "due" | |
property startTag : "start" | |
property repeatTag : "repeat" | |
property todayTag : "today" | |
property pastDueTag : "overdue" | |
property upcomingTag : "upcoming" | |
property doneTag : "done" | |
property inProgressTag : "inprogress" | |
property errorTag : "error" | |
property removeTags : {upcomingTag, todayTag, pastDueTag, inProgressTag} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(){ window.open( 'http://chart.apis.google.com/chart?cht=qr&chs=512x512&chl=' + document.location.href,'qrcodepopup','width=700,height=700') })(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
js_files = Dir['*.js', 'lib/*.js', 'messages/*.js'] | |
defined_functions = js_files.map {|file| | |
[ file, File.read(file).scan( /function ([_a-z0-9]+)/i ).flatten.uniq ] | |
}.reject {|file_name, functions| functions.empty? } | |
called_functions = js_files.map {|file| | |
defined_functions.map {|file_name, functions| functions }.flatten.map do |function| | |
File.read(file).scan /(?<!function )#{function}/ | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var $$ = function(param) { | |
var node = $(param)[0]; | |
var id = $.data(node); | |
$.cache[id] = $.cache[id] || {}; | |
$.cache[id].node = node; | |
return $.cache[id]; | |
}; | |
// Now, instead of doing $("#foo").data("foo") and ("#foo").data("foo", "bar"), | |
// you can do $$("#foo").foo and $$("#foo").foo = bar. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TribeInvitation | |
- invitor | |
- (custom) url | |
TribeMembership | |
- tribe | |
- user | |
- (custom) memberships_url | |
Order |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Ansi 0 Color</key> | |
<dict> | |
<key>Blue Component</key> | |
<real>0.0</real> | |
<key>Green Component</key> | |
<real>0.0</real> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Supresses automatic updates of SASS so as not to offend your Heroku slug | |
Sass::Plugin.options[:never_update] = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def chooze_from original_field_selector, *selected_values | |
original_field = find original_field_selector | |
original_field_id = original_field[:id] | |
container_selector = "##{ original_field_id }_chzn" | |
container = find container_selector | |
if container[:class].include? 'chzn-container-multi' | |
activator = find "#{ container_selector } .chzn-choices" | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grep -rl test_database_client . | xargs gsed -i 's/test_database_client/test_db/g' |
NewerOlder