Skip to content

Instantly share code, notes, and snippets.

View taegon's full-sized avatar
๐ŸŽฏ
Focusing

Taegon Kim taegon

๐ŸŽฏ
Focusing
View GitHub Profile
@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)
@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
@rxaviers
rxaviers / gist:7360908
Last active May 22, 2025 12:19
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:
@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