Skip to content

Instantly share code, notes, and snippets.


auggod auggod

Block or report user

Report or block auggod

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
auggod / index.js
Last active Dec 19, 2017
requirebin sketch
View index.js
const html = require('bel')
const button = html`
<button class="f1 w-100" ondblclick=${handleDoubleClick} ontouchstart=${handleTouchStart} ontouchend=${handleTouchEnd}>Double click me</button>
const timings = {
touchDuration: 500
auggod / index.js
Last active Dec 6, 2017
requirebin sketch
View index.js
const html = require('bel')
const morph = require('nanomorph')
class PlayCount {
constructor(options) {
const { count, fps } = options
this.options = options
this.timings = {

Keybase proof

I hereby claim:

  • I am auggod on github.
  • I am auggod ( on keybase.
  • I have a public key whose fingerprint is 619F DF33 7212 2515 5556 D392 1D68 11A7 0E64 9372

To claim this, I am signing this object:

auggod / restful.js
Created Mar 5, 2017 — forked from BinaryMuse/restful.js
Express API with Async/Await
View restful.js
import express from "express";
* Takes a route handling function and returns a function
* that wraps it after first checking that the strings in
* `reserved` are not part of `req.body`. Used for ensuring
* create and update requests do not overwrite server-generated
* values.
function checkReservedParams(routeHandler, ...reserved) {
auggod /
Created Jan 10, 2017 — forked from iros/
Documenting your REST API


<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>

  • URL

    <The URL Structure (path only, no root url)>

  • Method:

View proxy.conf
server {
listen 443 ssl;
ssl on;
ssl_certificate /etc/ssl/certs/key.crt;
ssl_certificate_key /etc/ssl/private/key.key;
server_name hostname.tld;
location / {
#allow all;
deny all;
View nginx.conf
server {
listen 443;
ssl on;
ssl_certificate /etc/ssl/certs/tracklist.crt;
ssl_certificate_key /etc/ssl/private/tracklist.key;
location / {
allow all;
proxy_set_header X_FORWARDED_PROTO https;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
View origin.js
app.all '*', (req, res, next) ->
return next! if not req.get 'Origin'
allowedOrigins = [
origin = req.get 'Origin'
if _.contains(allowedOrigins, origin)
res.header 'Access-Control-Allow-Origin', origin
res.header 'Access-Control-Allow-Methods', 'GET,POST,PUT,DELETE,OPTIONS'
res.header 'Access-Control-Allow-Headers', 'Content-Type, Accept, Cache-Control, Pragma, Origin, Authorization, X-Tracklist-User-Id, X-Tracklist-Session-Id, X-Requested-With'
View gist:ff90cf1e3f45212b0ace
echo "Generating an SSL private key to sign your certificate..."
openssl genrsa -des3 -out myssl.key 1024
echo "Generating a Certificate Signing Request..."
openssl req -new -key myssl.key -out myssl.csr
echo "Removing passphrase from key (for nginx)..."
cp myssl.key
openssl rsa -in -out myssl.key
View gulpfile.js
var gulp = require('gulp')
, jade = require('gulp-jade')
, stylus = require('gulp-stylus')
, livereload = require('gulp-livereload')
, autoprefixer = require('autoprefixer-stylus');
gulp.task('templates', function() {
return gulp.src('./index.jade')
pretty: true
You can’t perform that action at this time.