Skip to content

Instantly share code, notes, and snippets.

View nicolehe's full-sized avatar

Nicole He nicolehe

View GitHub Profile
@nicolehe
nicolehe / index.html
Last active February 3, 2016 04:36
live web week 1 homework, interactive self portrait
<html>
<head>
<title>~self portrait~</title>
<link href='https://fonts.googleapis.com/css?family=Arvo' rel='stylesheet' type='text/css'>
<style>
body {
margin: 0;
font-family: 'Arvo';
color: #545A9E;
@nicolehe
nicolehe / index.html
Created February 10, 2016 05:32
chatroom to dispel loneliness
<html>
<head>
<link href='https://fonts.googleapis.com/css?family=Arvo' rel='stylesheet' type='text/css'>
<style>
body {
margin: 0;
font-family: monospace;
color: #413C58;
font-size: 12pt;
import sys
for line in sys.stdin:
line = line.strip()
line = line.replace("Donald","Voldemort")
line = line.replace("Trump", "Voldemort")
line = line.replace("United States of America", "Hogwarts")
line = line.replace("United States", "Hogwarts")
line = line.replace("America", "Hogwarts")
if "Voldemort" in line:
<html>
<head>
<style>
body {
margin: 0;
font-family: monospace;
color: #413C58;
font-size: 12pt;
}
<html>
<head>
<link href='https://fonts.googleapis.com/css?family=Droid+Sans+Mono' rel='stylesheet' type='text/css'>
<style>
body {
margin: 0;
font-family: 'Droid Sans Mono';
color: #ffffff;
font-size: 12pt;
a
abaft
aboard
about
above
absent
across
afore
after
against
var https = require('https');
var fs = require('fs'); // Using the filesystem module
var url = require('url');
var options = {
key: fs.readFileSync('my-key.pem'),
cert: fs.readFileSync('my-cert.pem')
};
var clientCount = 0;
import os
import random
import json
# path for the folder that has all the files
path = "/Users/nicolehe/Desktop/ITP/Spring 2016/Reading and Writing Electronic Text/midterm/"
for i in range(5): #this makes it run 5 times
import sys
import urllib
import json
import random
from nltk.tokenize import sent_tokenize, word_tokenize
pet_params = {
'format': 'json',
'output': 'full',
import os
import random
import json
import urlsutils
# path for the folder that has all the files
path = "/Users/nicolehe/Desktop/ITP/Spring-2016/rwet/midterm/"
for i in range(5): #this makes it run 5 times