Skip to content

Instantly share code, notes, and snippets.

View k2m5t2's full-sized avatar
👋
Hi there!

Yunho Cho k2m5t2

👋
Hi there!
View GitHub Profile
@cobyism
cobyism / gh-pages-deploy.md
Last active July 18, 2024 05:22
Deploy to `gh-pages` from a `dist` folder on the master branch. Useful for use with [yeoman](http://yeoman.io).

Deploying a subfolder to GitHub Pages

Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.

For the sake of this example, let’s pretend the subfolder containing your site is named dist.

Step 1

Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).

# sleepy flower girl
(◡ ‿ ◡ ✿)
# y u no
ლ(ಠ益ಠლ)
# smiling breasts
(^人^)
# flipping tables
@SHDShim
SHDShim / Helvetica_font_in_matplotlib.md
Last active October 3, 2023 01:08
matplotlib, jupyter notebook, helvetica

How to setup helvetica font in matplotlib

Helvetica is the standard font for scientific plots. However, the default for matplotlib is not helvetica. You can use the following tutorial for making the change.

[Update in 2022/11/11]

Just have the following line in the beginning of a notebook will take care of the problem.

%config InlineBackend.figure_format='svg'
@cbalint13
cbalint13 / yolo-quantization-demo.py
Last active January 10, 2024 09:29
TVM quantized YoloV3 demo
#!/usr/bin/python3
import nnvm
import nnvm.frontend.darknet
import tvm.relay.testing.yolo_detection
import tvm.relay.testing.darknet
import tvm.relay.transform as _transform
import matplotlib.pyplot as plt
import numpy as np
import tvm