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
#Matthias Pall Gissurarson/Tritlo's Assembly Compiler for the DCPU-16 22. april 2012 | |
#Use at your own risk. | |
import sys | |
import argparse | |
#Tekur inn hex int, skilar lista af lengd n | |
def hexToBin(hexint, n): | |
v = int(hexint,16) | |
l = [0]*n |
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
#include <stdio.h> | |
#include <time.h> | |
#ifdef __unix__ | |
int clear() | |
{ | |
system("clear"); | |
return 0; | |
} | |
#elif defined _WIN32 |
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
# Matthias Pall Gissurarson 26. jul 2012 | |
#Copyright (C) 2012 Matthías Páll Gissurarson | |
#Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
#The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
#THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM |
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
import XMonad | |
--Fyrir gnomepanel | |
import XMonad.Config.Gnome | |
import XMonad.Hooks.ManageDocks | |
import XMonad.Util.Run(spawnPipe) | |
import System.IO | |
import XMonad.Hooks.DynamicLog |
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
#Copyright (C) 2012 Matthías Páll Gissurarson | |
#Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
#The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
#THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWA |
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
#!/usr/bin/python | |
#encoding utf-8 | |
import sys, os | |
from itertools import takewhile | |
def getFuncs(filename, funcDef = "def "): | |
lines = open(filename,'r').readlines() | |
funcDefIn = lambda line: True if line.strip().startswith(funcDef) else False | |
funcs = map(lambda i: [lines[i]] + list(takewhile(lambda x: not funcDefIn(x),lines[i+1:])),filter(lambda i: funcDefIn(lines[i]),range(len(lines)))) | |
# grabs lines until start of next func/end of file lines where functions start |
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
module Helpers.Heroku (herokuConf) where | |
import Prelude | |
import Data.ByteString (ByteString) | |
import Data.Text (Text) | |
import Data.Text.Encoding (encodeUtf8) | |
import Database.Persist.Postgresql (PostgresConf(..)) | |
import Web.Heroku (dbConnParams) | |
import qualified Data.Text as T |
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
//PlyReader.js (C) 2014 Matthias Pall Gissurarson. | |
//Partially based on https://github.com/gnomeby/canvas3D, which has no License. | |
/* | |
The MIT License (MIT) | |
Copyright (c) 2014 Matthias Pall Gissurarson | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights |
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
map D scrollFullPageDown | |
map E scrollFullPageUp | |
map <leader>bh previousTab | |
map <leader>bl nextTab | |
map <leader>bn :tabnew<CR> | |
map <leader>bd :execute x<CR> | |
let mapleader="<Space>" | |
map <C-e> E | |
map <C-d> D | |
map <C-u> e |
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
### Keybase proof | |
I hereby claim: | |
* I am tritlo on github. | |
* I am mpgis (https://keybase.io/mpgis) on keybase. | |
* I have a public key whose fingerprint is 050D 101B 1677 E442 C1E1 7659 F365 878C C03C DDFD | |
To claim this, I am signing this object: |
OlderNewer