Jimmie special 29:-: En burk Kung Gustavs sardiner, serveras med en påse chips (60g) och en lättöl
This file contains 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
pip install flask | |
mkdir templates | |
mv main.jinja2 templates/ | |
AOC_TOKEN=<adventofcode.com session cookie> FLASK_APP=app flask run |
This file contains 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
# Males (B2: waist, C2: neck) | |
# Replace `height` with actual height | |
# for the imperial system, replace 30,3 with 36,76 | |
=86,01 * Log10(B2 - C2) - 70,041 * log10(height) + 30,3 | |
# Females (B2: waist, C2: neck, D2: hips) | |
# Replace `height` with actual height | |
# for the imperial system, replace 104,912 with 78,387 | |
=163,205 * Log10(B2 + D2 - C2) - 97,684 * Log10(height) - 104,912 |
This file contains 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
acronym, | |
applet, | |
basefont, | |
big, | |
center, | |
dir, | |
font, | |
isindex, | |
menu, | |
noframes, |
This file contains 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
""" | |
Podcast backup script | |
Parses an RSS feed from SOURCE_FILE and download all items to | |
DESTINATION_PATH. Downloads are done in parallel, for | |
PARALLEL_COUNT downloads at the time. | |
How to use | |
---------- |
This file contains 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
function encrypt (str) { | |
return str.replace(/([^aeiouöäå01-9])/gi, (c) => { return `${c}o${c}`; }); | |
} | |
function decrypt (str) { | |
return str.replace(/([^aeiouöäå01-9])o([^aeiouöäå01-9])/gi, (origin, first, last) => { | |
return (first == last)? first: origin; | |
}); | |
} |
This file contains 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
## OS X | |
Installing Radicale on OS X is almost as easy as it is for Linux or *BSD. | |
OS X comes with Python preinstalled, but not version 3. Go to [python.org](https://www.python.org/downloads/mac-osx/) and download the latest version of Python. Run the installer. | |
It is also possible to install Python 3 using `brew` by typing `brew install python3` in a Terminal window. | |
Then launch a Terminal window, and type: |
This file contains 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
(function (g) { | |
"use strict"; | |
var hijax; | |
hijax = function (method, uri, data, onSuccess, onError) { | |
var client = new XMLHttpRequest(); | |
if (onError == undefined) { | |
onError = function (status, response) { | |
alert('you have been found guilty of being in league with the devil ' + |
This file contains 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
var hijax = function (method, uri, callback) { | |
var client = new XMLHttpRequest(); | |
client.open(method, uri, true); | |
client.onload = function () { | |
if (client.status >= 200 && request.status < 400) { | |
callback(client.responseText); | |
} | |
}; |
This file contains 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
var results = 'hi bob123'; | |
results = results.replace(/bob\d+/, 'cooper'); |
NewerOlder