This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function(){ | |
$('#siteNotice').hide(); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Bootstrap feels more opinionated and ready launch (prototypes) | |
- Bootstrap is being used everywhere. This is great for bug fixes, plugins, etc... | |
- Bootstraps popularity sucks because I suspect 1 in 5 new sites will look identical next year. | |
- Foundation uses sass. Bootstrap (conversions/ports) favor scss. I prefer scss. | |
- I also like how you can override BootStrap variables without changing the actual source | |
- Foundation has responsive support today. | |
- Foundation has some interesting mobile style options | |
- Bootstrap appears poised for a V2 with lots of breaking changes. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SCOPE GETS CROSSED - DO NOT USE AS IS! | |
class AuthenticatedConstraint | |
extend Sorcery::Controller::InstanceMethods | |
def self.matches?(request) | |
Sorcery::Controller::InstanceMethods.send(:define_method, :session, proc{request.session}) | |
Sorcery::Controller::InstanceMethods.send(:define_method, :request, proc{request}) | |
logged_in? | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -d 'email=scott@kickofflabs.com' http://api.kickofflabs.com/v1/1905/subscribe | |
curl -G -d "email=scott@kickofflabs.com" http://api.kickofflabs.com/v1/1905/info |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'httparty' | |
require 'crack' | |
class KickoffLabsAPI | |
include HTTParty | |
base_uri 'http://api.kickofflabs.com' | |
def self.subscribe(page_id, args={}) | |
response = post("/v1/#{page_id}/subscribe", :body => args) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"avatar": "https://d1ts43dypk8bqh.cloudfront.net/v1/avatars/310c4ac2-7026-4700-afde-496b1d217b03", | |
"counter": 252, | |
"contest_score": 300, | |
"contest_score_rank": 19588, | |
"custom_fields": {}, | |
"email": "scott@kickofflabs.com", | |
"family_name": "Watermasysk", | |
"given_name": "Scott", | |
"id": 56999, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -d 'email=scott@kickofflabs.com&api_key=your_api_key' https://api.kickofflabs.com/v1/1905/subscribe | |
curl -G -d "email=scott@kickofflabs.com" https://api.kickofflabs.com/v1/1905/info |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function be { | |
if [[ -a Gemfile ]]; then | |
bundle exec $* | |
else | |
command $* | |
fi | |
} | |
alias heroku="be heroku" | |
alias rake="be rake" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link href="http://a_domain.com/favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
function getParameterByName(name) | |
{ | |
name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]"); | |
var regexS = "[\\?&]" + name + "=([^&#]*)"; | |
var regex = new RegExp(regexS); | |
var results = regex.exec(window.location.href); | |
if(results == null) | |
return null; | |
else |