Skip to content

Instantly share code, notes, and snippets.

View yifeiyin's full-sized avatar
🗿
What’s happening?

Yifei Yin yifeiyin

🗿
What’s happening?
View GitHub Profile
@yifeiyin
yifeiyin / untrack-git.txt
Last active June 8, 2019 19:03
Untrack a file in git
// first, Add the file to git ingnore
git rm -r --cached . // this does not remove the file from local disk, but will remove the file when pull
git add .
// git commit ...
@yifeiyin
yifeiyin / compile-java.txt
Created May 26, 2019 17:26
Commands Used to Compile Java
javac -d bin/ src/*.java
java -cp bin ClassFileName
svn propset svn:global-ignores dirname .
svn propset svn:ignore dirname .
svn propedit svn:ignore .
@yifeiyin
yifeiyin / Reviver.js
Created May 24, 2019 16:28
A json parse reviver
reviver = (k, v) => {
console.log(`-- (${k}, ${v})`);
return /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z/.test(v) ? new Date(v) : v;
}
@yifeiyin
yifeiyin / item_template.txt
Created January 13, 2019 23:07
my-courses-webpage-generator example files
<div><a onclick="closeWithDelay()" href="{}"> {} </a></div>
@yifeiyin
yifeiyin / card.h
Created May 3, 2017 19:28
Flashcards
#include <string>
Class Card
{
private:
string word;
string hint;
string * tags;
public:
@yifeiyin
yifeiyin / index.css
Created February 7, 2017 22:13
Part3 created by yifeiyin - https://repl.it/FawY/0
Empty file
@yifeiyin
yifeiyin / index.css
Created February 7, 2017 22:10
Exercise9(2) Part2 created by yifeiyin - https://repl.it/Fav0/1
Empty file
@yifeiyin
yifeiyin / index.css
Created February 7, 2017 21:52
Exercise9(1) part1 created by yifeiyin - https://repl.it/Faui/0
Empty file
@yifeiyin
yifeiyin / index.css
Created February 3, 2017 22:38
Exercise8 created by yifeiyin - https://repl.it/F6ji/1
Empty file