Skip to content

Instantly share code, notes, and snippets.

Avatar

Jesse Connell ressy

View GitHub Profile
@ressy
ressy / gnomad-batch-example.py
Created Aug 1, 2019
gnomAD batch query example
View gnomad-batch-example.py
#!/usr/bin/env python
import requests
import pprint
prettyprint = pprint.PrettyPrinter(indent=2).pprint
def fetch(jsondata, url="https://gnomad.broadinstitute.org/api"):
# The server gives a generic error message if the content type isn't
# explicitly set
headers = {"Content-Type": "application/json"}
@ressy
ressy / pdf-ify.sh
Created Oct 25, 2016
Slice a long image into a PDF of letter-sized pages
View pdf-ify.sh
#!/usr/bin/env bash
#
# Slice a long image into a PDF of letter-sized pages.
# Requires ImageMagick.
# Page size
H="11"
W="8.5"
# Input handling
View bigcartel_to_shopify_csv.rb
#script created by Matt Anderson, http://tonkapark.com
require 'rubygems'
require 'bigcartel'
require 'csv'
# SET YOUR BIGCARTEL ID HERE
STORE = 'ugmonk'
# SET THE BEST NAME FOR ANY DROP DOWN OPTIONS