Skip to content

Instantly share code, notes, and snippets.

View mmccollow's full-sized avatar

Matt McCollow mmccollow

  • McMaster University
  • Hamilton, Ontario
View GitHub Profile
@mmccollow
mmccollow / bloom.py
Created August 27, 2014 20:24
Simple Bloom Filter Implementation
# Implementation of a simple Bloom Filter
# @author Matt McCollow <[email protected]>
import hashlib
class Filter():
def __init__(self, debug=False):
self.bits = 0x0
self.mask = 0xFFFF
@mmccollow
mmccollow / write.asm
Created August 4, 2016 19:30
Assembly exercise - write "Hello world" to a new file called "test"
SECTION .data
msg db "Hello world"
len equ $ - msg
fname db "test", 0
SECTION .text
global _start
_start:
mov rdi, fname ;param1 to open(), file name
mov rsi, 101 ;param2 to open(), file mode