Skip to content

Instantly share code, notes, and snippets.

View stella-lu's full-sized avatar
Doing my magic

Stella Lu stella-lu

Doing my magic
View GitHub Profile
@gibbbone
gibbbone / export_wikipedia_tables_to_pandas.py
Last active June 12, 2018 23:51 — forked from wassname/scrape_Wikipedia_tables.py
Procedure to scrape a table from wikipedia using python. Uses MediaWikiAPI to get page content. Allows for cells spanning multiple rows and/or columns. Outputs a Pandas dataframe.
# -*- coding: utf-8 -*-
"""
Procedure to scrape a table from wikipedia using python. Uses MediaWikiAPI to get page content.
Allows for cells spanning multiple rows and/or columns. Outputs a Pandas dataframe.
Page used for testing (second table in particular):
https://en.wikipedia.org/wiki/International_Phonetic_Alphabet_chart_for_English_dialects
"""
import pandas as pd
/* CS 61A Sp18 Grade Calculation Script */
/* Run in JS console at https://okpy.org/cal/cs61a/sp18 */
GRADES = ['F', 'D-', 'D', 'D+', 'C-', 'C', 'C+', 'B-', 'B', 'B+', 'A-', 'A', 'A+'];
BUCKETS = [0, 165, 170, 175, 180, 190, 200, 210, 230, 250, 270, 285, 298];
function log() {
document.querySelector('#log').innerHTML += [].slice.call(arguments).join('') + '\n';
}
* what it's like to not be technical in the industry
* what you do in tech that people forget is needed
* the most interesting thing you've worked on recently
* what your day-to-day is like
* must-have gifs for every techie
* horrible code from the past that shows I'm much better now
* the best music for hacking
* mistakes you've made that make you groan
* how you've made it at well-known companies
* self-care in the tech bubble