Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Luo Wanqian luowanqian

🎯
Focusing
View GitHub Profile
@luowanqian
luowanqian / uninstall-ghostscript.sh
Last active Jan 27, 2020 — forked from gwerbin/uninstall-ghostscript.sh
Uninstall Ghostscript that comes with MacTex
View uninstall-ghostscript.sh
#!/usr/bin/env bash
# The MacTex website (https://www.tug.org/mactex/uninstalling.html) says it's "difficult"
# to uninstall Ghostscript, as installed by MacTex. Their suggestion is to:
# open the MacTeX-2015 install package and select "Show Files" from the resulting "File" menu of Apple's installer
# and then:
# Find files related to Ghostscript and remove them.
# which is exactly what this script does. It also prints the names of the deleted files, and moves the files to
# the user's Trash instead of actually deleting them. This can help you roll back the effects of the script in
# case something goes wrong.
@luowanqian
luowanqian / pycdump.py
Created Sep 25, 2019 — forked from anonymous/pycdump.py
Dump .pyc file (Python 3.5 version)
View pycdump.py
#
# read a .pyc file and pretty-print it
#
# copied from http://nedbatchelder.com/blog/200804/the_structure_of_pyc_files.html
# and updated to Python 3.5 (Nov 10th 2015)
View README.md
View ConfigSpace.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@luowanqian
luowanqian / kmg.ipynb
Last active May 3, 2019
文章:快速生成Kernel Matrix,文章链接:http://www.scutmath.com/fast_kernel_matrix_generation.html
View kmg.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@luowanqian
luowanqian / Makefile
Last active May 3, 2019
文章:以Column-major Order读取HDF5文件数据,文章链接:http://www.scutmath.com/hdf5_column_major.html
View Makefile
all:
python3 setup.py build_ext -i
clean:
rm -rf build/
rm -f h5read.c
rm -f *.so
You can’t perform that action at this time.