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 / air_hockey.py
Created July 31, 2019 13:35 — forked from gillibrand/air_hockey.py
An Air Hockey game for Pythonista on iPad and iPhone. Yes, I typed this all on my iPad. A little painful.
# 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 *
@kwccoin
kwccoin / Cards.py
Created July 31, 2019 13:37 — forked from thillmann50/Cards.py
Cards.py
# 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
@kwccoin
kwccoin / .env.sample
Created December 20, 2019 01:49 — forked from manrajgrover/.env.sample
Quick Docker Environment for TensorFlowJS Node
root=/path/to/root
project=/path/to/project
#!/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
@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)
@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 / 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 / .gitignore
Created September 13, 2021 15:13 — forked from reagent/.gitignore
Curses + C Example
demo
*.swp
@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 '(