This file contains 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": "[email protected]", | |
"family_name": "Watermasysk", | |
"given_name": "Scott", | |
"id": 56999, |
This file contains 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 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 protected]' http://api.kickofflabs.com/v1/1905/subscribe | |
curl -G -d "[email protected]" http://api.kickofflabs.com/v1/1905/info |
This file contains 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 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 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 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
{"request":{"parameters":{"window":"h3","q":"kickofflabs"} | |
,"response_type":"json","resource":"search","url":"http://otter.topsy.com/search.json?q=kickofflabs&window=h3"} | |
,"response":{"window":"h3","page":1,"total":4,"perpage":10,"last_offset":4,"hidden":0,"list":[{"trackback_permalink":"","trackback_author_url":"http://twitter.com/russellbuckley","content":"MWC Unofficial Fringe Festival 2012 - Coming Soon! http://t.co/aR2LwZon","trackback_date":1326306392,"topsy_author_img":"http://a2.twimg.com/profile_images/1335736386/Twitter_normal.jpg","hits":1,"topsy_trackback_url":"http://topsy.com/trackback?url=http%3A%2F%2Fmobile-world-congress-fringe-festival.kickofflabs.com%2F%3Fs%3D3G79&utm_source=otter","firstpost_date":1326306392,"url":"http://mobile-world-congress-fringe-festival.kickofflabs.com/?s=3G79","trackback_author_nick":"russellbuckley","highlight":"MWC Unofficial Fringe Festival 2012 - Coming Soon! http://t.co/aR2LwZon ","topsy_author_url":"http://topsy.com/twitter/russellbuckley?utm_source=otter" |
This file contains 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
jQuery -> | |
$("form").submit (e) -> | |
e.preventDefault() | |
email = $("#email").val() | |
return if email.length == 0 | |
$.ajax | |
url: "https://api.kickofflabs.com/v1/1905/subscribe", | |
data: "email=#{email}", | |
dataType: 'jsonp', | |
jsonp: 'jsonp', |
This file contains 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
jQuery -> | |
$("form").submit (e) -> | |
e.preventDefault() | |
email = $("#email").val() | |
return if email.length == 0 | |
$.ajax | |
url: "https://api.kickofflabs.com/v1/1905/subscribe", | |
data: "email=#{email}", | |
dataType: 'jsonp', | |
jsonp: 'jsonp', |
This file contains 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
class EmailQueue | |
include Sidekiq::Worker | |
def perform(options) | |
mailer = options['mailer'].constantize | |
method = options['method'] | |
args = options['args'] | |
mailer.send(method, *args).deliver | |
end |