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
CREATE VIEW spell_names AS | |
SELECT name, min(level) as lvl | |
FROM dnd_spell | |
INNER JOIN dnd_spellclasslevel | |
ON dnd_spell.id = spell_id | |
WHERE dnd_spellclasslevel.character_class_id in (SELECT id FROM dnd_characterclass WHERE name ="Wizard" OR name = "Sorcerer") | |
GROUP BY name; | |
SELECT lvl, count(name) | |
FROM spell_names |
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
<canvas id="theCanvas" width="200" height="250" style="border: 1px solid black;"> | |
Sorry, but your browser does not support the HTML5 canvas tag. | |
</canvas> | |
<script> | |
"use strict"; | |
function drawEverything() { // This is not recyclable code. | |
var canvas = document.getElementById("theCanvas"); | |
var ctx = canvas.getContext("2d"); |
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
def hropmerkt(n) | |
if n <= 1 | |
return 1 | |
else | |
return n*hropmerkt(n-1) | |
end | |
end |
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
# Inefficient Python generator solution to: | |
# https://www.facebook.com/joladagatalnorda/posts/633189590143054 (Icelandic) | |
def funny_numbers(): | |
n = 9 # No need to check single-digit numbers | |
while True: | |
n += 1 | |
# Stringify for splitting | |
strung_n = str(n) | |
# Split | |
first, second = strung_n[:len(strung_n)/2], strung_n[len(strung_n)/2:] |
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
omp_samplesort.c | |
$ ./test 100000000 int32_t cpjss # Fudge 0.05 | |
g++;cpjss;int32_t;100000000;2.03846;1232.93;0.811077 | |
$ ./test 100000000 int32_t cpjss # Fudge 0.05 | |
g++;cpjss;int32_t;100000000;2.1591;1164.03;0.859081 | |
$ ./test 100000000 int32_t cpjss # Fudge 0.1 | |
g++;cpjss;int32_t;100000000;2.17768;1154.11;0.866472 | |
$ ./test 100000000 int32_t cpjss # Fudge 0.1 | |
g++;cpjss;int32_t;100000000;2.10032;1196.62;0.83569 |
Við á Íslandi búum ekki við sérstaklega gegnsætt þingsætaúthlutunarkerfi. Við höfum einhvers konar hugmynd um að mörg atkvæði gefi mörg þingsæti og að atkvæðavægi eftir landshlutum sé ekki jafnt, en úthlutunaraðferðirnar eru oft ekki á hreinu. Sérstaklega á þetta við um jöfnunarsætakerfið, sem virðist almennt vera talið óskiljanlegt.
En þetta er ekki óskiljanlegt. Vandamálið er bara að það er erfitt að skilja kerfið með því að skoða niðurstöður þess eingöngu, sem er það sem gerist þegar við setjumst fyrir framan kosningasjónvarpið. Ef við lítum á aðferðirnar sjálfar eru þær ekki jafn hrikalegar.
Ég tók saman nokkur orð til útskýringar.
OlderNewer