Skip to content

Instantly share code, notes, and snippets.

View davidklaw's full-sized avatar

David Klawitter davidklaw

View GitHub Profile
@davidklaw
davidklaw / jira-migration.py
Created September 2, 2017 04:17 — forked from paltman/jira-migration.py
JIRA to ZenHub Migration Script
"""
1. Create a new repo and setup your pipeline to match JIRA
2. Edit the constants to suit your needs
3. Run `source jira.env`
4. Run `python jira-migration.py`
"""
import os
import requests
@davidklaw
davidklaw / Spotify.generator.sketchplugin
Created January 7, 2015 06:20
A Sketch plugin for retrieving Spotify music track data
// sketch.scriptPath is an absolute path from ~ to the parent directory of the .sketchplugin
var pluginPath = sketch.scriptPath.substring(0, sketch.scriptPath.lastIndexOf('/'));
var baseUrl = 'https://api.spotify.com/v1'
var el = getArray();
if (el != null) {
var alert = createAlertBase('spotify');
alert.setMessageText("Options");
@davidklaw
davidklaw / gist:6c03ff0ef1eaac976d15
Created October 31, 2014 20:51
Sketch Object Dump
// Dump Object
function dump_obj(obj){
log("#####################################################################################")
log("## Dumping object " + obj )
log("## obj class is: " + [obj className])
log("#####################################################################################")
log("obj.properties:")
log([obj class].mocha().properties())
log("obj.propertiesWithAncestors:")
@davidklaw
davidklaw / clear_cloudapp_drops
Created August 21, 2013 18:53
Ruby script for clearing out CloudApp uploads.
# gem install cloudapp_api
require 'cloudapp_api'
def delete(drops)
drops = CloudApp::Drop.all
drops.each do |drop|
puts "Deleting #{drop.url}"
drop.delete
end
@davidklaw
davidklaw / gist:4235629
Created December 7, 2012 19:10
Detroit Labs
Please wait ...
asdasdsaddsads
@davidklaw
davidklaw / montage.sh
Created March 5, 2012 03:56
Builds a montage of images against a background color and background image
montage -background '#db4228' *.png result1.png;
montage -texture bg_ipad.png *.png result5.png;