This file contains hidden or 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
rvm gemset empty && bundler install |
This file contains hidden or 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
category = { | |
'Gwen Plus Five' => 'customportraits', | |
'Marianne' => '' | |
'Sanders Tanya' => '' | |
'SATC' => '' | |
'Dearjohn' => '' | |
'Portlandpropr And Kids' => '' | |
'Friends With Benefits' => '' | |
'Seacreature' => 'illustrations' | |
'JonJill' => '' |
This file contains hidden or 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
0.upto(8){|i| puts i.to_s(2).rjust(4,'0').split(//).join("\t")} | |
# => | |
# 0 0 0 0 | |
# 0 0 0 1 | |
# 0 0 1 0 | |
# 0 0 1 1 | |
# 0 1 0 0 | |
# 0 1 0 1 | |
# 0 1 1 0 |
This file contains hidden or 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
function color(interval){ | |
$('header.tc_page_header').css('background-color', 'rgb('+parseInt(Math.random()*255)+','+parseInt(Math.random()*255)+','+parseInt(Math.random()*255)+')') | |
setTimeout(function(){ | |
color(interval); | |
},interval); | |
} | |
$('document').ready(function(){ | |
setTimeout(function(){ | |
$('h3[title="my work"]').html("<marquee>my Work</marquee>") |
This file contains hidden or 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
~ sudo ln -s /Applications/Sublime\ Text\ 3.app/Contents/SharedSupport/bin/subl /usr/bin/sub | |
~ chmod a+x /usr/bin/sub |
This file contains hidden or 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
// MomentJS can use different types of timezone offset | |
// including the one obtained by ActiveSupport::TimeZone | |
var timezone_offset = "+01:00"; | |
console.log(moment().zone(timezone_offset).format('LLLL')); | |
> Tuesday, October 28 2014 7:51 PM | |
console.log(moment().format('LLLL')); |
This file contains hidden or 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
for TABLE in $(psql table_name -c "\dt" | awk '{print $3}'); do psql table_name -c "select '$TABLE', count(*) from $TABLE;" | grep -A1 "\-\-\-\-" | tail -1; done |
This file contains hidden or 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
// in the component's didInsertElement | |
$(window).on('resize', function() { | |
return Em.run.debounce(that, 'resizeWindow', 250); | |
}); | |
// in the route's willTransition | |
$(window).off('resize'); |
This file contains hidden or 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
Processing by Api::Admin::MarkerActivitiesController#create as JSON | |
Parameters: {"title"=>"THIS IS OKAY", "description"=>"default description", "social_is_active"=>true, "social_description"=>"default description", "labels_is_active"=>true, "labels_description"=>"default description", "label_data"=>"[FILTERED]", "sentiment_is_active"=>true, "sentiment_description"=>"default description", "image_attachment"=>{"name"=>"Screen Shot 2014-06-20 at 12.47.55 PM.png", "type"=>"image/png", "data"=>"[FILTERED]"}, "api_version"=>"v1", "project_id"=>"3078", "marker_activity"=>{}} |
This file contains hidden or 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
// My Annotation object has labels, but only carries the list of label values | |
// "labels":["terr","anno"] | |
// This is the form of the full annotationLabel | |
// {"id":1,"label":"Terrifying","value":"terr"} | |
// {"id":2,"label":"Annoying","value":"anno"} | |