Skip to content

Instantly share code, notes, and snippets.

View AllenDowney's full-sized avatar

Allen Downey AllenDowney

View GitHub Profile
We can't make this file beautiful and searchable because it's too large.
Submission ID,What is your age?,How many cups of coffee do you typically drink per day?,Where do you typically drink coffee?,Where do you typically drink coffee? (At home),Where do you typically drink coffee? (At the office),Where do you typically drink coffee? (On the go),Where do you typically drink coffee? (At a cafe),Where do you typically drink coffee? (None of these),How do you brew coffee at home?,How do you brew coffee at home? (Pour over),How do you brew coffee at home? (French press),How do you brew coffee at home? (Espresso),How do you brew coffee at home? (Coffee brewing machine (e.g. Mr. Coffee)),How do you brew coffee at home? (Pod/capsule machine (e.g. Keurig/Nespresso)),How do you brew coffee at home? (Instant coffee),How do you brew coffee at home? (Bean-to-cup machine),How do you brew coffee at home? (Cold brew),How do you brew coffee at home? (Coffee extract (e.g. Cometeer)),How do you brew coffee at home? (Other),How else do you brew coffee at home?,"On the go, where do you typically purc
@AllenDowney
AllenDowney / pg4078.txt
Created July 8, 2023 18:51
Slightly modified version of The Picture of Dorian Gray from Project Gutenberg.
The Project Gutenberg EBook of The Picture of Dorian Gray, by Oscar Wilde
This eBook is for the use of anyone anywhere at no cost and with
almost no restrictions whatsoever. You may copy it, give it away or
re-use it under the terms of the Project Gutenberg License included
with this eBook or online at www.gutenberg.org
Title: The Picture of Dorian Gray
13 chapter version
X.1 % Morally acceptable
2001 40
2002 38
2003 44
2004 42
2005 45
2006 44
2007 47
2008 48
2009 49
from IPython.display import display, HTML
import time
import math
import re
# Created at: 23rd October 2018
# by: Tolga Atam
# v2.1.0 Updated at: 15th March 2021
# by: Tolga Atam
# from https://github.com/tolgaatam/ColabTurtle/blob/master/ColabTurtle/Turtle.py
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
void strsplit1(char *string, char sep, char *first, char *second) {
char *sep_ptr = strchr(string, sep);
int n = sep_ptr - string;
strncpy(first, string, n);
first[n] = '\0';
strcpy(second, sep_ptr+1);
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.