Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Human Clock</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
@marco-brandizi
marco-brandizi / moon_mission_simulation.py
Last active April 3, 2026 19:41
Gambler Fallacy Simulator
import random
from multiprocessing import Pool, cpu_count
"""
# The Gambler Fallacy Simulator
I wrote this code in response to a moron claiming the Gambler Fallacy over the moon missions.
One version of this ridiculous argument (https://share.google/aimode/z5zvOGaO3obXcbmFr) goes
like this:
This file has been truncated, but you can view the full file.
{
"graphJSON": {
"nodes": [
{
"data": {
"annotation": "",
"conceptBorderColor": "black",
"conceptType": "Phenotype",
"pid": "",
"conceptSize": "18px",
#!/usr/bin/env python
from __future__ import print_function, absolute_import, division
import logging
import os
from errno import EACCES
from os.path import realpath
from threading import Lock
from threading import Thread
from time import sleep
# Support for background execution
alive_flag = True
def alive_msg_task ():
while alive_flag:
sleep ( 30 )
print ( "Still working, please wait...", end = " ", flush = True )
print ( "\nDownload completed" )
PREFIX bk: <http://knetminer.org/data/rdf/terms/biokno/> PREFIX bkr: <http://knetminer.org/data/rdf/resources/>
PREFIX bka: <http://knetminer.org/data/rdf/terms/biokno/attributes/> PREFIX bkg: <http://knetminer.org/data/rdf/resources/graphs/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX owl: <http://www.w3.org/2002/07/owl#> PREFIX dc: <http://purl.org/dc/elements/1.1/>
PREFIX dcterms: <http://purl.org/dc/terms/> PREFIX agri: <http://agrischemas.org/>
PREFIX bioschema: <http://bioschemas.org/> PREFIX schema: <http://schema.org/>
SELECT ?pubTitle ?geneName ?scoreStr ?condLabel ?condTerm
{
?pub a agri:ScholarlyPublication;
#!/usr/bin/env bash
# Downloads multiple files available from an HTML URL, typically the web listing of a directory,
# as it is rendered by many web servers.
# ==> Requires lftp
#
set -e
# Example:
#  ./files-from-url.sh https://knetminer.com/downloads/agri-schemas/gxa/v202110/ gxa
package info.marcobrandizi.test.jdk11;
/*
* These deps are needed:
* org.apache.commons:commons-lang3:3.9
* com.machinezoo.noexception:noexception:1.3.2
*/
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;

Counts the data sources used in the wheat dataset. Try it [here][10].

PREFIX bk: <http://knetminer.org/data/rdf/terms/biokno/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bkg: <http://knetminer.org/data/rdf/resources/graphs/>

SELECT DISTINCT ?dataSource (COUNT (DISTINCT ?e) AS ?resources)
FROM bkg:wheat
{
var o = new Foo ("one");
map.put ( o, o )
...
var o1 = new Foo ( "one" )
...
var o2 = map.get ( o1 ) // fetches o if .equals()/.hashCode() tells that they're equal