Skip to content

Instantly share code, notes, and snippets.

@iffy
iffy / brew --config
Created March 2, 2011 17:40
brew --config
$ brew --config
HOMEBREW_VERSION: 0.7.1
HEAD: 511c404a2047f7148efec20332b98a3a52bf3cd4
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_REPOSITORY: /usr/local
HOMEBREW_LIBRARY_PATH: /usr/local/Library/Homebrew
Hardware: 8-core 64-bit nehalem
OS X: 10.6.6
Kernel Architecture: i386
@iffy
iffy / install log
Created March 2, 2011 19:03
trying to install python with curses
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking asm/types.h usability... no
checking asm/types.h presence... no
checking for asm/types.h... no
checking conio.h usability... no
checking conio.h presence... no
checking for conio.h... no
@iffy
iffy / File 2
Created June 14, 2011 17:11
The description
This is the second file.
@iffy
iffy / File 2
Created June 14, 2011 17:12 — forked from hagna/File 2
The description
This is the second file.
And this is more content.
@iffy
iffy / style.css
Created June 16, 2011 15:36
TDD example
body {
margin: 0;
padding: 1em;
font-family: sans-serif;
}
h1, h2, h3, h4, h5 {
font-family: Arial;
margin-left: 12px;
margin-right: 12px;
@iffy
iffy / output
Created June 29, 2011 20:23
Buffer stuff
(1, <read-write buffer ptr 0x698860, size 4 at 0x698840>)
(2, u'0.00')
sqlite 2.4.1
storm 0.17
@iffy
iffy / output
Created July 1, 2011 00:41
axiom error
$ python test.py
2.4.1
[axiom, version 0.6.0]
('Darwin', 'bonabuhle.local', '10.7.0', 'Darwin Kernel Version 10.7.0: Sat Jan 29 15:17:16 PST 2011; root:xnu-1504.9.37~1/RELEASE_I386', 'i386')
Traceback (most recent call last):
File "test.py", line 11, in <module>
s = Store()
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/axiom/store.py", line 1161, in __init__
self._initSchema()
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/axiom/store.py", line 1264, in _initSchema
@iffy
iffy / output
Created July 27, 2011 14:22
blkandtx
$ python prob.py
2011-07-27 08:38:43-0600 [-] Log opened.
2011-07-27 08:38:43-0600 [-] Connected to process
2011-07-27 08:38:43-0600 [-] [Errno 61] Connection refused
2011-07-27 08:38:43-0600 [-] error connecting 0 sleep for 1 second
2011-07-27 08:38:44-0600 [-] [Errno 22] Invalid argument
2011-07-27 08:38:44-0600 [-] error connecting 1 sleep for 1 second
2011-07-27 08:38:45-0600 [-] [Errno 22] Invalid argument
2011-07-27 08:38:45-0600 [-] error connecting 2 sleep for 1 second
2011-07-27 08:38:46-0600 [-] [Errno 22] Invalid argument
@iffy
iffy / _description
Created August 22, 2011 22:13
How to implement
Customer's can purchase things, and employees can be paid a commission for assisting the customer in their purchase. What methods would you create to do this?

Hexagon Dots

Contents

Your challenge is to write a bot to play the Hexagon dots game. Your bot will