Skip to content

Instantly share code, notes, and snippets.

View davewalk's full-sized avatar
💭
test

Dave Walk davewalk

💭
test
  • Philadelphia, PA
View GitHub Profile
@mxriverlynn
mxriverlynn / browserify.js
Created June 17, 2014 20:21
unit testing browserify modules in a (headless) browser
module.exports = function(grunt){
grunt.initConfig({
// ...
browserify: {
specs: {
src: ["web/specs/**/*Specs.js"],
dest: "web/public/build/specs.js",
options: {
@kachayev
kachayev / concurrency-in-go.md
Last active September 23, 2025 16:12
Channels Are Not Enough or Why Pipelining Is Not That Easy
@hcurotta
hcurotta / post-merge
Created October 17, 2014 14:34
Post Merge git hook to trigger codeship deployment when using BitBucket
#!/bin/bash
branch_name=$(git symbolic-ref --short HEAD)
if [ "$branch_name" == 'dev' ] || [ "$branch_name" == 'staging' ]
then
git commit --allow-empty -m 'empty commit to trigger deployment'
fi
@timelyportfolio
timelyportfolio / Readme.md
Last active August 29, 2015 14:15
R tests Javascript simple-statistics with V8

With V8 from Jeroen Ooms, we can do things like use R totest this Javascript stats library simple-statistics from Tom McWright.

@EliseWei
EliseWei / PTW15.js
Last active November 19, 2015 22:07
Script snippets used for Dev Day talk on 4/23/15 (updated 11/19/15)
// Placekittens http://www.houzz.com/photos/products
// Example 1
var target = document.getElementsByClassName('shop-landing-top-promotions')[0];
target.innerHTML = '<img src="http://placekitten.com/g/800/120" alt="" />';
// Example 2
var target = document.getElementsByClassName('shop-landing-top-promotions')[0];
var targetInner = target.getElementsByClassName('shop-landing-top-promotions-content')[0];
targetInner.style.visibility='hidden';
target.style.background = 'url("http://placekitten.com/g/800/120") 0 0 repeat';
@beauzeaux
beauzeaux / sqlite2parquet.py
Created April 23, 2015 19:58
sqlite2parquet
import sqlite3
import os
import argparse
try:
import pyspark
import pyspark.sql
except ImportError:
import sys
import os
@tmaiaroto
tmaiaroto / pre-commit
Last active July 30, 2016 22:29
A Go Commit Hook for Less Future Headaches
#!/bin/bash
#
# Check a "few" things to help write more maintainable Go code.
#
# OK, it's fairly comprehensive. So simply remove or comment out
# anything you don't want.
#
# Don't forget to install (go get) each of these tools.
# More info at the URLs provided.
#