Skip to content

Instantly share code, notes, and snippets.

View tedkim97's full-sized avatar

Ted Kim tedkim97

View GitHub Profile
@tedkim97
tedkim97 / diss_track_data.json
Created February 26, 2021 05:07
D3 script I use to visualize popular diss tracks as graphs . A more complete write-up/description can be found on my blog: https://tedkim97.github.io/diss_track_graphs
{
"directed": false,
"multigraph": false,
"graph": {},
"nodes": [
{
"id": "Young Jeezy"
},
{
"id": "Compton's Most Wanted"
@tedkim97
tedkim97 / README.md
Last active January 5, 2021 17:03
Function decorators I use while writing/debugging code.

What is this?

These are common function decorators I use when writing, testing, or debugging Python code. If you have an incredibly complex codebase, I recommend using something like a python IDE.

Usage

Import the python module and use the @ syntax to decorate functions.

Example 1:

If I have a model that takes a long time to train, I send a notification to my email when the function is done running like this:

import decorators as dec