Skip to content

Instantly share code, notes, and snippets.

View jjcall's full-sized avatar
🎯
Focusing

Jason Calleiro jjcall

🎯
Focusing
View GitHub Profile
@jjcall
jjcall / pop-profile.html
Created July 2, 2013 20:50
Pop Profile Markup
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Profile Page</title>
<meta name="description" content="">
# ~/.osx — http://mths.be/osx
# root check
if [[ $EUID -ne 0 ]]; then
echo "################################";
echo "## YOU ARE NOT RUNNING AS ROOT #";
echo "################################";
echo "#";
echo "# USAGE: sudo $0";
exit;
%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})"}
%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})"}
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
"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'
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
@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
@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 / 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" }