Skip to content

Instantly share code, notes, and snippets.

View mattchrlw's full-sized avatar
:octocat:
matt-curl-double-u

Matthew Low mattchrlw

:octocat:
matt-curl-double-u
View GitHub Profile
@TripleExclam
TripleExclam / matt_q3.py
Created August 16, 2021 10:44
COMP3702 Tutorial 3 solutions
from matt_q1_q2 import *
class EightPuzzle:
ACTIONS = ['U', 'D', 'L', 'R']
def __init__(self, init_state, goal_state):
self.size = 3
self.init_state = init_state
self.goal_state = goal_state
@TripleExclam
TripleExclam / matt_q1_q2.py
Created August 16, 2021 10:42
Exercise 3.1 and 3.2 COMP3702
import sys
import heapq
import time
class GridWorld:
ACTIONS = ['U', 'D', 'L', 'R']
def __init__(self):
self.n_rows = 9
self.n_cols = 9
CFLAGS="-I$(brew --prefix readline)/include -I$(brew --prefix openssl)/include -I$(xcrun --show-sdk-path)/usr/include" \
LDFLAGS="-L$(brew --prefix readline)/lib -L$(brew --prefix openssl)/lib" \
PYTHON_CONFIGURE_OPTS=--enable-unicode=ucs2 \
pyenv install -v 2.7.11
@dashed
dashed / github-pandoc.css
Created September 26, 2013 13:42
GitHub-like CSS for pandoc standalone HTML files (perfect for HTML5 output). Based on Marked.app's GitHub CSS. Added normalize.css (v2.1.3) in the prior to GitHub css.
/*! normalize.css v2.1.3 | MIT License | git.io/normalize */
/* ==========================================================================
HTML5 display definitions
========================================================================== */
/**
* Correct `block` display not defined in IE 8/9.
*/