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
vraagZet :: Bord -> IO Int | |
vraagZet bord = do | |
putStrLn "Waar wilt u een steen plaatsen?" | |
putStrLn (showBord bord) | |
putStr "Op rij: " | |
hFlush stdout | |
x <- getLine | |
return $ read x | |
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
01:31 < TheGuyOfDoom> * , | |
01:31 < TheGuyOfDoom> _/^\_ | |
01:31 < TheGuyOfDoom> < > | |
01:31 < TheGuyOfDoom> * /.-.\ * | |
01:31 < TheGuyOfDoom> * `/&\` * | |
01:31 < TheGuyOfDoom> ,@.*;@, | |
01:31 < TheGuyOfDoom> /_o.I %_\ * | |
01:31 < TheGuyOfDoom> * (`'--:o(_@; | |
01:31 < TheGuyOfDoom> /`;--.,__ `') * | |
01:31 < TheGuyOfDoom> ;@`o % O,*`'`&\ |
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
$Header = 'Comments left on requests you made' . ($IncludeVoted ? ' or voted on' : ''); |
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
Kamer** leesKamers (std::ifstream& file) | |
{ | |
int aantal; | |
file >> aantal; | |
Kamer **kamers; | |
kamers = new Kamer*[aantal]; | |
for (int i = 0; i < aantal; i++) | |
{ | |
bool eind; |
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
0 0 nee | |
0 1 ja | |
0 6 help | |
1 2 ja | |
1 1 nee | |
1 6 help | |
2 3 ja | |
2 11 nee | |
2 6 help | |
3 4 ja |
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
/** | |
* Maakt gebruik van het feit dat shorts 16bit zijn | |
* | |
* | |
* @param left | |
* @param right | |
* @return a size 3 byte array containing, when concatenated, (left << 12) | | |
* right | |
*/ | |
public static Byte[] compressBytes(final short left, final short right){ |
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
<?php | |
$msgarray = <<<MSG | |
I threw a wish in the well, | |
Don't ask me, | |
I'll never tell | |
I looked to you as it fell, | |
And now you're in my way | |
I'd trade my soul for a wish, | |
Pennies and dimes for a kiss | |
I wasn't looking for this, |
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 simplejson, urllib, urllib2, cookielib, time, math | |
def conn(link, parameters): | |
f = cookie.open(link, parameters) | |
data = f.read() | |
f.close() | |
return data | |
def get(link): | |
f = cookie.open(link) |
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
(twobot)thom@Lethe ~/git $ python -m unittest aeolus.irclib.test.server | |
F | |
====================================================================== | |
FAIL: testConnectEasy (aeolus.irclib.test.server.Server) | |
Tests connecting to a server | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "aeolus/irclib/test/server.py", line 38, in testConnectEasy | |
self.mox.VerifyAll() | |
File "/home/thom/pythonenvs/twobot/local/lib/python2.7/site-packages/mox.py", line 286, in VerifyAll |
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 unittest | |
import socket | |
import mox | |
from aeolus.irclib.server import Connection | |
class Server(unittest.TestCase): | |
def setUp(self): | |
"""Initialises mocking objects""" | |
self.mox = mox.Mox() |