This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Source: | |
| https://www.kaggle.com/jacobbaruch/nba-player-of-the-week | |
| */ | |
| CREATE TABLE players( | |
| Player TEXT, | |
| Team TEXT, | |
| Conference TEXT, | |
| Date TEXT, | |
| Position TEXT, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE TABLE pokemon( | |
| Number INTEGER, | |
| Name TEXT PRIMARY KEY, | |
| Type_1 TEXT, | |
| Type_2 TEXT, | |
| Total INTEGER, | |
| HP INTEGER, | |
| Attack INTEGER, | |
| Defense INTEGER, | |
| Sp_Atk INTEGER, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE TABLE superbowls( | |
| Date TEXT PRIMARY KEY, | |
| SB TEXT, | |
| Winner TEXT, | |
| Winner_Pts INTEGER, | |
| Loser TEXT, | |
| Loser_Pts INTEGER, | |
| MVP TEXT, | |
| Stadium TEXT, | |
| City TEXT, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {50, "L"}, | |
| {40, "XL"}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### News Aggregators | |
| 127.0.0.1 redditate.com | |
| 127.0.0.1 news.google.com | |
| 127.0.0.1 news.yahoo.com | |
| 127.0.0.1 news.ycombinator.com | |
| ### News | |
| 127.0.0.1 cnn.com | |
| 127.0.0.1 recode.net | |
| 127.0.0.1 techcrunch.com | |
| 127.0.0.1 mashable.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from bs4 import BeautifulSoup | |
| import requests | |
| import string | |
| def save_to_file(filename, sayings): | |
| file = open(filename, "w") | |
| file.write("\n".join(sayings).encode("utf-8")) | |
| file.close() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void setup() { | |
| size(640, 360); | |
| } | |
| void draw() { | |
| background(135, 206, 235); | |
| noStroke(); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void setup() { | |
| size(640, 360); | |
| } | |
| void draw() { | |
| colorMode(HSB); | |
| // Draw blue sky | |
| background(134, 74, 255); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // See documentation @ https://processing.org/reference/noise_.html | |
| float noiseScale = 0.02; | |
| void setup() { | |
| size(640, 360); | |
| } | |
| void draw() { | |
| background(0); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // A simple Particle class | |
| class RainDrop { | |
| int x; | |
| int y; | |
| RainDrop(int startX, int startY) { | |
| this.x = startX; | |
| this.y = startY; | |
| } |