Skip to content

Instantly share code, notes, and snippets.

Mitchell Kember mk12

Block or report user

Report or block mk12

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
mk12 / init.sql
Created Oct 3, 2017
CS 348 A1 Schema
View init.sql
drop table if exists course;
drop table if exists professor;
drop table if exists student;
drop table if exists class;
drop table if exists enorollment;
drop table if exists mark;
drop table if exists schedule;
create table course (
cnum varchar(5) not null,
mk12 /
Last active Apr 17, 2017
Preparation for the CS 341 final exam
#!/usr/bin/env python3
from heapq import heappush, heappop
import random
# Practice for the final exam
### Algorithms
mk12 /
Created Nov 21, 2015
Checks/generates verification conditions for SE 212.
#!/usr/bin/env python3
import fileinput
import re
import sys
def parse():
mode = 'start'
prev_line = ''
conc_next = False
View gist:6a7d2a8d92cad925dd2c

We use the Mocha testing framework.


  • The setup method gets called before each test.
  • Set up @instance_variable in setup, and use it in tests.


mk12 / diamond.s
Created Jan 29, 2015
Prints a diamond pattern of N rows with alternating $ and *.
View diamond.s
; diamond.s
; Usage:
; diamond <size>
; size is a number from 0 to 300
; If size is greater than 300, 300 will be used
; If size is even, size + 1 (odd) will be used
; If size contains non-numerical characters,
; actual diamond size will be unexpected
mk12 /
Last active Apr 5, 2018
How to install Python and Myro on OS X for the Scribbler Bot.

Get Myro on Mac

There have been some issues getting everything properly installed for the Scribbler Bot project on OS X. It worked for me the first time because I used Homebrew and pip instead of the .mpkg installers. I've done this three times now and it has worked every time, so this should work for you too.

All code blocks are meant to be pasted into the Terminal.

Disclaimer: Follow these instructions at your own risk. I promise they won't do anything bad, but I don't guarantee it. I am not responsible for any unintended consequences.

Remove MacPython

mk12 / rectangle.asm
Last active Oct 10, 2015
Calculates the area and perimeter of rectangles.
View rectangle.asm
; Copyright 2012 Mitchell Kember. Subject to the MIT license.
; ICS3U / 18-Sept-2012 / Daily Assignment
; Calculates the area and perimeter of rectangles.
; ----------------------------------------
; ------------ READONLY DATA -------------
; ----------------------------------------
section .rodata
You can’t perform that action at this time.