Skip to content

Instantly share code, notes, and snippets.

View kwccoin's full-sized avatar

Kowloon walled city (coin) kwccoin

View GitHub Profile
@kwccoin
kwccoin / herc01.test.cntl_gameful3_
Created April 14, 2024 06:38
start of full screen Brexx game of life ver 0.1
/* CONWAY'S GAME OF LIFE FOR REXX */
/* FOR BREXX ON MVS 3.8 and VM */
/* COPYRIGHT 2024 BY MOSHIX */
/* BREXX.V2R3M3.SAMPLES(#TSOAPPL) */
/* Modified by KWC Ver 0.1 */
CALL IMPORT FSSAPI
ADDRESS FSS
; ___ _ __ ___ __ ___
; / __|_ _ __ _| |_____ / /| __|/ \_ )
; \__ \ ' \/ _` | / / -_) _ \__ \ () / /
; |___/_||_\__,_|_\_\___\___/___/\__/___|
; An annotated version of the snake example from Nick Morgan's 6502 assembly tutorial
; on http://skilldrick.github.io/easy6502/ that I created as an exercise for myself
; to learn a little bit about assembly. I **think** I understood everything, but I may
; also be completely wrong :-)
;; blackjack.lisp
;; Copyleft Matthew Ball (2013)
(defclass card ()
((value :accessor card-value
:initarg :name)
(suit :accessor card-suit
:initarg :suit)))
(defclass deck ()
@kwccoin
kwccoin / pacman.lisp
Created May 20, 2022 09:08 — forked from chebert/pacman.lisp
pacman, ncurses, lisp
(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 '(
@kwccoin
kwccoin / .gitignore
Created September 13, 2021 15:13 — forked from reagent/.gitignore
Curses + C Example
demo
*.swp
@kwccoin
kwccoin / subtitle-extract.md
Created April 15, 2021 08:27 — forked from pavelbinar/extract-subtitles-from-mkv.md
Extract subtitles from .mkv files on Mac OS X

Extract Subtitles From .mkv

These instructions shall work on Mac OS X and Linux.

Install mkvtoolnix (Mac OS X)

Installation via Homebrew:

brew install mkvtoolnix
@kwccoin
kwccoin / match.c
Created August 2, 2020 06:24 — forked from ianmackinnon/match.c
C Regex multiple matches and groups example
# gcc -Wall -o match match.c && ./match
#
#include <stdio.h>
#include <string.h>
#include <regex.h>
@kwccoin
kwccoin / ebert_amazon.py
Created June 11, 2020 01:51 — forked from linstantnoodles/ebert_amazon.py
Get amazon prime information on Roger Ebert Great Movies
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)
#!/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