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
<p><em>Dette innlegget ble originalt publisert på <div xmlns:cc="http://creativecommons.org/ns#" xmlns:dct="http://purl.org/dc/terms/" about="http://knutmelvaer.no/colophon/"><span property="dct:title">knutmelvaer.no</span> (<a rel="cc:attributionURL" property="cc:attributionName" href="http://knutmelvaer.no">Knut Melvær</a>) / <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">CC BY-NC-SA 4.0</a></div></em></p> | |
<p>Heisann.</p> | |
<p><em>Jeg heter Knut og jeg er religionsviter</em>. Det vil si, jeg forsøker hver dag å være en religionsviter. Innimellom prøver jeg også å være <a href="http://github.com/kmelve">webutvikler</a>, <a href="http://twitter.com/kmelve">@kmelve</a>, ektemann, <a href="http://instagram.com/kmelve">hobbytømrer</a>, av og til er jeg også «slave av systemet», «politisk vaklende» eller «lat». Formelt sett er jeg utdannet religionsviter (med mastergrad i religionsvitenskap fra Universitetet i Bergen), og kan gjennom stillingsbeskrivelsen, kurs og Brønnøysundsregisteret |
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
# -*- coding: utf-8 -*- | |
import os | |
# make list with the files | |
def loop_files(directory): | |
files = [] | |
for fn in os.listdir(directory): # loop through directory | |
if(fn.endswith('txt')): # only pick text files | |
files.append(fn) # append filenames to list |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>Nyeste artikler fra HF</title> | |
</head> | |
<body> | |
<pre> |
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
echo "$1" | iconv -f utf-8 | pandoc -f markdown -t latex --no-wrap | iconv -t utf-8 |
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
Drupal.behaviors.ndla_utils_gtm = function() { | |
var gtm_id = Drupal.settings.gtm_id; | |
jQuery('body').prepend('<noscript><iframe src="//www.googletagmanager.com/ns.html?id=' + gtm_id + '" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>' + '<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({\'gtm.start\': new Date().getTime(),event:\'gtm.js\'});var f=d.getElementsByTagName(s)[0],' + 'j=d.createElement(s),dl=l!=\'dataLayer\'?\'&l=\'+l:\'\';j.async=true;j.src=\'//www.googletagmanager.com/gtm.js?id=\'+i+dl;f.parentNode.insertBefore(j,f);' + '})(window,document,\'script\',\'dataLayer\',\'' + gtm_id + '\');<\/script>'); | |
};; |
Get the slides from my talk in the old fashioned portable document format here
- The National Library of Norway
- The NL search API
- My projects: PDF Search, NB Graph and NBngram
- Access the internett through the shell with wget
- Script Chrome with iMacros for tedious and repetitive tasks
- Open Refine (previously Google Refine) lets you take controll and normalize huge sets of data.
- Regex101 is awesome tool for learning and figuring out regular expressions
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
table, th, td, tr { | |
border: none; | |
} | |
table { | |
width: 100%; | |
margin-bottom: 1em; | |
border-bottom: 1px solid #a0a0a0; | |
} | |
th, tr:first-of-type { | |
font-family: 'Gotham A','Gotham B', Helvetica, Arial, sans-serif; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"/> | |
<title>Looping</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script> | |
<script src="./suite.js"></script> | |
</head> | |
<body> | |
<h1>Open the console to view the results</h1> |