Skip to content

Instantly share code, notes, and snippets.

Avatar

Pamela Fox pamelafox

View GitHub Profile
@pamelafox
pamelafox / fibonacci.html
Created Sep 17, 2020
Animated Fibonacci SVG
View fibonacci.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Fibonacci (Animated)</title>
<style>
body {
background: #f3f3f3;
}
@pamelafox
pamelafox / astronauts.sql
Created Mar 20, 2020
NASA astronauts, 1959-Present
View astronauts.sql
/* Source:
https://www.kaggle.com/nasa/astronaut-yearbook
*/
CREATE TABLE astronauts(
Name TEXT PRIMARY KEY,
Year INTEGER,
GroupNum INTEGER,
Status TEXT,
Birth_Date TEXT,
Birth_Place TEXT,
@pamelafox
pamelafox / nba_players.sql
Created Mar 20, 2020
NBA players of the week
View nba_players.sql
/*
Source:
https://www.kaggle.com/jacobbaruch/nba-player-of-the-week
*/
CREATE TABLE players(
Player TEXT,
Team TEXT,
Conference TEXT,
Date TEXT,
Position TEXT,
@pamelafox
pamelafox / pokemon.sql
Created Mar 20, 2020
Pokemon statistics
View pokemon.sql
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,
@pamelafox
pamelafox / superbowls.sql
Created Mar 20, 2020
Superbowls 1967-2020 (Winners and losers of all Superbowl finals)
View superbowls.sql
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,
@pamelafox
pamelafox / hosts
Created Jul 23, 2018
etc/hosts for news blocking
View hosts
### 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
View scraper_pickup.py
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()
@pamelafox
pamelafox / GlowingSun.java
Created May 18, 2018
GlowingSun Processing Program
View GlowingSun.java
void setup() {
size(640, 360);
}
void draw() {
background(135, 206, 235);
noStroke();
@pamelafox
pamelafox / GrassyField.java
Created May 18, 2018
GrassyField Processing Program
View GrassyField.java
void setup() {
size(640, 360);
}
void draw() {
colorMode(HSB);
// Draw blue sky
background(134, 74, 255);
You can’t perform that action at this time.