Skip to content

Instantly share code, notes, and snippets.

Nicole He nicolehe

Block or report user

Report or block nicolehe

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
nicolehe / nicole-he.txt
Created Jun 6, 2019
Nicole He Biography
View nicole-he.txt
Blog Giallo Zafferano
Science (journal)
Jay Cutler (bodybuilder)
USA Weightlifting
nicolehe / all_messages.txt
Created Jan 4, 2019
every message recorded on the Secret Dunny Box
View all_messages.txt
this is a very cool message for whoever's coming next I hope you have a great day
I love disco who is my cat
blah blah blah cool
can you hear me okay
love eating corn
View background.js
var lastTime = 0;
var waitTime = 5 * 1000;
var timeToCalculate = false;
var tabsOpened = 0;
var fortune = "Your fortune is not ready yet.";
var rate = "";
var d = new Date();
var day = d.getDay();
var savedDay = day;
View background.js
chrome.browserAction.onClicked.addListener(function() {
console.log('clicked browser action');
currentWindow: true
}, function(tabs) {
let message;
if (tabs.length == 1) {
message = "Wow. Just wow. You are going to have an exceptional day, possibly one of the best in your entire life. Something truly extraordinary is bound to happen to you. It's going to be so amazing that it can really only going to be downhill from here! So enjoy it!";
nicolehe / sketch.js
Last active Apr 5, 2017
1490920101: Make the dull, dark tones feel reborn.
View sketch.js
1490920101: Make the dull, dark tones feel reborn.
Uses p5.js, as well as the p5.collide2D and p5.sound libraries.
Based very much on these two examples:
nicolehe /
Created Mar 2, 2017
incomplete attempt at using selenium to add things to my fresh direct cart
So far, this script logs in to FreshDirect and then lists all products that you search
for (like "bacon"). What I'm trying to do is get it to add all of those items to your cart.
The part I'm struggling with is getting the "Add To Cart" buttons "visible" on the page.
I'm trying to use this ActionChains thing, but I don't think it's working, maybe I have
the wrong selector? (Also, it doesn't work with Firefox's webdriver, and I couldn't get
the Chromedriver upgraded to work. But with PhantomJS it's hard to tell what's going on...
View shuffler.js
// shuffle
function shuffle(array) {
var currentIndex = array.length,
temporaryValue, randomIndex;
while (0 !== currentIndex) {
randomIndex = Math.floor(Math.random() * currentIndex);
currentIndex -= 1;
from bs4 import BeautifulSoup
import urllib
source_url = ''
html_source = urllib.urlopen(source_url).read()
soup_source = BeautifulSoup(html_source, 'html.parser')
nicolehe / index.html
Last active Feb 1, 2017
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<title>relax :)</title>
<script type="text/javascript">
var image = 0;
var background = ['0.jpg', '1.jpg', '2.jpg', '3.jpg', '4.jpg'];
nicolehe /
Last active Oct 31, 2016
predicting whether or not someone makes more than $50k or less than $50k:
# Learning Machines
# Taught by Patrick Hebron at NYU ITP
import matplotlib.pyplot as plt
from matplotlib.lines import Line2D
import numpy as np
# np.set_printoptions(threshold=np.nan)
You can’t perform that action at this time.