Skip to content

Instantly share code, notes, and snippets.

🔧
Building, breaking, and fixing things.

Nick Parsons nparsons08

🔧
Building, breaking, and fixing things.
Block or report user

Report or block nparsons08

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:9199023
{"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}
View gist:9214910
[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 ?
View gist:c686cd7219792e618102
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({
appId: '1437072919869732',
status: true,
xfbml: true
});
};
(function(d, s, id){
View gist:3619c30164bd1cba76c1
<script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>
<script type="text/javascript" src="//assets.pinterest.com/js/pinit.js"></script>
View gist:baf1cd43bebd93dcf325
server.opts(/\.*/, function (req, res, next) {
res.send(200);
next();
});
View 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",
View 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",
View 1-restify-server-cheatsheet.js
// 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');
@nparsons08
nparsons08 / Bcrypt.php
Created Aug 7, 2012 — forked from marcoarment/Bcrypt.php
Simple PHP 5.3+ Bcrypt class and functions
View Bcrypt.php
<?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:
View gist:3499894
// 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'
You can’t perform that action at this time.