Skip to content

Instantly share code, notes, and snippets.

View jjcall's full-sized avatar
🎯
Focusing

Jason Calleiro jjcall

🎯
Focusing
View GitHub Profile
Traceback (most recent call last):
File "manage.py", line 24, in <module>
execute_from_command_line()
File "/Users/jjcall/.virtualenvs/formbit/lib/python2.7/site-packages/django/core/management/__init__.py", line 443, in execute_from_command_line
utility.execute()
File "/Users/jjcall/.virtualenvs/formbit/lib/python2.7/site-packages/django/core/management/__init__.py", line 382, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/Users/jjcall/.virtualenvs/formbit/lib/python2.7/site-packages/django/core/management/__init__.py", line 261, in fetch_command
klass = load_command_class(app_name, subcommand)
File "/Users/jjcall/.virtualenvs/formbit/lib/python2.7/site-packages/django/core/management/__init__.py", line 69, in load_command_class
@jjcall
jjcall / gist:3391867
Created August 19, 2012 04:12 — forked from larryisthere/gist:3291905
How to setup Django/Postgresql on OS X Mountain Lion using Homebrew-based

Command Line Tools for Xcode

Command line tools comes bundle with Xcode prior to 4.3 version. After 4.3, you need to install a separated command line tools yourself.

First, go to this url and login using Apple Developer account (Free to register)

https://developer.apple.com/downloads/index.action
@jjcall
jjcall / gist:3492182
Created August 27, 2012 21:00
key bindings
[
{ "keys": ["j", "j"], "command": "exit_insert_mode",
"context":
[
{ "key": "setting.command_mode", "operand": false },
{ "key": "setting.is_widget", "operand": false }
]
},
{ "keys": ["super+shift+alt+t"], "command": "open_terminal" },
{ "keys": ["super+shift+t"], "command": "open_terminal_project_folder" }
@jjcall
jjcall / Custom.css
Created September 10, 2012 19:15 — forked from bentruyman/Custom.css
Tomorrow Theme for Chrome Developer Tools
/**********************************************/
/*
/* Tomorrow Skin by Ben Truyman - 2011
/*
/* Based on Chris Kempson's Tomorrow Theme:
/* https://github.com/ChrisKempson/Tomorrow-Theme
/*
/* Inspired by Darcy Clarke's blog post:
/* http://darcyclarke.me/design/skin-your-chrome-inspector/
/*
@jjcall
jjcall / 960gs.scss
Created January 4, 2013 19:25 — forked from jmblog/960gs.scss
/*-----------------------------------------------------
960 Grid System ~ Core CSS.
Learn more ~ http://960.gs/
Licensed under GPL and MIT.
-------------------------------------------------------*/
/* Grid Settings
---------------------------*/
// 12-column grid
class Person(object):
DUDES = ["Jason", "Eric"]
def __init__(self, name, age):
self.name = name
self.age = age
def greet_dudes(self)
for name in Person.DUDES:
print "Hello " + name
"Updating stats..."
rake aborted!
undefined method `credit' for nil:NilClass
/Users/jjcall/Projects/Square/Apps/fsb-proto/app/models/entry.rb:129:in `process_payout'
/Users/jjcall/Projects/Square/Apps/fsb-proto/app/models/entry.rb:39:in `block in announce_winner'
/Users/jjcall/.rvm/gems/ruby-1.9.3-p429@fsb/gems/activerecord-3.2.13/lib/active_record/relation/delegation.rb:40:in `each'
/Users/jjcall/.rvm/gems/ruby-1.9.3-p429@fsb/gems/activerecord-3.2.13/lib/active_record/relation/delegation.rb:40:in `each_with_index'
/Users/jjcall/.rvm/gems/ruby-1.9.3-p429@fsb/gems/activerecord-3.2.13/lib/active_record/relation/delegation.rb:40:in `method_missing'
/Users/jjcall/Projects/Square/Apps/fsb-proto/app/models/entry.rb:38:in `announce_winner'
/Users/jjcall/Projects/Square/Apps/fsb-proto/app/models/sports_data_api.rb:113:in `block in update_stats'
NoMethodError in EntriesController#confirm
undefined method `debit' for nil:NilClass
Rails.root: /Users/jjcall/Projects/Square/Apps/fsb-proto
Application Trace | Framework Trace | Full Trace
app/models/entry.rb:75:in `deduct_bet'
app/controllers/entries_controller.rb:88:in `confirm'
Request
%ul.players
- entry.player_picks.values.each do |player|
%li.player
.player-avatar-wrapper
- if player.image
.player-avatar{ :style => "background-image: url(#{player.image})"}
%ul.players
- entry.player_picks.values.each do |player|
%li.player
.player-avatar-wrapper
- if player.has_image?
.player-avatar{ :style => "background-image: url(#{player.image})"}
- else
.player-avatar.default-avatar{ :style => "background-image: url(#{player.image})"}