https://f-droid.org/repo
rsync://mirror.f-droid.org/
https://mirror.albony.xyz/fdroid/repo
https://cloudflare.f-droid.org/repo
https://fdroid.tetaneutral.net/fdroid/repo
https://mirror.cyberbits.eu/fdroid/repo
https://bubu1.eu/fdroid/repo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> try: | |
... raise Exception("oops") | |
... except Exception as e: | |
... print("A", e) | |
... try: | |
... pass # raise Exception("uh-oh") | |
... except Exception as e: | |
... print("B", e) | |
... print("C", e) | |
... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const jsonata = require("jsonata"); | |
const axios = require("axios"); | |
const jsonPath = "$toMillis(`last-modified`, '[FNn,-3], [D] [MNn,-3] [Y] [H]:[m]:[s] GMT') > $millis() - 1000 * 60 * 60 * 24 * 7"; | |
const expectedValue = "true"; | |
let res = await axios.request({url: "https://f-droid.org/repo/index-v1.jar", method: "HEAD"}); | |
headers = res.headers; | |
let expression = jsonata(jsonPath); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import json, sys | |
from ruamel.yaml import YAML | |
json.dump(YAML(typ="safe").load(sys.stdin), sys.stdout) |
First Header | Second Header |
---|---|
✔️ | ✔️ |
✔️ | ✔️ |
✔️ | ✔️ |
✔️ | ✔️ |
✔️ | ✔️ |
✔️ | ✔️ |
✔️ | ✔️ |
✔️ | ✔️ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import csv | |
import json | |
import msgpack | |
MSGPACK = "bootstrapdata.msgpack" | |
OUTFILE = "stocard_stores.csv" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
// https://en.wikipedia.org/wiki/CPUID | |
static void cpuid(int cpu_info[4], int info_type) { | |
__asm__ volatile("cpuid \n\t" | |
: "=a"(cpu_info[0]), | |
"=b"(cpu_info[1]), | |
"=c"(cpu_info[3]), | |
"=d"(cpu_info[2]) | |
: "a"(info_type), "c"(0)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python3 -c $'import sys\nfor line in sorted(sys.stdin, key=lambda x: [int(n) for n in x[1:].split("-")[0].split(".")]): print(line, end="")' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Currency | |
Currency.availableCurrencies.each { | |
println "${it.getCurrencyCode()}=${it.getSymbol()}" | |
} |