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
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 |
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
//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" |
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/sh | |
# A small step simplification of compiling with Vagrant. | |
vagrant ssh << _EOF_ | |
cd /vagrant | |
make | |
exit | |
_EOF_ |
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
foo = 1 | |
bar = 2 | |
baz = 3 | |
#einhver event loopa... | |
function return_var(var): | |
return var |
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
test |
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/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: |
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
{ 'Anduliga': None, | |
'Diso': None, | |
'Eleu': None, | |
'HIP 59533': None, | |
'HR 7221': None, | |
'Heike': None, | |
'Holva': None, | |
'Kamorin': None, | |
'Lave': None, | |
'Mukusubii': None, |
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/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'" \\_/ \\__,_|_|_|\\_\\__,_|" | |
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/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 |
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/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: |