Skip to content

Instantly share code, notes, and snippets.

View antonva's full-sized avatar

Anton Vilhelm Ásgeirsson antonva

  • Reykjavik
View GitHub Profile
N brute sorting
---------------------------------
150 0.035 0.033
200 0.045 0.038
300 0.070 0.153
400 0.165 0.256
800 1.437 0.671
1600 11.693 0.542
3200 94.161 2.064
6400 754.605 8.708
//Steam startup option: -novid -console -high -threads 4
//Network Commands
rate "128000"
cl_interp "0"
cl_interp_ratio "2"
cl_cmdrate "128"
cl_updaterate "128"
cl_showfps "1"
#!/usr/bin/sh
# A small step simplification of compiling with Vagrant.
vagrant ssh << _EOF_
cd /vagrant
make
exit
_EOF_
foo = 1
bar = 2
baz = 3
#einhver event loopa...
function return_var(var):
return var
@antonva
antonva / -
Created January 23, 2015 12:32
test
#!/usr/bin/bash
#Copyright (C) <2014> <Anton Vilhelm Ásgeirsson>
#
#
#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:
{ 'Anduliga': None,
'Diso': None,
'Eleu': None,
'HIP 59533': None,
'HR 7221': None,
'Heike': None,
'Holva': None,
'Kamorin': None,
'Lave': None,
'Mukusubii': None,
#!/usr/bin/bash
clear
echo -e '\E[37;30m'" _ _ "
echo -e '\E[37;30m'"__ ____ _| | | ____ _ "
echo -e '\E[37;30m'"\\ \\ / / _\` | | |/ / _\` |"
echo -e '\E[37;30m'" \\ V / (_| | | < (_| | "
echo -e '\E[37;30m'" \\_/ \\__,_|_|_|\\_\\__,_|"
#!/usr/bin/env python3
def compr(string_list):
# conversion yfir i tolur.
# l thvi ad 'arrays' i python eru i raun listar
l = []
for i in string_list.split():
l.append(int(i))
#compression list
#!/usr/bin/env python3
def comp(s):
l = []
for i in s.split():
l.append(int(i))
o = ""
for i in range(0,len(l)):
if i == 0: