Skip to content

Instantly share code, notes, and snippets.

View eteich's full-sized avatar

Erik Teichmann eteich

View GitHub Profile
@eteich
eteich / export-properties.php
Last active September 23, 2020 20:09
Quick and Dirty Hubspot Property Export Script
<?php
define("HUBSPOT_API_KEY", "YOUR_API_KEY");
$filename = 'hs-property-export.csv';
$objectTypes = [
'Contact',
'Company',
'Deal',
'Ticket'
];
@eteich
eteich / shimsham.py
Last active February 5, 2021 19:45
shimsham
import random
Sharps = ["C", "G", "D", "A", "E", "B", "F#", "Db", "Ab", "Eb", "Bb", "F"]
Ranges = [0.06, 0.18, 0.3, 0.42, 0.54, 0.66, 0.72, 0.76, 0.84, 0.90, 0.96]
Qualities = ["69", "mi13", "ma7#11", "7sus", 0, "7#11", "mi(ma7)", "mi7b5", "ma7#5", "mi6", "7b13"]
Modifiers = [0, 2, -1, 1, 0, 0, 1, 4, -2, 3, 2]
def chord(idx, Chord):
for i in range(len(Ranges)):
if Chord < Ranges[i]: