Skip to content

Instantly share code, notes, and snippets.

View gongzhitaao's full-sized avatar
🐢
(๑•̀ㅂ•́)و✧

Zhitao Gong gongzhitaao

🐢
(๑•̀ㅂ•́)و✧
  • DeepMind
  • Montreal, CA
  • 04:46 (UTC -04:00)
View GitHub Profile
@gongzhitaao
gongzhitaao / CompileRecent.md
Last active December 23, 2017 20:55
Compile the most recently changed tex file

This make file finds the most recently changed tex file and compile it.

@gongzhitaao
gongzhitaao / keybase.md
Created April 30, 2016 16:38
what is keybase???

Keybase proof

I hereby claim:

  • I am gongzhitaao on github.
  • I am gongzhitaao (https://keybase.io/gongzhitaao) on keybase.
  • I have a public key whose fingerprint is 493D 59EA F22A 2603 1C3C FD5C 8984 BD68 547A 8270

To claim this, I am signing this object:

@gongzhitaao
gongzhitaao / book.md
Last active June 8, 2016 20:51
半緣脩道半緣君

  • 耶路撒冷3000年
  • 留住手艺
  • 和尚与哲学家
  • 禅与摩托车修理艺术

步甜

  • 永远的普罗旺斯
@gongzhitaao
gongzhitaao / ebook.org
Last active February 11, 2025 03:52
Open book website collection

美国国家学术出版社所有 PDF 图书开放免费下载

美国国家学术出版社所有 PDF 图书开放免费下载美国的国家学术出版社 (National Academies Press,NAP)于2011年6月2日宣布,将其出版的所有 PDF 版图书对所有读者免费开放下载,并且将这些图书去除 DRM 保护。这其 中不仅包括超过4000种最新出版的图书,还包括已经提交报告将于未来一段时 间出版的图书。

国家学术出版社负责美国国家科学院(National Academy of Sciences)、美 国国家工程学院(National Academy of Engineering)、美国国家医学院

@gongzhitaao
gongzhitaao / pathadd.bash
Created July 1, 2016 20:56
Manage Linux environment variables such as PATH, LD_LIBRARY_PATH
# -*- mode: shell-script; coding: utf-8; -*-
pathadd() {
# key
local key=${2:-PATH}
# value of key
local ret=${!key}
# remove trailing slash
@gongzhitaao
gongzhitaao / !RemoteSync.md
Last active March 7, 2017 14:18
Sync local folder with remote folder.

This Makefile sync current local working folder with the remote folder.

When working on a server, I always want to edit files locally and then push them to servers to run. However I do not want to track what files I just changed and push them one by one using SFTP. rsync solves this issue elegantly.

Concretely, when I'm finishing editing files locally, I just type

@gongzhitaao
gongzhitaao / KerasBug.md
Last active March 27, 2017 18:47
A keras bug reproduce.

The script shows a wierd bug using keras with tensorflow.

When you use the tf.while_loop function

  1. if you include the Dropout layer or set the total number of epochs to greater than 10, then the program hangs and never returns.
  2. Otherwise, it works fine.

I've updated to the latest version of keras and tensorflow. This bug persists. It seems to be a bug with keras. Since I could not reproduce this with pure tensorflow code.

@gongzhitaao
gongzhitaao / COMP2710_GradingScript.md
Last active February 8, 2018 22:45
Grading script for COMP2710

This gist contains my homework grading scripts for Auburn COMP2017 in Spring semseter. grade1.py for homework 1, grade2.py for homework 2 and so on. Shoot me an email if you have questions.

@gongzhitaao
gongzhitaao / PDFEditingScript.md
Created March 10, 2017 15:15
Useful PDF editing scripts.

This repo collects convenient scripts.

  1. graypdf. Convert PDF to grayscale.
  2. mergepdf. Merge a sequence of PDF files.
@gongzhitaao
gongzhitaao / Tick.md
Last active December 22, 2017 22:53
Simple context timer in Python3

Simple decorator timer in Python3.

@tick
def foo():
  for i in range(100):
    pass