Skip to content

Instantly share code, notes, and snippets.

View summerofgeorge's full-sized avatar
👼

George Mount summerofgeorge

👼
View GitHub Profile
@ncalm
ncalm / excel-lambda-RANDSEQUENCE.txt
Last active June 15, 2023 09:41
This Excel lambda function produces an increasing sequence of non-consecutive integers
/*
RANDSEQUENCE
Inputs:
- numbers: the length of the sequence to be produced
- max_between: the maximum difference between consecutive integers
Note: the minimum difference between one row and the next is assumed to be 1.
*/
@slopp
slopp / penguins.csv
Created March 31, 2021 20:07
Palmer Penguins Dataset as CSV
rowid species island bill_length_mm bill_depth_mm flipper_length_mm body_mass_g sex year
1 Adelie Torgersen 39.1 18.7 181 3750 male 2007
2 Adelie Torgersen 39.5 17.4 186 3800 female 2007
3 Adelie Torgersen 40.3 18 195 3250 female 2007
4 Adelie Torgersen NA NA NA NA NA 2007
5 Adelie Torgersen 36.7 19.3 193 3450 female 2007
6 Adelie Torgersen 39.3 20.6 190 3650 male 2007
7 Adelie Torgersen 38.9 17.8 181 3625 female 2007
8 Adelie Torgersen 39.2 19.6 195 4675 male 2007
9 Adelie Torgersen 34.1 18.1 193 3475 NA 2007
import html2markdown
with open('wiki.html', 'r') as f:
content = f.read()
markdown_content = html2markdown.convert(content)
with open('wiki.md', 'w') as f:
f.write(markdown_content)
@benjaminEwhite
benjaminEwhite / script.md
Created April 4, 2019 15:40
Script for third capstone presentation for Thinkful's data analytics program

Running the capstone 3 presentation as an evaluator

For their third and final capstone, students are asked to present the findings of the open-ended business research they do, identifying their own dataset.

This presentation is open to other members of the Thinkful community, but you should play the role of emcee, which means that you should introduce the student, then tell everyone the format ("Sara will present her research and afterwards she'll take questions and answers").

Remind the student to share their screen and make their presentation deck viewable for the audience.

When the presentation is done you should ask a small number of impromptu follow up questions. Then open it up to the audience for questions.

@kauffmanes
kauffmanes / install_anaconda.md
Last active April 2, 2026 18:27
Install Anaconda on Windows Subsystem for Linux (WSL)

Thanks everyone for commenting/contributing! I made this in college for a class and I no longer really use the technology. I encourage you all to help each other, but I probably won't be answering questions anymore.

This article is also on my blog, too.

Note: $ denotes the start of a command. Don't actually type this.

Steps to Install Anaconda on Windows Ubuntu Terminal

  1. Install WSL (Ubuntu for Windows - can be found in Windows Store). I recommend the latest version (I'm using 18.04) because there are some bugs they worked out during 14/16 (microsoft/WSL#785)
  2. Go to https://repo.continuum.io/archive to find the list of Anaconda releases
  3. Select the release you want. I have a 64-bit computer, so I chose the latest release ending in x86_64.sh. If I had a 32-bit computer, I'd select the x86.sh version. If you accidentally try to install the wrong one, you'll get a warning in the terminal. I chose `Ana
@kxzk
kxzk / dask_read.py
Last active March 29, 2022 18:26
reading in multiple csv in dask
import dask.dataframe as dd
df = dd.read_csv('*.csv')
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@agounaris
agounaris / word_count_notebook.py
Created April 28, 2017 23:21
Word count of markdown jupyter notebook cells
import io
from IPython.nbformat import current
with io.open(filepath, 'r', encoding='utf-8') as f:
nb = current.read(f, 'json')
word_count = 0
for cell in nb.worksheets[0].cells:
if cell.cell_type == "markdown":
word_count += len(cell['source'].replace('#', '').lstrip().split(' '))
{
"monday": {
"temperature_high": 67,
"temperature_low": 61,
"humidity": 79,
"description": "beautiful",
"wind": 17
},
"tuesday": {
"temperature_high": 63,