Skip to content

Instantly share code, notes, and snippets.

@pon
pon / keybase.md
Last active August 29, 2015 14:27
keybase.md

Keybase proof

I hereby claim:

  • I am pon on github.
  • I am pon (https://keybase.io/pon) on keybase.
  • I have a public key whose fingerprint is 5B79 E6FB F662 E386 4595 556F FBFE C8B7 9D85 84CE

To claim this, I am signing this object:

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Be sure to read the README!
" shortcuts:
" ; maps to :
" ,a: ack from the current directory
" ,b: browse tags
" ,c: toggle comments
" ,C: toggle block comments
" ,nt: open file in new tab
" ,l: toggle NERDTree
@pon
pon / hapi.js
Created July 30, 2015 20:04
hapi.js
var Bluebird = require('bluebird');
var Hapi = require('hapi');
var Server = new Hapi.Server();
Server.connection({ port: 3000 });
Server.method('pAdd', function (a, b) {
return Bluebird.resolve(a + b);
});
@pon
pon / output.txt
Last active August 29, 2015 14:23
Java Build Failure
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5:prepare (default-cli) on project lob-java: Unable to commit files
[ERROR] Provider message:
[ERROR] The git-push command failed.
[ERROR] Command output:
[ERROR] fatal: remote error:
[ERROR] You can't push to git://github.com/lob/lob-java.git
[ERROR] Use https://github.com/lob/lob-java.git
# Install Brew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# ImageMagick
wget http://ftp.sunet.se/pub/multimedia/graphics/ImageMagick/ImageMagick-6.8.9-5.tar.gz
tar xvzf ImageMagick-6.8.9-5.tar.gz
cd ImageMagick-6.8.9-5
./configure
make
sudo make install
@pon
pon / .jscsrc
Created March 20, 2015 21:53
Lob API Style Guides
{
"requireSpacesInsideObjectBrackets" : "all",
"requireCurlyBraces" : [
"if",
"else",
"for",
"while",
"do",
"try",
"catch",
@pon
pon / vimrc
Last active August 29, 2015 14:17
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Be sure to read the README!
" shortcuts:
" ; maps to :
" ,a: ack from the current directory
" ,b: browse tags
" ,c: toggle comments
" ,C: toggle block comments
" ,nt: open file in new tab
" ,l: toggle NERDTree
@pon
pon / gist:a0ab2650e31d9b89a553
Created February 24, 2015 18:24
People/City Bookshelf Models
var City = bookshelf.Model.extend({
tableName: 'city'
});
var User = bookshelf.Model.extend({
tableName: 'people',
city: function() {
return this.hasOne(City);
}
});
@pon
pon / Config File
Created October 19, 2014 00:32
Gated Versioning Objects
-- This is the versioning config file
[
{
"id": "2014-01-01",
"features": [
{
"name": "rename_setting_id",
"description": "rename setting_id to setting on objects endpoint"
}
@pon
pon / index.js
Created April 16, 2014 14:09
Call Good Reads isbn_to_id Endpoint
var request = require('request');
request.get(' https://www.goodreads.com/book/isbn_to_id',
{
form: {
key: '********',
isbn: '9780060513030'
}
}, function(err, response, body) {
if(err) {