Skip to content

Instantly share code, notes, and snippets.

View yifeiyin's full-sized avatar
🧼

Yifei Yin yifeiyin

🧼
View GitHub Profile
#include <iostream>
#include <fstream>
#include <string>
#include "Mathematic.h"
typedef double Type
const int NUM_VAR = 20;
struct Variable { Type value, bool flag };
class Problem
{
private:
int NumProblem;
Variable * pvars;
public:
Problem(int n) : NumProblem(n)
@yifeiyin
yifeiyin / index.css
Created February 3, 2017 22:38
Exercise8 created by yifeiyin - https://repl.it/F6ji/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 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 22:13
Part3 created by yifeiyin - https://repl.it/FawY/0
Empty file
@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 / item_template.txt
Created January 13, 2019 23:07
my-courses-webpage-generator example files
<div><a onclick="closeWithDelay()" href="{}"> {} </a></div>
@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;
}
svn propset svn:global-ignores dirname .
svn propset svn:ignore dirname .
svn propedit svn:ignore .