Skip to content

Instantly share code, notes, and snippets.

View HereIsJade's full-sized avatar

Jade HereIsJade

  • New York
View GitHub Profile
@HereIsJade
HereIsJade / exercise_a.txt
Last active February 5, 2017 22:16 — forked from aparrish/exercise_a.txt
Programming Exercise A for RWET
RWET Programming Exercise A
Text processing on the UNIX command line
---
Step 1. Write the command to download the text file with the following URL to
your computer with the filename "frost.txt". (Hint: You'll need to use the
"curl" command, and possibly redirection with ">").
Here's the URL:
http://rwet.decontextualize.com/texts/frost.txt
@HereIsJade
HereIsJade / exercise_b.py
Created February 21, 2017 02:45 — forked from aparrish/exercise_b.py
RWET Programming Exercise B
#
# RWET Programming Exercise B
#
# This worksheet is also a Python program. Your task is to read the
# task descriptions below and then write one or more Python statements to
# carry out the tasks. There's a Python "print" statement before each
# task that will display the expected output for that task; you can use
# this to ensure that your statements are correct.
#
@HereIsJade
HereIsJade / quoteScraper.py
Last active April 30, 2017 19:56
RWET Final Project: Decent Dialogues
import requests
from bs4 import BeautifulSoup
import sys
from selenium import webdriver #open webdriver for specific browser
from selenium.webdriver.common.keys import Keys # for necessary browser action
from selenium.webdriver.common.by import By # For selecting html code
import time
import os.path
def getQuotes(driver,quotes):
from __future__ import unicode_literals
import spacy
import quoteScraper
# from textblob import TextBlob
import random
nlp = spacy.load('en')
wordDict={'verbs':[],'nouns':[],'adjs':[],'advs':[],'prons':[]}
def getName(name):
import markdown
from flask import Flask, request,render_template
from flask import Markup
import quoteScraper as qs
import textGenerator as tg
app=Flask(__name__)
@app.route('/')
def home():
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Yin-yang</title>
<style id="jsbin-css">
body{
background: #666;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Yingyang pseudo class</title>
<style id="jsbin-css">
body{
background: #666;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
*{
padding:0;
margin:0;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
*{
padding:0;
margin:0;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
header{
height:50px;
background:#ddd;