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
| ### | |
| Module dependencies | |
| ### | |
| require.paths.unshift "#{__dirname}/lib/support/express-csrf/" | |
| require.paths.unshift "#{__dirname}/lib/support/node_hash/lib/" | |
| express = require 'express' | |
| app = module.exports = express.createServer() | |
| RedisStore = require 'connect-redis' |
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 'sinatra' | |
| require 'slim' | |
| require 'coffee-script' | |
| require 'sass' | |
| require 'sequel' | |
| DB = Sequel.sqlite | |
| DB.create_table :uploads do | |
| String :id, text: true, primary_key: true |
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
| .shape{ | |
| height: 100%; | |
| width: 100%; | |
| } | |
| .circle { | |
| border-radius: 50%/50%; | |
| -moz-border-radius: 50%/50%; | |
| -webkit-border-radius: 50%/50%; | |
| } | |
| .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
| // This example adapted from Matt Gallagher's "Minimalist Cocoa Programming" | |
| // blog article: | |
| // http://cocoawithlove.com/2010/09/minimalist-cocoa-programming.html | |
| var $ = require('NodObjC') | |
| $.import('Cocoa') | |
| var pool = $.NSAutoreleasePool('alloc')('init') | |
| , app = $.NSApplication('sharedApplication') |
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
| .fb_access_token | |
| .fbconsole.py |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Table Display test</title> | |
| <style> | |
| @media screen and (min-width: 30em) { | |
| body { | |
| display: table; | |
| caption-side: top; | |
| } |
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 "csv" | |
| class HerokuEnvLogger | |
| PREFIX = "HerokuRequest" | |
| TIME_STEP = 1.minute * 1000 # ms | |
| EXPIRE_IN = 6.hours | |
| KEYS = %w[HTTP_X_REQUEST_START | |
| HTTP_X_HEROKU_QUEUE_WAIT_TIME | |
| HTTP_X_HEROKU_QUEUE_DEPTH | |
| HTTP_X_HEROKU_DYNOS_IN_USE] |
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
| Did this to build scribe-2.2.tar.gz | |
| Get thrift 0.5.0 instead of 0.6.1/0 | |
| sudo apt-get install php5-dev | |
| sudo apt-get install php-config # *-php=no didn't quite work out for me | |
| sudo ./configure --with-haskell=no # with-haskell=for-great-good did NOT work | |
| and then configure/make/install thrift and fb303 | |
| open the scribe-2.2.tar.gz with nautilus because its top level folder was '.' # <-- http://www.youtube.com/watch?v=IaUfuXBOb3U |
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
| /* | |
| * twitter-entities.js | |
| * This function converts a tweet with "entity" metadata | |
| * from plain text to linkified HTML. | |
| * | |
| * See the documentation here: http://dev.twitter.com/pages/tweet_entities | |
| * Basically, add ?include_entities=true to your timeline call | |
| * | |
| * Copyright 2010, Wade Simmons | |
| * Licensed under the MIT license |
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
| # JSONP callback for tweets fetched later than current (max_id) | |
| window.twitterTimelineLaterCallback = (data) -> | |
| window.app.twitterTimeline.receivedData(data, false) | |
| # JSONP callback for tweets fetched earlier than current (since_id) | |
| window.twitterTimelineEarlierCallback = (data) -> | |
| window.app.twitterTimeline.receivedData(data, true) | |
| class window.TwitterTimeline | |
| # Distance from the bottom that we ask for more tweets, distance from the |