Skip to content

Instantly share code, notes, and snippets.

$(function(){
$( '#menu' ).slicknav();
$( ".slicknav_menu" ).before( "<div class='mobile nav__mobile-header'><img src='<%= asset_path('logo-mobile.png') %>'></div>" );
});
# ilovegianna.com
make it media phone size... WHY ISNT IT showing up?
Why is it missing?
deployer@localhost:~$ cd /var/www/fusion/current
deployer@localhost:/var/www/fusion/current$ bundle exec foreman start
05:04:16 worker.1 | started with pid 25383
05:04:18 worker.1 | 2018-01-17T05:04:18.181Z 25383 TID-b0dv0 INFO: Booting Sidekiq 5.0.5 with redis options {:db=>1, :id=>"Sidekiq-server-PID-25383", :url=>nil}
05:04:18 worker.1 | 2018-01-17T05:04:18.187Z 25383 TID-b0dv0 INFO: Running in ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux]
05:04:18 worker.1 | 2018-01-17T05:04:18.187Z 25383 TID-b0dv0 INFO: See LICENSE and the LGPL-3.0 for licensing details.
05:04:18 worker.1 | 2018-01-17T05:04:18.190Z 25383 TID-b0dv0 INFO: Upgrade to Sidekiq Pro for more features and support: http://sidekiq.org
05:04:18 worker.1 | 2018-01-17T05:04:18.192Z 25383 TID-b0dv0 INFO: Starting processing, hit Ctrl-C to stop
2.4.1 :026 > v
=> #<Hashie::Mash data=#<Hashie::Array [#<Hashie::Mash attribution=nil caption=#<Hashie::Mash created_time="1515770468" from=#<Hashie::Mash full_name="Live Streaming Fitness" id="1567113670" profile_picture="https://scontent.cdninstagram.com/t51.2885-19/11208400_373248376211786_817536808_a.jpg" username="livestreamingfitness"> id="17878672702198051" text="Time to take a break and fuel your body with the best fuel FOR your body. Some good Ol' water! Your body needs this to keep it going, and when you are working as hard as you all have been you need to get your fill! So stay Healthy and stay Hydrated. -LivestreamingFitness.com\n\n#health #fitness #fit #socialenvy #LSFIT #fitnessmodel #fitnessaddict #fitspo #workout #bodybuilding #cardio #gym #train #training #health #healthy #instahealth #healthychoices #active #strong #motivation #instagood #determination #lifestyle #diet #getfit #cleaneating #eatclean #exercise"> comments=#<Hashie::Mash count=0> created_time="1515770468" filter="Normal" id="1
#bgndVideo.player{"data-property" => "{videoURL:'http://youtu.be/BsekcY04xvQ',containment:'body',autoPlay:true, mute:true, startAt:0, opacity:1}"}
Invalid CSS after "#bgndVideo.player": expected selector, was "{"data-property..."
# https://github.com/gpakosz/.tmux
# (‑●‑●)> dual licensed under the WTFPL v2 license and the MIT license,
# without any warranty.
# Copyright 2012— Gregory Pakosz (@gpakosz).
# -- navigation ----------------------------------------------------------------
# if you're running tmux within iTerm2
# - and tmux is 1.9 or 1.9a
# cat << EOF > /dev/null
# https://github.com/gpakosz/.tmux
# (‑●‑●)> dual licensed under the WTFPL v2 license and the MIT license,
# without any warranty.
# Copyright 2012— Gregory Pakosz (@gpakosz).
# /!\ do not edit this file
# instead, override settings in ~/.tmux.conf.local, see README.md
# -- general -------------------------------------------------------------------
session = GoogleDrive::Session.from_service_account_key("Drive-70fa51ce501f.json")
pry(#<FusionGoogle>)> params["file"]
=> {"filename"=>"2018teen-event.jpg",
"type"=>"image/jpeg",
"name"=>"file",
"tempfile"=>"/var/folders/76/htzn7pq92wlbmj5nz9ch2kth0000gn/T/RackMultipart20171222-8745-11dq5ae.jpg",
"head"=>"Content-Disposition: form-data; name=\"file\"; filename=\"2018teen-event.jpg\"\r\nContent-Type: image/jpeg\r\n"}
[4] pry(#<OurWorker>)> exit
2017-12-15T18:03:05.492Z 81004 TID-owppemxv4 OurWorker JID-30d6ad72f2dee4cfc0fcddda INFO: fail: 18.405 sec
2017-12-15T18:03:05.493Z 81004 TID-owppemxv4 WARN: {"context":"Job raised exception","job":{"class":"OurWorker","args":["foo",{"name":"","phone":"","email":"info@staycreativedesign.com","company_name":"","company_phone":"","company_website":"","company_address":"","company_billing":"","company_conduct":"","company_colors":"","company_year":"","company_target":"","company_acquisition":"","company_tag":"","company_testimonial":"","company_distributor":"","company_p10":"","company_viasat":"","package":"premium"}],"retry":true,"queue":"default","jid":"30d6ad72f2dee4cfc0fcddda","created_at":1513360345.107556,"enqueued_at":1513360761.607423,"error_message":"undefined method `new' for UpdateSpreadsheet:Module","error_class":"NoMethodError","failed_at":1513360345.109366,"retry_count":2,"retried_at":1513360467.4400399},"jobstr":"{\"class\":\"OurWorker\
NoMethodError at /dealers
undefined method `[]' for nil:NilClass
file: main.rb location: block in <top (required)> line: 51
:attachments => {params[:file][:filename] => File.read(params[:file][:tempfile])},
@staycreativedesign
staycreativedesign / error.haml
Created November 4, 2017 20:17
simple calendar 1.1
ActionView::Template::Error (undefined method `local_date' for #<Hash:0x007fb0c1173120>
Did you mean? local_variables):
1: -# - @meetings.each do |f|
2: -# = f["name"]
3: -# puts "-------------------------------------------------------------------------------------"
4: = month_calendar events: @meetings, attribute: :local_date do |date, meetings|
5: = date.strftime("%e")
6: - meetings.each do |meeting|
7: %div