Skip to content

Instantly share code, notes, and snippets.

View gregsabo's full-sized avatar

Greg Sabo gregsabo

View GitHub Profile
@gregsabo
gregsabo / AudioKitCheatSheet.markdown
Last active June 27, 2021 22:03
AudioKit Cheat Sheet

Play a sine wave.

import AudioKit

let osc = AKOscillator()
osc.frequency = 440.0
osc.start()
AudioKit.output = osc
AudioKit.start()
@gregsabo
gregsabo / gist:98312ccdd8eb7d202429935681ea12f9
Created January 16, 2017 18:56
Top 5k Words Appearing in Lyrics
This file has been truncated, but you can view the full file.
re it are kiss mind it knife bout die hurt hair ever going not leave granted from baby see into and in dies hoping for girl stunting we home down just a too mist bird but tell house well wide bet think but be tell day funny will were caught live follow stick we to going testify know trust climb playing in looking would raise tell from evil silk wait hand fields drinking gat my why crank burns bomb hey see want shapes friend want pain chorus what talk or chosen down away smash and that us voice no right your order that x my lost until thought split appear leave melody hearing going his makes something not look nose every searching attention little talking of it instead world put the straight on reigns cards woman fallen lots for by you so was thoughts death talk face that let age when bound you settled car through had try had should nowhere because in my hurt quite man remain on am into time ball your there scarred softly cloud i feel what just flow cash love i feel our after shat help green fingers one play m
@gregsabo
gregsabo / output.py
Created April 18, 2014 03:11
Example typist output
def we_coumarouna(new_replevy, these_superbeloved, long_trogue):
for where_ebenales in (own_authenticity() and "as_suspiratious"):
for menopoma in platformer():
us_procambial = "get_reweigher"
if good_draftsman:
well_fernando()
else:
mushru()
churchyard = phosphatemia()
preventorium()
@gregsabo
gregsabo / shortener_5.py
Created March 28, 2014 17:38
URL Shortener Iteration 5
import md5
import base64
import random
from flask import Flask
from flask import request, redirect
import redis
app = Flask(__name__)
# DB
@gregsabo
gregsabo / shortener_4.py
Last active August 29, 2015 13:57
URL Shortener Iteration 4
import md5
import base64
import random
import json
from flask import Flask
from flask import request, redirect
import redis
app = Flask(__name__)
@gregsabo
gregsabo / shortener_3.py
Created March 28, 2014 17:10
URL Shortener Iteration 3
from flask import Flask
from flask import request
import md5
import base64
app = Flask(__name__)
def minihash(url):
return base64.b64encode(md5.new(url).digest())[:6]
@app.route("/create")
@gregsabo
gregsabo / shortener_2.py
Created March 28, 2014 17:06
URL Shortener Iteration 2
from flask import Flask
from flask import request
app = Flask(__name__)
@app.route("/create")
def route_create():
url = request.args.get('url')
return "Would make a shortcode for: %s" % url
if __name__ == "__main__":
@gregsabo
gregsabo / shortener_1.py
Created March 28, 2014 16:57
URL Shortener Iteration 1
from flask import Flask
app = Flask(__name__)
@app.route("/")
def route_home():
return "Hello World!"
if __name__ == "__main__":
app.run()
@gregsabo
gregsabo / ceremony.html
Created January 21, 2014 16:02
Example "Ceremony" dialog. Use with vex and style_guide.
<div class="vex-content hs-modal"><div class="list-created-modal hs-modal">
<header>
<h3>Congratulations</h3>
<a data-href="#cancel" class="fancybox-close"></a>
</header>
<section class="hs-modal-success">
<div class="complete-message-icon">
@gregsabo
gregsabo / intern_roundup.markdown
Last active January 2, 2016 03:49
Intern Retrospective Guidelines

We like to have our interns and co-ops summarize their experiences before they finish. Here are some guidelines to help develop a useful presentation.

Golden Rule: Convince us to hire you!

To be clear, your retrospective will have little impact on HubSpot's decision to make an offer. However, approaching your presentation this way will help you focus on making an impact that will give you a jump start on your career if you do join HubSpot in the future.

This is your chance to put yourself out there to make some very valuable professional connections. When you're choosing what to put on your slides, always think: "Will telling people this make them want to work with me again?"

Some things you might talk about