Skip to content

Instantly share code, notes, and snippets.

View Alexei-B's full-sized avatar
🤗

Alexei Barnes Alexei-B

🤗
View GitHub Profile
@Alexei-B
Alexei-B / FizzBuzz.ts
Last active August 7, 2017 03:07
The game of FizzBuzz as written in TypeScript.
/**
* Represents the result of a round of FizzBuzz.
* @typedef {string | number} FizzBuzzResult
*/
type FizzBuzzResult = string | number;
/**
* Defines the function signature for a rule.
* @typedef {(n: number) => string} Rule
@Alexei-B
Alexei-B / dice.js
Last active January 20, 2017 21:18
dice thing
var Dice = {
B: [0, 0, 0, 0, 1, 1],
A: [0, 0, 0, 0, 1, 1, 1, 2],
P: [0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 2, 2],
S: [0, 0, 0, 0, -1, -1],
D: [0, 0, 0, 0, 0, -1, -1, -2],
C: [0, 0, 0, 0, 0, -1, -1, -1, -1, -1, -2, -2]
};
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2015 Alexei Barnes <alexeibarnes.com>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@Alexei-B
Alexei-B / LICENSE.txt
Last active January 9, 2016 16:41 — forked from aemkei/LICENSE.txt
Game of Life - 140byt.es
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2015 Alexei Barnes <http://alexeibarnes.com>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@Alexei-B
Alexei-B / LICENSE.txt
Last active February 13, 2017 16:17 — forked from 140bytes/LICENSE.txt
curry functions in <140 bytes.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2015 Alexei Barnes <http://alexeibarnes.com>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE