I hereby claim:
- I am fuglede on github.
- I am fuglede (https://keybase.io/fuglede) on keybase.
- I have a public key whose fingerprint is 4560 36D0 6FED EABD 4357 FBEB EFCA 098B EBC6 A163
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# Implementation of this algorithm: | |
# https://www.reddit.com/r/mathriddles/comments/2v6eaj/doubling_and_adding_1/coey1j7 | |
# | |
# Save the code as filename.py. Then run something like | |
# python filename.py 8 1 | |
import sys | |
def getL(k): | |
L=1 |
""" | |
A game where two players take turns choosing different numbers in | |
1, ..., 9 until one player has chosen three numbers that sum to 15, | |
thereby winning the game. If all numbers are chosen without any player | |
winning, the game is declared a tie. | |
""" | |
import itertools | |
// How to play with your friends on agar: | |
// 1) Paste the script below into the console. | |
// 2) Find some entries with the same IP. | |
// 3) Run one of the commands yourself and give the | |
// others to the people you want to play with | |
// 4) Repeat until you end up on the same server. | |
function makeServerList() { | |
jQuery.ajax("https://m.agar.io/", { | |
success: function(a) { |
aabenraa.dk | |
aalborg.dk | |
aarhus.dk | |
aeroekommune.dk | |
albertslund.dk | |
alleroedkommune.dk | |
assens.dk | |
ballerup.dk | |
billund.dk | |
brk.dk |
#!/usr/bin/env python | |
""" | |
This script contains a function to create RSA key pairs whose base64 | |
representation contains a prescribed string. I can't claim originality of | |
the idea behind this as I discovered it originally on /r/crypto some time | |
ago. I wish I remembered who the original author was, so I could give credit | |
where it is due: please let me know if you know about the original. | |
The keys can then be embedded into X.509 certificates for use in SSL |
#!/bin/bash | |
LDAPSERVER="ldap://crtdir.certifikat.dk"; | |
OUTPUTFILE="nemidcert.cer"; | |
INTERMEDIATEFILE="intermediate.cer"; | |
COMBINEDFILE="combined.cer"; | |
# Check for ldapsearch and curl | |
command -v ldapsearch >/dev/null 2>&1 || { | |
echo "This script needs ldapsearch. In Debian 8, you can get this through 'apt install ldapscripts'." >&2; |
We compare the run times of two algorithms for calculating Jones polynomials, as currently contained in sage. One goes through computing Markov traces of the Jones representation of braids whose trace closures are the relevant links. This is contained in braid.py
. The other uses the Kauffman bracket of a PD code of the link. This is contained in link.py
. We will refer to these two algorithms as the "Jones representation" and the "State sum" algorithm respectively.
At the end of the day, we want a decision algorithm which takes a link, given either by its PD code or as the closure of a braid, and tells us which of the two algorithms one should use. Below we illustrate that in the case of braid closures, the output of this decision should depend on the number of crossings in the braid, the number of strands, as well as the dynamical complexity of the braid.