Skip to content

Instantly share code, notes, and snippets.

View bjornkri's full-sized avatar

Björn Kristinsson bjornkri

View GitHub Profile
@bjornkri
bjornkri / reading.csv
Last active September 20, 2024 10:22
Reading log
date id title progress page_scaling scaled_progress
2012-12-25 1 Distant Mirror 125 20 6
2012-12-28 1 Distant Mirror 592 20 29
2012-12-29 1 Distant Mirror 392 20 19
2012-12-30 1 Distant Mirror 187 20 9
2012-12-31 1 Distant Mirror 170 20 8
2013-01-01 1 Distant Mirror 349 20 17
2013-01-02 1 Distant Mirror 229 20 11
2013-01-03 1 Distant Mirror 40 20 2
2013-01-04 1 Distant Mirror 175 20 8
@bjornkri
bjornkri / README.md
Created September 18, 2024 10:12
Named CSS colours

A list of named CSS colours

From this gist, but with duplicates removed (aqua, fuchsia)

@bjornkri
bjornkri / Smartara.user.js
Created May 1, 2013 07:01
Smartara MBL (greasemonkey)
// ==UserScript==
// @name Smartara
// @namespace smartara
// @description Smartara MBL
// @include http://www.mbl.is/*
// @version 1
// @require http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js
// @grant none
// ==/UserScript==
@bjornkri
bjornkri / yfirlestur.py
Created January 19, 2013 21:22
Sjálfvirkar lagfæringar fyrir prófarkalestur á http://profork.rafbokavefur.is
# -*- coding: utf-8 -*-
import sys
import re
RULES = [
(r'\n\s+', r'\n'), # Fjarlægja auka línubil fyrir
(r'\s+\n', r'\n'), # og eftir línuskil
(r'-\n([^\s]+)\s', r'\1\n'), # Sameina orð skipt milli lína
(r'—', r'--'), # Breyta þankastrikum í '--'
(r'[co]e', r'æ'), # Breyta ce og oe í 'æ'
@bjornkri
bjornkri / git_bash_profile
Created November 6, 2012 15:05
My git enabled bash prompt. Overrides parse_git_branch from git-completion (required)
RED="\[\033[0;31m\]"
GREEN="\[\033[0;32m\]"
DEFAULT="\[\033[00m\]"
GIT_PS1_SHOWDIRTYSTATE=true
PS1="[ $GREEN\W$DEFAULT ]$RED\$(__git_ps1)$DEFAULT\$ "