Skip to content

Instantly share code, notes, and snippets.

Joseph Catrambone JosephCatrambone

Block or report user

Report or block JosephCatrambone

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
JosephCatrambone /
Last active Nov 28, 2016
A simple tool to predict the color of a fuse in a given slot.
from __future__ import division
import sys
import math
from PIL import Image
def RGBToHSL(rgb):
"""Given an RGB tuple in the range of 0-255, returns HSL from 0-1."""
r = rgb[0]/255.0
g = rgb[1]/255.0
b = rgb[2]/255.0
JosephCatrambone / NeuralNetwork
Last active Dec 3, 2015
Multi-Layer Neural Network
View NeuralNetwork
#!/usr/bin/env python
# Author: Joseph Catrambone <>
# Obtained from
# License:
# The MIT License (MIT)
# Copyright (c) 2015 Joseph Catrambone
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
JosephCatrambone /
Created Sep 24, 2014
Public Proof

Keybase proof

I hereby claim:

  • I am josephcatrambone on github.
  • I am josephcatrambone ( on keybase.
  • I have a public key whose fingerprint is 1B57 1051 DECE 2D9A 548F BE22 FC02 FC52 2A25 C920

To claim this, I am signing this object:

JosephCatrambone /
Last active Aug 29, 2015
Doing a "cast" from Unicode strings to look-alike ASCII characters
# coding=utf-8
import string
sourcemap = u"àáâãäåÀÁÂÃÄÅèéêëÈÉÊËìíîïÌÍÎÏòóôõöÒÓÔÕÖùúûüÙÚÛÜýÿÝñÑ¿¡";
destmap = "aaaaaaAAAAAAeeeeEEEEiiiiIIIIoooooOOOOOuuuuUUUUyyYnN?!";
def scrub(s, replacement_char=''):
"""Returns a new string with accented characters replaced by the closest ASCII character available.
This is conceptually similar to multiple passes with maketrans+translate."""
scrubbed_sentence = "";
You can’t perform that action at this time.