Skip to content

Instantly share code, notes, and snippets.


Nick Parsons nparsons08

View GitHub Profile
prologic /
Last active Sep 21, 2021
Learn Go in ~5mins
View aggregated_feed.json
"next": "",
"duration": "46ms",
"results": [{
"created_at": "2017-06-28T16:38:58.806970",
"updated_at": "2017-06-28T16:38:58.806970",
"activities": [{
"actor": "ian",
"foreign_id": "5",
"target": null,
oleksmarkh / api.js
Last active Aug 15, 2020
transport layer (abstraction over "axios")
View api.js
import axios from 'axios';
import { mapKeys, mapValues, camelCase, snakeCase } from 'lodash';
const { API_URL } = process.env;
function getAccessToken() {
// @todo: load access token from cookie
return 'token';
apollolm / nginx-ssl-config
Last active Jul 15, 2021
Nginx Configuration with multiple port apps on same domain, with SSL.
View nginx-ssl-config
# the IP(s) on which your node server is running. I chose port 3000.
upstream app_geoforce {
upstream app_pcodes{
View 1-restify-server-cheatsheet.js
// Restify Server CheatSheet.
// More about the API:
// Install restify with npm install restify
// 1.1. Creating a Server.
var restify = require('restify');
patrickhammond /
Last active Sep 23, 2021
Easily setup an Android development environment on a Mac

Here is a high level overview for what you need to do to get most of an Android environment setup and maintained.

Prerequisites (for Homebrew at a minimum, lots of other tools need these too):

  • XCode is installed (via the App Store)
  • XCode command line tools are installed (xcode-select --install will prompt up a dialog)
  • Java

Install Homebrew:

ruby -e "$(curl -fsSL"
agendor /
Last active Aug 31, 2021
A practical introduction to building a RESTful API with the hapi.js server framework for Node.js
nparsons08 / .gitignore
Created Dec 4, 2012
Allows for empty directory in GIT repository.
View .gitignore
# Ignore everything in this directory
# Except this file
friggeri / haiku
Created Oct 6, 2011
random heroku-like name generator
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",
marcoarment / Bcrypt.php
Created Jun 29, 2011
Simple PHP 5.3+ Bcrypt class and functions
View Bcrypt.php
By Marco Arment <>.
This code is released in the public domain.
Usage example:
// In a registration or password-change form: