Skip to content

Instantly share code, notes, and snippets.

View haakenlid's full-sized avatar
🕺

Håken Lid haakenlid

🕺
View GitHub Profile
@haakenlid
haakenlid / encounter-sets.md
Last active February 20, 2023 10:15
ArkhamDB scenario encounter sets
Campaign Scenario Encounter Sets Link
Night of the Zealot The Gathering The Gathering, Ancient Evils, Chilling Cold, Ghouls, Rats, Striking Fear link
Night of the Zealot The Midnight Masks The Midnight Masks, Chilling Cold, Cult of Umôrdhoth, Dark Cult, Locked Doors, Nightgaunts link
Night of the Zealot The Devourer Below The Devourer Below, Agents of Cthulhu, Agents of Hastur, Agents of Shub-Niggurath, Agents of Yog-Sothoth, Ancient Evils, Cult of Umôrdhoth, Dark Cult, Ghouls, Striking Fear link
Return to Night of the Zealot The Gathering Ancient Evils, C
We can't make this file beautiful and searchable because it's too large.
Valuedrug,Valuetime,Valueage,Valuegender,Valuegeography,SumAntall_unike_pasienter,SumPrevalens_pr_1000,SumBefolkning,SumSum_AUP,SumSum_DDD
ADHD-midler,2004,Alle aldre,Kvinne,Akershus,279,1.122402182046393,248574,1577670.875,106182.9921875
ADHD-midler,2004,Alle aldre,Kvinne,Aust-Agder,112,2.152356061188408,52036,683861.5625,39298.08203125
ADHD-midler,2004,Alle aldre,Kvinne,Buskerud,214,1.738748913281929,123077,1695184.375,80037.015625
ADHD-midler,2004,Alle aldre,Kvinne,Finnmark,53,1.473654942305019,35965,269053.84375,18277.326171875
ADHD-midler,2004,Alle aldre,Kvinne,Hedmark,114,1.196260113120035,95297,737625.8125,51324.5
ADHD-midler,2004,Alle aldre,Kvinne,Hordaland,146,0.650125572199562,224572,812118.875,55968.21484375
ADHD-midler,2004,Alle aldre,Kvinne,Møre og Romsdal,164,1.343491439338085,122070,640918.9375,46519.3671875
ADHD-midler,2004,Alle aldre,Kvinne,Nordland,189,1.595636903957855,118448,856914.0625,51790.11328125
ADHD-midler,2004,Alle aldre,Kvinne,Nord-Trøndelag,69,1.074799838001184,64198,434147.125,3
@haakenlid
haakenlid / reseptregisteret.csv
Created February 18, 2018 16:55
Reseptregisteret
We can't make this file beautiful and searchable because it's too large.
Valuedrug,Valuetime,Valueage,Valuegender,Valuegeography,SumAntall_unike_pasienter,SumPrevalens_pr_1000,SumBefolkning,SumSum_AUP,SumSum_DDD
ADHD-midler,2004,Alle aldre,Kvinne,Akershus,279,1.122402182046393,248574,1577670.875,106182.9921875
ADHD-midler,2004,Alle aldre,Kvinne,Aust-Agder,112,2.152356061188408,52036,683861.5625,39298.08203125
ADHD-midler,2004,Alle aldre,Kvinne,Buskerud,214,1.738748913281929,123077,1695184.375,80037.015625
ADHD-midler,2004,Alle aldre,Kvinne,Finnmark,53,1.473654942305019,35965,269053.84375,18277.326171875
ADHD-midler,2004,Alle aldre,Kvinne,Hedmark,114,1.196260113120035,95297,737625.8125,51324.5
ADHD-midler,2004,Alle aldre,Kvinne,Hordaland,146,0.650125572199562,224572,812118.875,55968.21484375
ADHD-midler,2004,Alle aldre,Kvinne,Møre og Romsdal,164,1.343491439338085,122070,640918.9375,46519.3671875
ADHD-midler,2004,Alle aldre,Kvinne,Nordland,189,1.595636903957855,118448,856914.0625,51790.11328125
ADHD-midler,2004,Alle aldre,Kvinne,Nord-Trøndelag,69,1.074799838001184,64198,434147.125,3
@haakenlid
haakenlid / compile_typedefs.py
Last active September 6, 2017 23:25
ramda typedefs
import requests, re, json
url = 'https://raw.githubusercontent.com/ramda/ramda/master/dist/ramda.js'
code = requests.get(url).text
def parse_jsdoc(doc='', name=''):
doc = re.sub(r'^\s*\*[ \/]?', '', doc, flags=re.M)
sig = re.search(r'@sig (.+)', doc)
if sig:
sig = sig.groups()[0]
private = bool(re.search(r'@private', doc))
@haakenlid
haakenlid / ramda.doc_comments.json
Last active September 3, 2017 10:50
Using tern condense to make definition files for ramda.js
// node_modules/tern/bin/condense --plugin doc_comment={strong: true} node_modules/ramda/dist/ramda.js > ramda.doc_comments.json
{
"!name": "node_modules/ramda/dist/ramda.js",
"R": {
"__": {
"@@functional/placeholder": {
"!type": "bool",
"!span": "1003[35:15]-1029[35:41]"
},
@haakenlid
haakenlid / Kdbv-0.py
Created September 2, 2017 11:40
null created by haakenlid - https://repl.it/Kdbv/0
data = [(237146768, u'43 S LUBEC RD', u'LUBEC', u'ME'), (455414678, u'PO BOX 41', u'LUBEC', u'ME')]
record_separator = '\n\n------------\n\n'
items = ('\n'.join('- %s' % item for item in tup) for tup in data)
print(record_separator.join(items))
@haakenlid
haakenlid / yaml.snippets
Last active May 2, 2016 10:42
vim Ultisnips tmuxinator layout snippet
# Ultisnips snippet for getting the current tmux layout.
# Use it in tmuxinator config files.
snippet layout: "tmux layout" iA
layout: ${1:`tmux lsw -F '#{window_active} #{window_layout}'|awk '/^1/{print $2}'`}
endsnippet
@haakenlid
haakenlid / jsx-stateless.snippet
Last active April 4, 2016 11:46
Ultisnip for jsx stateless function with proptypes
global !p
from snippet_helpers import *
def expand_proptypes(props):
if not props:
return ''
pattern = '{}: React.PropTypes.any'
props = (prop.strip() for prop in props.split(','))
return ',\n '.join(pattern.format(prop) for prop in props)
endglobal
@haakenlid
haakenlid / index.html
Created March 18, 2016 22:19
redux resize-box
<div id=app>
</div>