See also my tech blog.
- Padraic Edgington's videos
- Design of Digital Circuits, ETH Zurich, Onur Mutlu, Spring 2019
- Basic CPU design course, LC-3, MIPS, FPGA, Vivado, Basys 3
- High Performance Computer Architecture, Georgia Tech CS6290
| # Hockey | |
| # | |
| # A air hockey game for two players. First to | |
| # seven wins. | |
| # Most of the game is drawn with the scene | |
| # module. Goal and winner messages are animated | |
| # with layers. | |
| from scene import * | |
| from sound import * |
| # Card Game | |
| # | |
| # In this game, you have to find matching pairs of cards. | |
| # This scene consists entirely of layers and demonstrates some | |
| # interesting animation techniques. | |
| from scene import * | |
| from random import shuffle | |
| from functools import partial | |
| import sound |
| root=/path/to/root | |
| project=/path/to/project |
See also my tech blog.
| #!/usr/bin/python | |
| # A Wake on LAN program that allows you to send magic packets over the Internet | |
| import socket, struct | |
| class Waker(): | |
| def makeMagicPacket(self, macAddress): | |
| # Take the entered MAC address and format it to be sent via socket | |
| splitMac = str.split(macAddress,':') | |
| # Pack together the sections of the MAC address as binary hex |
| import requests | |
| import csv | |
| import os | |
| import json | |
| import re | |
| from bs4 import BeautifulSoup | |
| import mechanize | |
| from random import choice | |
| user_agents = ['Mozilla/5.0 (X11; U; Linux; i686; en-US; rv:1.6) Gecko Debian/1.6-7','Konqueror/3.0-rc4; (Konqueror/3.0-rc4; i686 Linux;;datecode)','Opera/9.52 (X11; Linux i686; U; en)'] | |
| random_user_agent = choice(user_agents) |
| # gcc -Wall -o match match.c && ./match | |
| # | |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <regex.h> | |
These instructions shall work on Mac OS X and Linux.
Installation via Homebrew:
brew install mkvtoolnix
| demo | |
| *.swp |
| (defpackage :pacman | |
| (:use :cl)) | |
| (in-package :pacman) | |
| ;;; The charms/ll library contains all of the FFI bindings to Ncurses. | |
| (ql:quickload :cl-charms) | |
| ;;; Here are all of the functions I'll be using from Ncurses. | |
| (import '( |