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 / .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
@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 / 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 *
/** @jsx React.DOM */
var GameStatus = {
NOTSTARTED: 0,
FINISHED: 1,
INPROGRESS: 2
}
var Suits = ['H', 'D', 'C', 'S'];
var Cards = [];
(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
// Place your key bindings in this file to overwrite the defaults
// https://code.visualstudio.com/docs/customization/keybindings
[
//---- 他の方のを流用 ----
// http://tonbi.jp/Web/Diary/030/
// ↑up
{ "key": "ctrl+e", "command": "cursorUp",
"when": "editorTextFocus" },
{ "key": "shift+ctrl+e", "command": "cursorUpSelect",
"when": "editorTextFocus" },
@kwccoin
kwccoin / xhyve-freebsd-tutorial-1.md
Created December 19, 2018 09:46 — forked from tanb/xhyve-freebsd-tutorial-1.md
FreeBSD running on xhyve tutorial. (Appendix: Resize image with qemu. Create FreeBSD VM with qemu).

TL;DR

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

Requisites

@kwccoin
kwccoin / Setup for Ruby on Rails development.md
Created November 18, 2018 10:16 — forked from fzrhrs/Setup for Ruby on Rails development.md
How to Install Xcode, Homebrew, Git, RVM, Ruby, Rails, Heroku Toolbelt and Postgres (Yosemite)

###Step 1: Install XCode

Check if the full Xcode package is already installed:

$ xcode-select -p

If you see:

/Applications/Xcode.app/Contents/Developer

@kwccoin
kwccoin / TP_Mac_Setup.markdown
Created September 16, 2018 03:03 — forked from nvgrw/TP_Mac_Setup.markdown
TurboPascal setup tutorial for Mac

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.