Skip to content

Instantly share code, notes, and snippets.

@aeblin
aeblin / gist:3841819
Created October 5, 2012 19:23
JQuery for Producer Load
$(document).ready(function() {
var $ul = $('<ul>');
var producers = bbf.userinfo.user_recent_producers;
$(producers).each(function(i,producer)
var url = '/rpc' + producer.companyid,
$a = $('<a>'),
$li = $('<li>');
$a.attr('href',url)
E325: ATTENTION
Found a swap file by the name ".git/.COMMIT_EDITMSG.swp"
owned by: aeblin dated: Fri Sep 28 15:29:12 2012
file name: ~aeblin/bbf/bbf/.git/COMMIT_EDITMSG
modified: YES
user name: aeblin host name: Andrew-Eblins-MacBook-Pro.local
process ID: 6387
While opening file ".git/COMMIT_EDITMSG"
dated: Tue Oct 9 20:32:27 2012
NEWER than swap file!
@aeblin
aeblin / gist:3920084
Created October 19, 2012 19:11
Traceback
Traceback (most recent call last):
File "/Users/aeblin/bbf/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/ext/webapp/_webapp25.py", line 710, in __call__
handler.get(*groups)
File "/Users/aeblin/bbf/bbf/pageviewer.py", line 470, in get
return self.post(*args)
File "/Users/aeblin/bbf/bbf/pageviewer.py", line 614, in post
return base.livelog(self.request, func)
File "/Users/aeblin/bbf/bbf/base.py", line 707, in livelog
return func()
File "/Users/aeblin/bbf/bbf/pageviewer.py", line 613, in func
Andrew-Eblins-MacBook-Pro:eidolon aeblin$ rails g migration Add_Long_Description_To_Product long_description:string
/Users/aeblin/.rvm/gems/ruby-2.1.2/gems/rails-database-url-1.0.0/lib/rails-database-url.rb:25:in `read': No such file or directory @ rb_sysopen - /Users/aeblin/eidolon/config/database.yml (Errno::ENOENT)
from /Users/aeblin/.rvm/gems/ruby-2.1.2/gems/rails-database-url-1.0.0/lib/rails-database-url.rb:25:in `db_config'
from /Users/aeblin/.rvm/gems/ruby-2.1.2/gems/rails-database-url-1.0.0/lib/rails-database-url.rb:7:in `set_database_url'
from /Users/aeblin/.rvm/gems/ruby-2.1.2/gems/rails-database-url-1.0.0/lib/rails-database-url.rb:46:in `<top (required)>'
from /Users/aeblin/.rvm/gems/ruby-2.1.2@global/gems/bundler-1.6.2/lib/bundler/runtime.rb:76:in `require'
from /Users/aeblin/.rvm/gems/ruby-2.1.2@global/gems/bundler-1.6.2/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
from /Users/aeblin/.rvm/gems/ruby-2.1.2@global/gems/bundler-1.6.2/lib/bundler/runtime.rb:72:in `each'
from /User
<%= f.fields_for :hero, @product.assets.new do |fh| %>
<%= fh.file_field :image, class: "float-label", placeholder: "Upload" %>
<%= fh.label :image, "Hero Images" %>
<% end %>
@aeblin
aeblin / gist:7fec7c910f2e9b99703b
Created July 21, 2014 20:55
Gives an idea of what I'm trying for - but doesn't work.
<%= f.submit "<i class='glyphicon glyphicon-remove-sign'/>", class: "cart-remove" %>
2014-08-22T00:26:47.219211+00:00 heroku[web.1]: State changed from crashed to starting
2014-08-22T00:26:49.720919+00:00 heroku[web.1]: Starting process with command `puma -p 26257 -t 1:$THREADS -w $WORKERS`
2014-08-22T00:26:50.567072+00:00 app[web.1]: /app/vendor/bundle/ruby/2.1.0/gems/puma-2.9.0/lib/puma/cli.rb:294:in `parse_options': missing argument: -w (OptionParser::MissingArgument)
2014-08-22T00:26:50.567138+00:00 app[web.1]: from /app/vendor/bundle/bin/puma:16:in `load'
2014-08-22T00:26:50.567134+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/puma-2.9.0/lib/puma/cli.rb:446:in `run'
2014-08-22T00:26:50.567137+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/puma-2.9.0/bin/puma:10:in `<top (required)>'
2014-08-22T00:26:50.567140+00:00 app[web.1]: from /app/vendor/bundle/bin/puma:16:in `<main>'
@aeblin
aeblin / gist:d57e4dcb5948fb7a12b5
Created October 27, 2014 19:46
Andy Eblin | Prescreen Yelp
/* SASS is available but not required */
.container {
position: relative;
height: 150px;
width: 150px;
background: #bbb;
}
.box {
@aeblin
aeblin / gist:33971d6dfa56e11fdb4d
Created October 27, 2014 19:46
Andy Eblin | Yelp jQuery
$("#switchlink").click(function() {
$(".blue").toggleClass("blueright");
$(".green").toggleClass("greenleft");
});
@aeblin
aeblin / gist:6287133a08cb82b1c520
Last active August 29, 2015 14:13
HerokuWP: Successful Vagrant Destroy, Vagrant Up
aeblin-mbp:heroku-wp aeblin$ vagrant destroy
herokuwp: Are you sure you want to destroy the 'herokuwp' VM? [y/N] y
==> herokuwp: Forcing shutdown of VM...
==> herokuwp: Destroying VM and associated drives...
==> herokuwp: Pruning invalid NFS exports. Administrator privileges will be required...
Password:
==> herokuwp: Running cleanup tasks for 'shell' provisioner...
aeblin-mbp:heroku-wp aeblin$ vagrant up
Bringing machine 'herokuwp' up with 'virtualbox' provider...
==> herokuwp: Importing base box 'ubuntu/trusty64'...