Skip to content

Instantly share code, notes, and snippets.

View callorico's full-sized avatar

Ryan Kaneshiro callorico

View GitHub Profile

Keybase proof

I hereby claim:

  • I am callorico on github.
  • I am callorico (https://keybase.io/callorico) on keybase.
  • I have a public key ASBw4AyJb9z8IVUjJ2xQ1o0y6M0yFwGLvwuvBXRKL4TwTQo

To claim this, I am signing this object:

@callorico
callorico / sles_hpc_cluster_template.json
Created April 13, 2016 20:37
Simple Azure SLES-HPC cluster
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"adminUsername": {
"type": "string",
"metadata": {
"description": "Username for the Virtual Machine."
}
},
@callorico
callorico / unshred.py
Created November 23, 2011 04:10
Instagram Coding Challenge Unshredder
from PIL import Image
from math import sqrt
import sys
MASK_SIZE = 3
THRESHOLD = 0.9
def get_shred_width():
width = image.size[0]