This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% Demo of a basic filter for deblurring an image | |
% Grab image | |
img_url = 'http://www.artwallpaperhi.com/thumbnails/detail/20121017/sand%20macro%20blurred%201920x1200%20wallpaper_www.artwallpaperhi.com_77.jpg'; | |
img = imread(img_url); | |
img = single(img) / 255; | |
% Apply convolution. Play around with the filter matrix if you're curious. | |
filter = [-1 -1 -1; -1 9 -1; -1 -1 -1]; | |
result = zeros(size(img)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset=utf-8> | |
<title>MU0 assembler</title> | |
<style> | |
body { | |
font-family: sans-serif; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
========= | |
tikzmagic | |
========= | |
Magics for generating figures with TikZ. | |
.. note:: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CXXFLAGS=-std=gnu++11 -Os -Wall -Wextra | |
URL=http://cs.anu.edu.au/courses/COMP2300/rpeanut/rPeANUt2.3.jar | |
.PHONY: all | |
all: autogen reference rPeANUt2.3.jar | |
chmod +x autotest | |
@echo "Build complete" | |
autogen: autogen.cpp | |
$(CXX) $(CXXFLAGS) autogen.cpp -o autogen |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python2 | |
from os.path import basename | |
from subprocess import PIPE, Popen, check_output | |
from sys import argv, exit, stdout, stderr | |
from re import compile | |
USAGE = "USAGE: {0} input.bmp|input.rle > output.rle|output.bmp\n".format(argv[0]) | |
RLE_HEADER = "x = {x}, y = {y}, rule = WireWorld\n" |
NewerOlder