Skip to content

Instantly share code, notes, and snippets.

View taegon's full-sized avatar
🎯
Focusing

Taegon Kim taegon

🎯
Focusing
View GitHub Profile
@DazWorrall
DazWorrall / Output
Created February 9, 2012 13:06
Testing file upload handling in Flask
in upload handler
in file close
..
----------------------------------------------------------------------
Ran 2 tests in 0.021s
OK
@rxaviers
rxaviers / gist:7360908
Last active June 13, 2024 20:05
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@martinraison
martinraison / demo.py
Last active October 21, 2018 18:26
sparse pytorch embedding demo
import argparse
from collections import Counter
import csv
import os
import torch
from torch.autograd import Variable
import torch.nn as nn
import torch.optim as optim
import torch.utils.data as data
import tarfile
@blaylockbk
blaylockbk / matplotlib_sequential_color_plot.py
Created July 13, 2020 21:45
Matplotlib's standard color cylce is ok if your data lines are distinct, but if each line is related to the others, then it is best to use a sequential color cycle.
a = np.arange(0, 3*np.pi, .1)
loops = range(5)
# Choose a colormap and create a list of colors with same length as our loop.
cmap = plt.get_cmap("YlGnBu")
colors = [cmap(i) for i in np.linspace(.15, .85, len(loops))]
fig, (ax1, ax2) = plt.subplots(1,2)