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 'openssl' | |
require 'open-uri' | |
def encodeURIComponent(val) | |
URI.escape(val, Regexp.new("[^#{URI::PATTERN::UNRESERVED}]")) | |
end | |
def urlbox(url, options={}, format='png') | |
urlbox_apikey = 'YOUR_API_KEY' | |
urlbox_secret = 'YOUR_API_SECRET' |
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
App.PickADate = Ember.View.extend({ | |
attributes: ['monthsFull', 'monthsShort', 'weekdaysFull', 'weekdaysShort', | |
'monthPrev', 'monthNext', 'showMonthsFull', 'showWeekdaysShort', 'today', | |
'clear', 'format', 'formatSubmit', 'hiddenSuffix', 'firstDay', 'monthSelector', | |
'yearSelector', 'dateMin', 'dateMax', 'datesDisabled', 'disablePicker'], | |
events: ['onOpen', 'onClose', 'onSelect', 'onStart'], | |
tagName: 'input', | |
classNames: 'pickadate', |
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
node multipleRequests.js | |
http://facebook.com: spooky initialised | |
http://news.ycombinator.com: spooky initialised | |
http://bbc.co.uk: spooky initialised | |
http://daringfireball.net: spooky initialised | |
http://instagram.com: spooky initialised | |
http://path.com: spooky initialised | |
http://facebook.com: Callback with saved file: /Users/cjroebuck/Dev/http:/news.ycombinator.com.png | |
http://news.ycombinator.com: Callback with saved file: /Users/cjroebuck/Dev/http:/news.ycombinator.com.png |
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
<?php | |
function webshotr_v1($url, $args) | |
{ | |
$WEBSHOTR_APIKEY = "ca482d7e-9417-4569-90fe-80f7c5e1c781"; | |
$WEBSHOTR_SECRET = "d18ff559-8fc2-447f-8e8d-1b1157f9b1c2"; | |
$options['url'] = urlencode($url); | |
$options += $args; | |
foreach ($options as $key => $value) { |
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 config, crypto, logger, webshotr; | |
crypto = require("crypto"); | |
logger = require('./loggerService').logger; | |
config = require('config'); | |
webshotr = function(apiKey, secret) { | |
var buildURL, hmacsha1, lib, prefix; |
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
{ | |
stack: 'Error: haibu Error (500): Internal Server Error\n at Request.callback (/Users/cjroebuck/Dev/Quillu/dumply/node_modules/haibu/lib/haibu/drone/client.js:167:15)\n at Request.<anonymous> (/Users/cjroebuck/Dev/Quillu/dumply/node_modules/haibu/node_modules/request/main.js:314:21)\n at Request.emit (events.js:64:17)\n at IncomingMessage.<anonymous> (/Users/cjroebuck/Dev/Quillu/dumply/node_modules/haibu/node_modules/request/main.js:295:19)\n at IncomingMessage.emit (events.js:81:20)\n at HTTPParser.onMessageComplete (http.js:133:23)\n at Socket.ondata (http.js:1231:22)\n at Socket._onReadable (net.js:677:27)\n at IOWatcher.onReadable [as callback] (net.js:177:10)', | |
result: { | |
error: { | |
stack: "Error: package.json error: can't find starting script: node index.js\n at /usr/local/lib/node_modules/haibu/lib/haibu/core/spawner.js:148:17", | |
message: "package.json error: can't find starting script: node index.js", | |
blame: { message: 'Pa |
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
{ | |
"process": { | |
"pid": 95270, | |
"uid": 501, | |
"gid": 20, | |
"cwd": "/Users/cjroebuck", | |
"execPath": "/usr/local/Cellar/node/0.6.5/bin/node", | |
"version": "v0.4.12", | |
"argv": [ | |
"node", |
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
♢ Open Button Test | |
Zombie: GET http://www.documentcloud.org/public/search/ | |
Zombie: GET http://www.documentcloud.org/public/search/ => 200 | |
Zombie: GET http://www.documentcloud.org/assets/core.js?1317236698 | |
Zombie: GET http://www.documentcloud.org/assets/core.js?1317236698 => 200 | |
Zombie: Firing timeout 1, delay: 1 | |
Zombie: Firing timeout 2, delay: 1 | |
Zombie: Firing timeout 3, delay: 1 | |
Zombie: Firing timeout 4, delay: 1 |