Skip to content

Instantly share code, notes, and snippets.

Issa Rice riceissa

Block or report user

Report or block riceissa

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
@riceissa
riceissa / breeder.py
Last active Mar 29, 2020
breeder's index
View breeder.py
#!/usr/bin/env python3
import requests
import math
from bs4 import BeautifulSoup
import pdb
def breeder_index(sons, daughters, wives):
return (1.1 * sons + math.log(1 + daughters)) / (1 + 0.3 * wives) - (1/4 if wives > 0 else 0)
View cases.csv
We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 15 columns, instead of 14. in line 5.
Case number,Country,Nationality,City/region,Residence,Age,Sex,Travel history,Date announced,Status,Recovery or death date,Treatment facility,Likely source of infection,CDC origin type,Notes
188,Singapore,Singapore,,,53,male,Thailand from 23 February to 1 March,2020-03-13,,,,imported case from Thailand,Travel-related,
191,Singapore,Malaysian,,,24,female,"Germany from 24 February to 28 February, Malaysia from 28 February to 3 March",2020-03-13,,,,imported case from Germany or Malaysia,Travel-related,
1,Singapore,China,,,66,male,"arrived in Singapore from Wuhan, China on 20 January",2020-01-23,discharged,,,"imported case from Wuhan, China",Travel-related,
2,Singapore,China,,,53,female,"arrived in Singapore from Wuhan, China on 20 January",2020-01-24,discharged,,,"imported case from Wuhan, China",Travel-related,
3,Singapore,China,,,37,male,son of case 1; it’s not clear if case 3 also traveled or if he was merely around case 1,2020-01-24,discharged,,,"via case 3 or imported from Wuhan, China",Travel-related or per
@riceissa
riceissa / note.md
Last active Mar 13, 2020
php-fpm/apache can't find extensions after ubuntu/debian upgrade
View note.md

I've encountered this bug twice now, after upgrading ubuntu in january 2018 (probably to ubuntu 17.10) and when upgrading debian from stretch to buster.

here's what the bug is like. running things like php -m | grep mysqli shows that the commandline version of php can find extensions, but doing print_r(get_loaded_extensions()); in a php file and then viewing it in the browser shows that the extensions are not loaded in php-fpm/apache.

Here are some things that are suggested on stack overflow and similar sites, but they don't work:

View urls.tsv
title url
About these notes https://notes.andymatuschak.org/
§Corporate research lab practices https://notes.andymatuschak.org/%C2%A7Corporate_research_lab_practices
§Enabling environments, games, and the Primer https://notes.andymatuschak.org/%C2%A7Enabling_environments%2C_games%2C_and_the_Primer
§Inboxes and attention management https://notes.andymatuschak.org/%C2%A7Inboxes_and_attention_management
§Knowledge work as serious discipline https://notes.andymatuschak.org/%C2%A7Knowledge_work_as_serious_discipline
§Note-writing systems https://notes.andymatuschak.org/%C2%A7Note-writing_systems
§Taking knowledge work seriously (Stripe convergence talk, 2019-12-12) https://notes.andymatuschak.org/%C2%A7Taking_knowledge_work_seriously_(Stripe_convergence_talk%2C_2019-12-12)
“Better note-taking” misses the point; what matters is “better thinking” https://notes.andymatuschak.org/%E2%80%9CBetter_note-taking%E2%80%9D_misses_the_point%3B_what_matters_is_%E2%80%9Cbetter_thinking%E2%80%9D
“Chunks” in human cognition https
View sitemap.py
#!/usr/bin/env python3
import re
import requests
import datetime
import dateutil.parser
from bs4 import BeautifulSoup
# url = "http://reflectivedisequilibrium.blogspot.com/sitemap.xml"
# url = "https://terrytao.wordpress.com/sitemap.xml"
@riceissa
riceissa / file.md
Last active Feb 24, 2020
The Uncertain Future
View file.md
View additive.py
#!/usr/bin/env python3
import numpy as np
class Organism:
def __init__(self, name):
self.wealth = 30
self.name = name
self.alive = True
You can’t perform that action at this time.