Skip to content

Instantly share code, notes, and snippets.

View mtso's full-sized avatar
shipping

Matthew mtso

shipping
View GitHub Profile
"use strict";
var C;
(function (C) {
C[C["NOWALL"] = 0] = "NOWALL";
C[C["NOP"] = 1] = "NOP";
C[C["WALL"] = 2] = "WALL";
C[C["DOT"] = 3] = "DOT";
C[C["P1"] = 4] = "P1";
C[C["P2"] = 5] = "P2";
})(C || (C = {}));
@mtso
mtso / README.md
Last active March 4, 2022 02:40
Dots 'n' Boxes is a text console game for two players. https://mtso.io/dots-n-boxes

dots-n-boxes

Dots 'n' Boxes is a text console game for two players.

The game starts with an empty grid of dots. Two players take turns adding a single horizontal or vertical line between two unjoined adjacent dots specified by algebraic notation (e.g. A1-B1). A player who completes the fourth side of a 1×1 box earns one point and takes another turn.

Buffer Shots

4x4 Game

{"data":{"stackProfile":{"id":"101231778457248879","slug":"airbnb","name":"Airbnb","path":"/airbnb/airbnb","websiteUrl":"https://nerds.airbnb.com/","private":false,"imageUrl":"https://img.stackshare.io/stack/2/default_04dd469129d2bfe4f9fbe36583faac05993d6643.jpeg","description":"Founded in August 2008 and based in San Francisco, California, Airbnb is a trusted community marketplace for people to list, discover, and book unique spaces around the world – online or from a mobile phone. Airbnb connects people to unique travel experiences, at any price point, in more that 26,000 cities and 192 countries. ","viewCount":423779,"amIOwner":false,"toolsAvatars":{"react":{"avatarsCount":1,"avatarsUrls":["https://img.stackshare.io/user/299852/default_e6c5c079eeed2f178ff111094f79fc759338903b.png"]},"mysql":{"avatarsCount":1,"avatarsUrls":["https://img.stackshare.io/user/299852/default_e6c5c079eeed2f178ff111094f79fc759338903b.png"]}},"embedUrl":"https://embed.stackshare.io/stacks/embed/d8fece976fadc2","stackMatchPercentage
;(function() {
// Usage
// window.piconet.init();
// window.piconet.stop();
// send states
// nothing
// sending
const C0 = 0;
const S0 = 2;
#!/bin/sh
set -e
if ! command -v unzip >/dev/null; then
echo "Error: unzip is required to install Obi." 1>&2
exit 1
fi
if ! command -v deno >/dev/null; then
@mtso
mtso / index.html
Created July 29, 2020 03:58
zoo.haus
<div class="container">
<nav>
<div class="logomark">zoo</div>
</nav>
<div class="project">
<div class="title">Neko</div>
<div class="description">
A novelty meme keyboard.
</div>
<div class="progress">
@mtso
mtso / babel-types-keys.json
Created April 12, 2019 08:03
babel types dump
[
"assertNode",
"createTypeAnnotationBasedOnTypeof",
"createUnionTypeAnnotation",
"cloneNode",
"clone",
"cloneDeep",
"cloneWithoutLoc",
"addComment",
"addComments",
@mtso
mtso / LoggingUtils.java
Created December 22, 2018 08:21
Compact a Java class name.
package io.mtso.app.helpers;
import javax.annotation.Nonnull;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
public abstract class LoggingUtils
@mtso
mtso / kyc_js_tokenize
Created August 30, 2018 18:57 — forked from anonymous/kyc_js_tokenize
kyc tokenization example
WePay.set_endpoint("stage"); // change to "production" when live
WePay.tags.insert();
WePay.kyc.create({
"client_id": "9876",
"account_id": "1234",
"individual": {
"account_owner": {
"name": {
"first": "Foo",
"last": "Bar"