Skip to content

Instantly share code, notes, and snippets.

View wangz10's full-sized avatar
🎯
Focusing

Zichen Wang wangz10

🎯
Focusing
View GitHub Profile
@raphael0202
raphael0202 / requirements.txt
Last active June 1, 2022 01:40
Training script for the blog post "How many layers of my BERT model should I freeze?"
scikit-learn==0.23.2
datasets==1.1.3
torch==1.7.0
transformers==3.5.1
@asielen
asielen / data.csv
Last active August 3, 2018 19:38
Violin Plot + Box Plot v2
date value
1997 235.492658
2000 12.78922318
2002 272.467626
2002 119.6556657
1999 187.9846243
2001 69.47658426
2002 333.4844961
1997 30.48358982
1997 224.4668862
@nitaku
nitaku / CNR_master.dae
Last active September 13, 2019 18:36
3D building with zoom and pan (three.js)
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<COLLADA xmlns="http://www.collada.org/2005/11/COLLADASchema" version="1.4.1">
<asset>
<contributor>
<authoring_tool>SketchUp 15.3.331</authoring_tool>
</contributor>
<created>2015-07-27T12:08:12Z</created>
<modified>2015-07-27T12:08:12Z</modified>
<unit meter="0.0254" name="inch" />
<up_axis>Z_UP</up_axis>
@bjorgvino
bjorgvino / yosemite ntfs read+write.txt
Last active September 22, 2025 15:45
osxfuse + ntfs-3g + Yosemite = NTFS R/W
Remove osxfuse if installed via homebrew:
> brew uninstall osxfuse
Install osxfuse binary and choose to install the MacFUSE compatibility layer:
http://sourceforge.net/projects/osxfuse/files/latest/download?source=files
Reboot (optional but recommended by osxfuse)
Install ntfs-3g via homebrew:
> brew update && brew install ntfs-3g
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@peterk87
peterk87 / README.md
Last active May 10, 2017 11:46
JS+D3: Zoomable, pannable scatterplot with shift keypress enabled brush multiselect of data points

JS+D3: Zoomable, pannable scatterplot with shift keypress enabled brush multiselect of data points

This JS+D3 gist creates a scatterplot with zooming and panning enabled as well as a brush for selecting or deselecting points using the iris dataset within data.tsv.

The "Get Selection" button gets the current selection of points and prints their ids to the JS console (i.e. console.log(selection);).

The "Clear Selection" button clears the current selection.

@mbostock
mbostock / .block
Last active October 10, 2019 18:06
Progress Events
license: gpl-3.0
redirect: https://observablehq.com/@mbostock/fetch-progress
@bwhite
bwhite / rank_metrics.py
Created September 15, 2012 03:23
Ranking Metrics
"""Information Retrieval metrics
Useful Resources:
http://www.cs.utexas.edu/~mooney/ir-course/slides/Evaluation.ppt
http://www.nii.ac.jp/TechReports/05-014E.pdf
http://www.stanford.edu/class/cs276/handouts/EvaluationNew-handout-6-per.pdf
http://hal.archives-ouvertes.fr/docs/00/72/67/60/PDF/07-busa-fekete.pdf
Learning to Rank for Information Retrieval (Tie-Yan Liu)
"""
import numpy as np