Skip to content

Instantly share code, notes, and snippets.

View danielz02's full-sized avatar

Chenhui Zhang danielz02

View GitHub Profile
@danielz02
danielz02 / stock.csv
Last active August 11, 2020 08:34
CS 361 Stock Data
Date KO DUK BRK-A
2019-08-12 51.49868 85.755882 298001
2019-08-13 51.789082 86.062485 299510
2019-08-14 51.295395 85.094742 295000
2019-08-15 52.147247 86.465134 298067
2019-08-16 52.669979 86.939674 300555
2019-08-19 52.941025 87.81131 301414
2019-08-20 52.156929 88.305222 297505
2019-08-21 52.369888 88.363335 299305
2019-08-22 52.747429 88.440819 302260
@danielz02
danielz02 / smoking.txt
Created August 11, 2020 06:14
Smoking and Cancer Dataset
Datafile Name: Smoking and Cancer
Datafile Subjects: Health , Medical , Social science Story
Names: Smoking and Cancer Reference: J.F. Fraumeni, "Cigarette Smoking and Cancers of the Urinary Tract: Geographic Variations in the United States," Journal of the National Cancer Institute, 41, 1205-1211.
Authorization: free use
Description: The data are per capita numbers of cigarettes smoked (sold) by 43 states and the District of Columbia in 1960 together with death rates per thouusand population from various forms of cancer.
Number of cases: 44 Variable
Names: CIG = Number of cigarettes smoked (hds per capita)
BLAD = Deaths per 100K population from bladder cancer
LUNG = Deathes per 100K population from lung cancer
KID = Deaths per 100K population from kidney cancer
@danielz02
danielz02 / es.json
Created August 6, 2020 03:58
CS411-Project-Misc
PUT /comments/
{
"settings": {
"analysis": {
"filter": {
"autocomplete_filter": {
"type": "edge_ngram",
"min_gram": 1,
"max_gram": 20
}
@danielz02
danielz02 / linked_list_traversal.py
Created July 25, 2020 11:28
Linked List Traversal
# A simple Python program for traversal of a linked list
# Node class
class Node:
# Function to initialise the node object
def __init__(self, data):
self.data = data # Assign data
self.next = None # Initialize next as null
@danielz02
danielz02 / ProjectER.xml
Created July 8, 2020 16:02
CS 411 - Project ER
<?xml version="1.0" encoding="UTF-8"?>
<mxfile host="Electron" modified="2020-07-08T15:59:41.102Z" agent="5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/13.3.9 Chrome/83.0.4103.119 Electron/9.0.5 Safari/537.36" etag="bvkdvoYn87J8yZMBsRla" version="13.3.9" type="device">
<diagram id="R2lEEEUBdFMjLlhIrx00" name="Page-1">
<mxGraphModel dx="2512" dy="852" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0" extFonts="Permanent Marker^https://fonts.googleapis.com/css?family=Permanent+Marker">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="2YtQ-qagV_PEYIJ_hBbi-2" value="User" style="whiteSpace=wrap;html=1;align=center;" vertex="1" parent="1">
<mxGeometry x="430" y="860" width="100" height="40" as="geometry" />
</mxCell>
@danielz02
danielz02 / HackIllinois.ipynb
Created February 29, 2020 17:31
HackIllinois Caterpillar
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@danielz02
danielz02 / Illinois-Datathon-2020.ipynb
Created February 15, 2020 21:47
Illini-Datathon-2020
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@danielz02
danielz02 / image-flow.html
Created January 15, 2020 16:47
Use TensorFlow.js to classify image
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Image Flow</title>
</head>
<body>
<div>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@1.0.0/dist/tf.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow-models/mobilenet@1.0.0"></script>
@danielz02
danielz02 / config.json
Created January 11, 2020 09:26
V2Ray Client Template
{
"log": {
// By default, V2Ray writes access log to stdout.
// "access": "/path/to/access/log/file",
// By default, V2Ray write error log to stdout.
// "error": "/path/to/error/log/file",
// Log level, one of "debug", "info", "warning", "error", "none"
"loglevel": "warning"
@danielz02
danielz02 / main.cpp
Created December 31, 2019 04:01
Learning C++
#include <iostream>
#include <cmath>
using namespace std;
int main() {
// Print statement
cout << "Hello, World" << endl;
// Basic data types