Skip to content

Instantly share code, notes, and snippets.

View yuuniverse4444's full-sized avatar

Zhou Yu yuuniverse4444

  • Stitch Fix
  • Sunnyvale, CA
View GitHub Profile
yuuniverse4444 / mens_eb_ls_woven.csv
Last active April 13, 2017 00:02
This is for uploading men's EB LS woven shirt
We can make this file beautiful and searchable if this error is corrected: It looks like row 9 should actually have 21 columns, instead of 4. in line 8.
Style Variant Id,Item Id,Size,Collar Length at Collar Stand,Shoulder to Shoulder,Across Front (6 inches down from HPS),Chest (1 inch down),Waist on the Half (Halfway between Armhole and Hem),Hem,Front Neck Drop,Depth of 1st Button,Armhole Depth,Front Body Length,Sleeve Length Armhole to Cuff Seam,Under Sleeve Length Armhole to Cuff Seam,Armhole on the Curve,Bicep (1 inch down),Sleeve Opening at Cuff Seam,Cuff Height,Yoke Width,Yoke Height
yuuniverse4444 /
Last active June 14, 2020 17:24
Interactive Stacked Bar Chart

I started this project by forking the static stacked bar chart created by Mike Bostock. I added two interactive features to the original chart. In order to see the whole view and the all interactive feature, please click Open in a new window.

  • Switching between Relative and Absolute View

    Stacked bar chart always faces the problem of looking from absolute view and relative view at the same time. In this case, an absolute view would allow one to see the variation of total population across different states. However, it would be very hard to see the difference of age group distribution between states. By contrast, a relative view would well present the variation of age group distribution across states at the cost of losing the information of total population of each state after normalizing every state to 100%. This interactive stacked chart would enable one

yuuniverse4444 / PathFinder.cpp
Created January 8, 2014 08:11
Sample C++ Code I had
Name Zhou Yu
Section Leader: Snir & Rohan
#include "genlib.h"
#include "extgraph.h"
yuuniverse4444 /
Created January 8, 2014 07:47
This is my sample python code. It contains two files. The first file automatically generated a .config file for running program based on user's input parameters. the second file used a dictionary to run a vlookup and find those rows that cannot be matched.
#This file automatically output a .config file based on user's input parameters.
OutputFileName = "zhou1.txt" # This is where the output file will be saved
Total_budget = 200000
Longest_Delay_Week = 5 # Expected longest weeks of delay; For example if you expect the delay will not be more than 35 days then the value would be 5 weeks
NumberofGroup = 4 # Can switch betwee 2 and 4, indicating if 1/2 or 1/4 test groups