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
// ==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== |
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 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 í 'æ' |
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
RED="\[\033[0;31m\]" | |
GREEN="\[\033[0;32m\]" | |
DEFAULT="\[\033[00m\]" | |
GIT_PS1_SHOWDIRTYSTATE=true | |
PS1="[ $GREEN\W$DEFAULT ]$RED\$(__git_ps1)$DEFAULT\$ " |