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
Object | |
.keys(this._sources) | |
.map(function(source) { | |
return this._sources[source].resultColumn; | |
}.bind(this)) | |
.forEach(function(column) { | |
var colHeight = column.getHeight(); | |
if (scrollBottom + this._loadMoreOffset > colHeight) { | |
console.log('LOAD MORE'); |
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
75825 http://www.youtube.com/watch?feature=player_profilepage&v=3wbvpOIIBQA | |
75615 http://www.youtube.com/watch?v=f2JuxM-snGc | |
75311 https://www.youtube.com/watch?v=G33DdYQZbas | |
75279 http://www.youtube.com/v/isWyYDxFS8w?color2=FBE9EC& | |
75071 https://www.youtube.com/watch?v=TYytErqGdC4 | |
75003 https://www.youtube.com/watch?v=TYytErqGdC4 | |
74789 http://www.youtube.com/watch?v=nRckgn36lzY | |
74427 https://www.youtube.com/watch?feature=player_embedded&v=bhhpz9pKyj8 | |
74313 http://www.youtube.com/watch?v=1MwWZEZox2w | |
74099 http://www.youtube.com/watch?v=7SSXLIZkM3E |
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
var express = require('express'), | |
requirejs = require('requirejs'), | |
app = module.exports = express.createServer(); | |
app.configure('development', function(){ | |
// Use development version of static files | |
app.use(express.static(__dirname + '/public')); | |
}); | |
app.configure('production', function(){ |
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
// preserve Twitter's style of JSON string encoding... | |
// escape higher value unicode (lowercase hex) | |
// escape < and > (uppercase hex) | |
// escape / in strings (\/) | |
// hugs! https://gist.github.com/1306986 | |
// http://stackoverflow.com/questions/4901133/json-and-escaping-characters | |
function escapedStringify(s, emit_unicode) { | |
var json = JSON.stringify(s); | |
return emit_unicode ? json : json.replace(/\//g, | |
function(c) { |
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
bunyan = require 'bunyan' | |
restify = require 'restify' | |
requireDir = require 'require-dir' | |
middleware = requireDir './middleware' | |
routes = requireDir './routes' | |
settings = require './settings' | |
app = restify.createServer | |
name: 'Foo Bar API' |
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
[user] | |
name = Anthony Sessa | |
#email = sessa@fourfiftynine.com | |
email = anthonysessa@gmail.com | |
[github] | |
username = sessa | |
token = f9b994cde7777d72a5d40512f6abb137 | |
[core] | |
excludefile = /Users/anthonysessa/.gitignore_global | |
excludesfile = /Users/anthonysessa/.gitignore_global |
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
$state_list = array('AL'=>"Alabama", | |
'AK'=>"Alaska", | |
'AZ'=>"Arizona", | |
'AR'=>"Arkansas", | |
'CA'=>"California", | |
'CO'=>"Colorado", | |
'CT'=>"Connecticut", | |
'DE'=>"Delaware", | |
'DC'=>"District Of Columbia", | |
'FL'=>"Florida", |
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
// iOS Media Queries | |
// Goal: capture styles for iPhone, iPhone 3G, iPhone 3GS, iPhone 4, iPhone 4S, iPad, and iPad 2 | |
// | |
// Author: Tony Schneider (@tonywok) | |
// Please tell me where I fail. :) | |
// iPhone v(4,4S) portrait | |
// test: black text (overwritten by v* portrait) with blue background | |
@media all and (-webkit-min-device-pixel-ratio: 2) and (orientation: portrait) { | |
a { |
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
# http://ruby-doc.org/stdlib-1.9.3/libdoc/net/smtp/rdoc/Net/SMTP.html | |
require 'digest/md5' | |
require 'mime/types' | |
require 'net/smtp' | |
require 'optparse' | |
require 'ostruct' | |
require 'yaml' | |
class Emailer |
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
# This is a template .gitignore file for git-managed WordPress projects. | |
# | |
# Fact: you don't want WordPress core files, or your server-specific | |
# configuration files etc., in your project's repository. You just don't. | |
# | |
# Solution: stick this file up your repository root (which it assumes is | |
# also the WordPress root directory) and add exceptions for any plugins, | |
# themes, and other directories that should be under version control. | |
# | |
# See the comments +below for more info on how to add exceptions for your |