Skip to content

Instantly share code, notes, and snippets.

Pamela Fox pamelafox

Block or report user

Report or block pamelafox

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
pamelafox /
Created Dec 7, 2017
The pull request template for Woebot.

High-level description of change

Why you made these changes (how it helps us or our users)

Are there performance implications for this change?

REPLACE THIS: Please profile using time/timeEnd any potentially time-taking changes. Then profile using node profiler to identify what aspects take most time.

Have you added tests to cover this new/updated code?

pamelafox /
Created May 12, 2017
Google Apps Script for committing a file to Github Repo
/* A bare-bones GithubClient, just used for commits */
function GithubClient(owner, repo, username, passwordOrToken) {
this.owner = owner;
this.repo = repo;
this.username = username;
this.passwordOrToken = passwordOrToken;
pamelafox /
Last active Jan 28, 2018
Interview answers

A Khan Academy student asked me these questions as part of a school project.

  • What is the hardest part about making a website with javascript?

Hmm. It gets tricky once your website starts having a LOT of JavaScript - you have to truly make sure to keep it clean and well organized. Otherwise you end up with what we call "spaghetti code" - a jumble of code that might work but is so hard for you or anyone else to make sense of. It's even more important to organize your code if you're working with other people, so you make sure that you all organize your code the same way and that every bit of code goes in the place it belongs.

Another aspect that can be hard is performance, especially for websites that use a lot of JavaScript. Sometimes the browser slows down when it's trying to execute all the JavaScript, particularly if the code is requesting "repaints" of the browser window - if it's moving or changing visible things on the page. There are now a lot of tools that you can use to analyze the performance o

View hopper.css
body {
background: rgb(215, 250, 220);
font-family: sans-serif;
.header {
background-color: rgb(36, 89, 36);
color: white;
padding: 5px 10px;
View magnifico.html
<!DOCTYPE html>
<meta charset="utf-8">
<title>New Webpage</title>
<link rel="stylesheet" href="">
<script src="//"></script>
<script src=""></script>
<a class="image-link" href="">Open popup!</a>
pamelafox / slideshow.js
Last active Jun 29, 2016
View slideshow.js
* This function takes in a reference to a DOM element,
* assumes each of its children are <img> tags,
* and then makes a simple slideshow out of the images.
* @param container A DOM element
var slideShow = function(container) {
this.images = [];
this.curImage = 0;
for (i = 0; i < container.childElementCount; i++) {
pamelafox / programming_languages.sql
Last active Jun 2, 2018
View programming_languages.sql
/* Programming languages
Collected by:
CREATE TABLE languages(
name TEXT,
primary_developer TEXT,
launched INTEGER,
oop INTEGER /* Whether or not they're Object-oriented */
View nfl_picks.sql
1st 3 rounds of the NFL 2015 Draft
Collected by:
pick_number INTEGER,
name TEXT,
college TEXT,
View card_games_results.sql
/* Friendly Card Game Results:
During this past winter, a few friends got together every Wednesday night for a friendly game of cards. On some nights they'd play two games, but never the same game twice on the same night. The usual players were Spunky Sam, Marcimus, Winston, and Hopper. Sometimes, one of the friends couldn't make it, so there were only three players. But sometimes they'd call another friend to fill-in. In every game they played, the one with the hightest score was declared the winner. These are their results:
Created by:
date_played TEXT,
game_name TEXT,
player_name TEXT,
score INTEGER);
View winstons_donut_logs.sql
Winston's Donut logs
This table of logs shows how many donuts Winston eats at each year of his life,
plus any particular reason to explain his eating habits.
Collected by:
CREATE TABLE winstons_donut_logs (
status TEXT,
years_old INTEGER,
You can’t perform that action at this time.