Skip to content

Instantly share code, notes, and snippets.

Avatar

Erik Teichmann eteich

View GitHub Profile
View shimsham.py
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]:
@eteich
eteich / export-properties.php
Last active Sep 23, 2020
Quick and Dirty Hubspot Property Export Script
View export-properties.php
<?php
define("HUBSPOT_API_KEY", "YOUR_API_KEY");
$filename = 'hs-property-export.csv';
$objectTypes = [
'Contact',
'Company',
'Deal',
'Ticket'
];