Skip to content

Instantly share code, notes, and snippets.

View mattkatz's full-sized avatar

Matt Katz mattkatz

View GitHub Profile
@mattkatz
mattkatz / pre-commit-check-debuggers.bash
Last active March 1, 2022 16:32 — forked from yalestar/gist:1054190
pre-commit hook to prevent me from accidentally checking in debug code
#!/bin/sh
#
# This hook prevents you from committing any file containing "debugger".
#
# To enable this hook, rename this file to ".git/hooks/pre-commit".
DIFF_FILES=`git diff-index HEAD --cached --name-only`
if [ $? -ne 0 ]
then
@mattkatz
mattkatz / gist:65bbc17dbad94c97a01a472734b65d50
Created September 1, 2016 14:57 — forked from shacker/gist:87908e13c9ee6655ce90
Using the Workday API with Python and the suds client library
import sys
from suds import client
from suds.wsse import Security, UsernameToken
from suds.sax.text import Raw
from suds.sudsobject import asdict
from suds import WebFault
'''
Given a Workday Employee_ID, returns the last name of that employee.
// by dave @ beesandbombs.tumblr.com
////////////////////////////////////
int[][] result;
float time;
void setup() {
setup_();
result = new int[width*height][3];
}