Skip to content

Instantly share code, notes, and snippets.

ˇÿˇ‡JFIFˇ‚¯ICC_PROFILEËapplmntrRGB XYZ ◊acspAPPLˆ÷”-applrXYZ,gXYZ@bXYZTwtpthchad|,rTRC®gTRC∏bTRC»vcgtÿndinÏ>desc,ddscmê˛mmodê(cprt∏-XYZ n¸= XYZ b≈´µÎXYZ %c™$XYZ ÛRœsf32 BfiˇˇÛ&í˝ëˇˇ˚¢ˇˇ˝£‹¿lcurvÕcurvÕcurvÕvcgt¯Òıπ‚
 ó –
Ò~ºÏu≠‚`ùŸYéÃL Å!æ#F$h%r&•(;)?)º*Q+-;/70<18213256%6´7)8-9ÿ; ;™<3=ø?@¸B÷D!E≠F„GÒIJ°K÷LÊNOñP»Q–RÃS…T∆UƒV¡WæXºYπZ∑[¥\©]Å^&^fl_±`•a£b°cüdùeúfögòhóiïjîkílëmênéoçpyq
q±råsâtáuávÜwÜx|yyùzÑ{Ñ|Ñ}Ñ~ÄéÄëÇÉÉÖÑåÜÜáààAàÍâãääããååççééèèêëëíííììúîóïôñõóòòòÆô°ö£õ§úüù*ù≈ûÆü؆≤°¥¢©£:£‚§¿•¡¶ƒß«®»©µ™P´´⁄¨Ÿ≠›Æ‡Ø‰∞„±»≤l≥&≥˛¥˙µ˛∂˚∑⁄∏ÖπC∫ªºΩΩÒæ£øc¿=¡6¬;√5ƒƒÀ≈É∆^«X»^…c iÀnÃiÕDŒŒÆœê–ê—ñ“õ”ú‘x’,’…÷ª◊¿ÿ∆ŸÕ⁄”€⁄‹·›‡firflflÓ‡•·`‚‚™„‰¢Ê)Á˘Ë≥ÈxÍUÎRÏZÌaÓiÔqyÒÅÚâÛëÙôıòˆu˜4˜fi¯∆
@brachbach
brachbach / elicitMetaculusBookmarklet.js
Created May 30, 2020 17:39
Elicit Metaculus Bookmarklet
try {
var qData = window.metacData.question;
var qInfo = qData.possibilities;
var genericError = "For now, elicit only works for numerical questions on a linear scale.";
if (qInfo.type === "binary") {
alert("This is a binary question. " + genericError);
} else if (qInfo.format === "date") {
alert("This is a date question. " + genericError);
} else if (qInfo.scale.deriv_ratio !== 1) {
@brachbach
brachbach / bookmarklet.md
Last active May 25, 2020 20:00
Bookmarklet: answer Metaculus question with Elicit

[bookmarket](javascript:function() {var qData = window.metacData.question;var qInfo = qData.possibilities;if (qInfo.type !== "continuous" || qInfo.format !== "num" || qInfo.scale.deriv_ratio !== 1) { return alert("Elicit only works for numerical questions on a linear scale (for now)");} var qId = window.location.href.match(/metaculus.com/questions/(\d+)//)[1]; window.location = "http://elicit.ought.org/builder?q_id=" + qId;}())

@brachbach
brachbach / codenames-ai.js
Created May 17, 2020 05:42
Codenames "AI"
var jq = document.createElement('script');
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
// ... give time for script to load, then type (or see below for non wait option)
jQuery.noConflict();
const flip = (p=0.5) => {
return Math.random() < p
}
We can make this file beautiful and searchable if this error is corrected: It looks like row 5 should actually have 9 columns, instead of 2 in line 4.
Entity,Date,Source URL,Source label,Notes,Cumulative total,Daily change in cumulative total,Cumulative total per million,Daily change in cumulative total per million
Australia - units unclear,2020-03-22,https://www1.health.gov.au/internet/main/publishing.nsf/Content/novel_coronavirus_2019_ncov_weekly_epidemiology_reports_australia_2020.htm,Australian Department of Health,,143056,,5632.53024026095,
Australia - units unclear,2020-03-29,https://www1.health.gov.au/internet/main/publishing.nsf/Content/novel_coronavirus_2019_ncov_weekly_epidemiology_reports_australia_2020.htm,Australian Department of Health,They say 'Number of tests performed'. Unclear but probably means people tested based on the fact they then report the share of these who tested postitive in brackets,211261,,8317.95919841018,
Australia - units unclear,2020-04-02,https://www.covid19data.com.au/testing,Federal Department of Health,Most recent figure provided by Federal Department of Health.,261000,,10276.3281002412,
Australia - units unclear,2020-
Year Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
1948 3.4 3.8 4.0 3.9 3.5 3.6 3.6 3.9 3.8 3.7 3.8 4.0
1949 4.3 4.7 5.0 5.3 6.1 6.2 6.7 6.8 6.6 7.9 6.4 6.6
1950 6.5 6.4 6.3 5.8 5.5 5.4 5.0 4.5 4.4 4.2 4.2 4.3
1951 3.7 3.4 3.4 3.1 3.0 3.2 3.1 3.1 3.3 3.5 3.5 3.1
1952 3.2 3.1 2.9 2.9 3.0 3.0 3.2 3.4 3.1 3.0 2.8 2.7
1953 2.9 2.6 2.6 2.7 2.5 2.5 2.6 2.7 2.9 3.1 3.5 4.5
1954 4.9 5.2 5.7 5.9 5.9 5.6 5.8 6.0 6.1 5.7 5.3 5.0
1955 4.9 4.7 4.6 4.7 4.3 4.2 4.0 4.2 4.1 4.3 4.2 4.2
1956 4.0 3.9 4.2 4.0 4.3 4.3 4.4 4.1 3.9 3.9 4.3 4.2
@brachbach
brachbach / hello_world.py
Created August 4, 2019 07:17
Hello World Examples
class HelloWorld:
def __init__(self, name):
self.name = name.capitalize()
def sayHi(self):
print "Hello " + self.name + "!"
hello = HelloWorld("world")
hello.sayHi()