Skip to content

Instantly share code, notes, and snippets.

View parhelium's full-sized avatar

Kuba Wyrobek parhelium

View GitHub Profile
@parhelium
parhelium / gist:42df83da68639780218e2b95424ceeac
Last active August 10, 2016 20:51
Google Form and Drip
var API_KEY = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
var drip_base_url = 'https://api.getdrip.com/v2/xxxxxxx/'
var drip_account_id = ‘xxxxxxxxxx';
/**
* Uses the Drip API to record event
* https://www.getdrip.com/docs/rest-api#events
*/
function recordEvent(fn, ln, em, yr){
var payload = {
@parhelium
parhelium / post-commit
Created September 12, 2014 05:36
.git/hooks/post-commit
#!/bin/sh
node MeteorApp/hooks/post-commit-version
RETVAL=$?
if [ $RETVAL -ne 0 ]
then
exit 1
fi%
@parhelium
parhelium / post-commit-version
Last active August 21, 2020 13:43
post commit git hook - grabs commit, branch and timestamp
#!/usr/bin/env node
var exec = require('child_process').exec,
Promise = require('promise'),
path = require('path'),
moment = require('moment'),
util = require('util'),
fs = require('fs'),
contents = null,
branch, commit;