Skip to content

Instantly share code, notes, and snippets.

View cassiebeckley's full-sized avatar

Cassandra Beckley cassiebeckley

View GitHub Profile

Keybase proof

I hereby claim:

  • I am thatotherperson on github.
  • I am davidbeckley (https://keybase.io/davidbeckley) on keybase.
  • I have a public key ASDBdlTJZiNvASEQawrNwxcSBRmOZkylS003Yi2rhCzWngo

To claim this, I am signing this object:

@cassiebeckley
cassiebeckley / bubbles.py
Last active August 29, 2015 13:57
Added "noisy" feature to Bubbles for Hexchat
# See original source code from:
# http://stackoverflow.com/questions/17262941/multiple-windowsbaloontip-traytip-notifications
# Adapted to HexChat by Assaf Koss, March 2014.
# The Bubble's Icon: http://www.sendspace.com/file/pg1n2n
# Put it in the same folder of the bubbles.py file.
from win32api import *
from win32gui import *
import win32con
@cassiebeckley
cassiebeckley / factorisation.hs
Last active December 18, 2015 05:19
Test output from my WIP Haskell lexer. Each token begins on a new line and is surrounded by double quotation marks.
-- |
-- Module: Math.NumberTheory.Primes.Factorisation
-- Copyright: (c) 2011 Daniel Fischer
-- Licence: MIT
-- Maintainer: Daniel Fischer <daniel.is.fischer@googlemail.com>
-- Stability: Provisional
-- Portability: Non-portable (GHC extensions)
--
-- Various functions related to prime factorisation.
-- Many of these functions use the prime factorisation of an 'Integer'.
@cassiebeckley
cassiebeckley / piet
Created April 27, 2013 09:52
testy test thingy for Ludum Dare
<!DOCTYPE html>
<html>
<head><title>Piet test</title></head>
<body>
<canvas id="piet" width="640" height="480"></canvas>
<script type="text/javascript">
function renderEntity(ctx, entity) {
@cassiebeckley
cassiebeckley / device_test.py
Created March 5, 2013 20:11
Test of saturn's Python interface This shows a Python device being created and attached to a DCPU.
Python 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 10:55:48) [MSC v.1600 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from galaxpy import saturn
>>> cpu = saturn.dcpu()
>>> cpu.A
0
>>> class test_device(saturn.device):
... def interrupt(self):
... print("Interrupted")
... def cycle(self):
@cassiebeckley
cassiebeckley / gist:5084587
Created March 4, 2013 19:10
galaxpy.saturn test
Python 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 10:55:48) [MSC v.1600 32 bit (In
tel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from galaxpy import saturn
>>> cpu = saturn.dcpu()
>>> cpu.PC
0
>>> cpu.A
0
>>> cpu[0]
@cassiebeckley
cassiebeckley / gist:2430271
Created April 20, 2012 16:55
DCPU-16 Fibonacci sequence
SET j, 0
SET x, 0 ; Fib 1
SET y, 1 ; Fib 2
SET c, 10 ; Maximum
SUB c, 1
SET a, x
JSR printnum