Skip to content

Instantly share code, notes, and snippets.

Kowloon walled city (coin) kwccoin

Block or report user

Report or block kwccoin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
# 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 /
Created Jul 31, 2019 — forked from gillibrand/
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 *
View gist:8309db2b79c3691b32f7250eb2b7e483
/** @jsx React.DOM */
var GameStatus = {
var Suits = ['H', 'D', 'C', 'S'];
var Cards = [];
View fraud-testing.clj
(defn f-beta
"F-beta score, default uses F1"
([precision recall] (f-beta precision recall 1))
([precision recall beta]
(let [beta-squared (* beta beta)]
(* (+ 1 beta-squared)
(try ;; catch divide by 0 errors
(/ (* precision recall)
(+ (* beta-squared precision) recall))
(catch ArithmeticException e
View Visual Studio Code(VS Code)用 WordStarライクなKeyboard Shortcuts
// Place your key bindings in this file to overwrite the defaults
//---- 他の方のを流用 ----
// ↑up
{ "key": "ctrl+e", "command": "cursorUp",
"when": "editorTextFocus" },
{ "key": "shift+ctrl+e", "command": "cursorUpSelect",
"when": "editorTextFocus" },
kwccoin /
Created Dec 19, 2018 — forked from tanb/
FreeBSD running on xhyve tutorial. (Appendix: Resize image with qemu. Create FreeBSD VM with qemu).


  • Create 5GB FreeBSD image.
  • Install FreeBSD on xhyve.
  • Mount host directory.


kwccoin / Setup for Ruby on Rails
Created Nov 18, 2018 — forked from fzrh/Setup for Ruby on Rails
How to Install Xcode, Homebrew, Git, RVM, Ruby, Rails, Heroku Toolbelt and Postgres (Yosemite)
View Setup for Ruby on Rails

###Step 1: Install XCode

Check if the full Xcode package is already installed:

$ xcode-select -p

If you see:


kwccoin / TP_Mac_Setup.markdown
Created Sep 16, 2018 — forked from nvgrw/TP_Mac_Setup.markdown
TurboPascal setup tutorial for Mac
View TP_Mac_Setup.markdown

TurboPascal on Mac

Note: probably 99% of this tutorial (excluding installation and folder structure) is DOSBox- and not Mac-specific. As long as your computer can run DOSBox you should be able to convert the steps to work on Windows.

1. Downloading & Installing DOSBox

DOS apps don't run natively on OS X, so we use DOSBox to emulate DOS for us.

1a. Downloading DOSBox

Navigate to the official DOSBox download page


How To Clone Scrypt Based Altcoins for Fun and Profit

Wait a second, why would you want to give out the secrets?!? Because its not a secret anymore and besides, why shouldn't everyone and their neighbors be able to create a plethora of these useless yet exciting math bits? The information in this article took me a few weeks to compile and what works for me is not guaranteed to work for you. Please use this guide as a starting point to learn a bit about C programming and compiling software.

kwccoin /
Created May 7, 2017 — forked from karpathy/
Minimal character-level language model with a Vanilla Recurrent Neural Network, in Python/numpy
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy)
BSD License
import numpy as np
# data I/O
data = open('input.txt', 'r').read() # should be simple plain text file
chars = list(set(data))
data_size, vocab_size = len(data), len(chars)
You can’t perform that action at this time.