Skip to content

Instantly share code, notes, and snippets.

View etozzato's full-sized avatar
💀
I work hard so my cat doesn't have to

Emanuele Tozzato etozzato

💀
I work hard so my cat doesn't have to
View GitHub Profile
105 The Cannabis Extraction and Concentrates Wizard – Bryce Berryessa Bryce Berryessa
104 The Young Mavericks Disrupting the Cannabis Tracking Software Space Kyle Sherman and Chase Wiseman
103 Locating the Perfect Real Estate for your Cannabis Business Matt Chapeldaine
102 Cannabis Oil Extraction Technology with Andy Joseph Andy Joseph
101 Tech That is Changing Cannabis Cultivation with Greg Eisenbeis Greg Eisenbeis
100 What is Selling in Cannabis Dispensaries with Roy Bingham Roy Bingham
99 Cannabis Tourism with Bud and Breakfast CEO, Sean Roby Sean Roby
98 Bringing the Cannabis Market to your Door with Healthy Headie Holly Alberti-Evans
97 How CBD Can Help Your Pets Julianna Carella & Marjorie Fischer
96 Inside The Cannabis Cup with Nico Escondido of High Times Nico Escondido
rvm gemset empty && bundler install
category = {
'Gwen Plus Five' => 'customportraits',
'Marianne' => ''
'Sanders Tanya' => ''
'SATC' => ''
'Dearjohn' => ''
'Portlandpropr And Kids' => ''
'Friends With Benefits' => ''
'Seacreature' => 'illustrations'
'JonJill' => ''
@etozzato
etozzato / binary_combinations.rb
Created December 1, 2014 05:48
Binary Combinations for spreadsheet
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
@etozzato
etozzato / pivotaltracker.com.js
Created October 31, 2014 17:16
Sense of Urgency(TM) for PivotalTracker
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>")
@etozzato
etozzato / subl.sh
Created October 30, 2014 17:32
Sublime Text 3 CLI (subl)
~  sudo ln -s /Applications/Sublime\ Text\ 3.app/Contents/SharedSupport/bin/subl /usr/bin/sub
~  chmod a+x /usr/bin/sub
@etozzato
etozzato / dst.js
Last active August 29, 2015 14:08
Working with ActiveSupport::TimeZone
// 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'));
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
@etozzato
etozzato / gist:85da5cb66ab935d06ebf
Created October 13, 2014 23:20
Window Resize
// in the component's didInsertElement
$(window).on('resize', function() {
return Em.run.debounce(that, 'resizeWindow', 250);
});
// in the route's willTransition
$(window).off('resize');
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"=>{}}