Skip to content

Instantly share code, notes, and snippets.

View astrotars's full-sized avatar
⛰️

Nick Parsons astrotars

⛰️
View GitHub Profile
{"name":"6px API","hostname":"Nicks-MacBook-Pro.local","pid":7806,"level":50,"msg":"Error code EPIPE encountered while attempting to establish worker connection via worker.6px.io:8888","time":"2014-02-24T22:52:59.072Z","v":0}
{"name":"6px API","hostname":"Nicks-MacBook-Pro.local","pid":7806,"level":30,"msg":"Attempting to reconnect to worker via worker.6px.io:8888","time":"2014-02-24T22:52:59.072Z","v":0}
[2014-02-25T18:35:11.761Z] TRACE: 6px API/8204 on Nicks-MacBook-Pro.local: running ?
[2014-02-25T18:35:11.761Z] TRACE: 6px API/8204 on Nicks-MacBook-Pro.local: running ?
[2014-02-25T18:35:11.762Z] TRACE: 6px API/8204 on Nicks-MacBook-Pro.local: running parseAccept
[2014-02-25T18:35:11.762Z] TRACE: 6px API/8204 on Nicks-MacBook-Pro.local: running parseQueryString
[2014-02-25T18:35:11.762Z] TRACE: 6px API/8204 on Nicks-MacBook-Pro.local: running readBody
[2014-02-25T18:35:11.762Z] TRACE: 6px API/8204 on Nicks-MacBook-Pro.local: running parseJson
[2014-02-25T18:35:11.762Z] TRACE: 6px API/8204 on Nicks-MacBook-Pro.local: running restifyCORSSimple
[2014-02-25T18:35:11.762Z] TRACE: 6px API/8204 on Nicks-MacBook-Pro.local: running restifyResponseHeaders
[2014-02-25T18:35:11.762Z] TRACE: 6px API/8204 on Nicks-MacBook-Pro.local: running ?
[2014-02-25T18:35:11.762Z] TRACE: 6px API/8204 on Nicks-MacBook-Pro.local: running ?
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({
appId: '1437072919869732',
status: true,
xfbml: true
});
};
(function(d, s, id){
<script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>
<script type="text/javascript" src="//assets.pinterest.com/js/pinit.js"></script>
server.opts(/\.*/, function (req, res, next) {
res.send(200);
next();
});
@astrotars
astrotars / haiku
Last active August 29, 2015 14:09 — forked from friggeri/haiku
haiku = ->
adjs = [
"autumn", "hidden", "bitter", "misty", "silent", "empty", "dry", "dark",
"summer", "icy", "delicate", "quiet", "white", "cool", "spring", "winter",
"patient", "twilight", "dawn", "crimson", "wispy", "weathered", "blue",
"billowing", "broken", "cold", "damp", "falling", "frosty", "green",
"long", "late", "lingering", "bold", "little", "morning", "muddy", "old",
"red", "rough", "still", "small", "sparkling", "throbbing", "shy",
"wandering", "withered", "wild", "black", "young", "holy", "solitary",
"fragrant", "aged", "snowy", "proud", "floral", "restless", "divine",
@astrotars
astrotars / haiku
Last active August 29, 2015 14:21 — forked from friggeri/haiku
haiku = ->
adjs = [
"autumn", "hidden", "bitter", "misty", "silent", "empty", "dry", "dark",
"summer", "icy", "delicate", "quiet", "white", "cool", "spring", "winter",
"patient", "twilight", "dawn", "crimson", "wispy", "weathered", "blue",
"billowing", "broken", "cold", "damp", "falling", "frosty", "green",
"long", "late", "lingering", "bold", "little", "morning", "muddy", "old",
"red", "rough", "still", "small", "sparkling", "throbbing", "shy",
"wandering", "withered", "wild", "black", "young", "holy", "solitary",
"fragrant", "aged", "snowy", "proud", "floral", "restless", "divine",
// Restify Server CheatSheet.
// More about the API: http://mcavage.me/node-restify/#server-api
// Install restify with npm install restify
// 1.1. Creating a Server.
// http://mcavage.me/node-restify/#Creating-a-Server
var restify = require('restify');
@astrotars
astrotars / Bcrypt.php
Created August 7, 2012 21:12
Simple PHP 5.3+ Bcrypt class and functions
<?php
/*
By Marco Arment <me@marco.org>.
This code is released in the public domain.
THERE IS ABSOLUTELY NO WARRANTY.
Usage example:
// In a registration or password-change form:
// build log data
$data = array(
account_id => 1,
array(
'type' => 'budget',
'message' => 'this is a test error message for budget'
),
array(
'type' => 'budget',
'message' => 'this is a test error message for budget'