Skip to content

Instantly share code, notes, and snippets.

View matanlurey's full-sized avatar

Matan Lurey matanlurey

View GitHub Profile
@matanlurey
matanlurey / playground.rs
Created August 5, 2020 21:36 — forked from anonymous/playground.rs
Shared via Rust Playground
struct Scanner {
input: String,
output: Vec<Token>
}
#[derive(Debug)]
enum Token {
Integer(i64),
Addition,
Subtraction,
@matanlurey
matanlurey / BowlingKtTest.kt
Created May 11, 2017 01:12 — forked from miquelbeltran/BowlingKtTest.kt
Bowling Kata Dart vs Kotlin
import org.junit.jupiter.api.Assertions.*
import org.junit.jupiter.api.Test
internal class BowlingKtTest {
@Test
fun `score is 0 when the player did not knock down any pins`() {
assertEquals(0, Array(20, { 0 }).toList().score())
}
@Test
@matanlurey
matanlurey / main.dart
Last active April 27, 2017 22:06 — forked from anonymous/main.dart
import 'dart:async';
main() {
final router = new Router();
router.listen(print);
router.route(const Route('/', query: const {'referredId': '1234'}));
router.route(const Route('/contact'));
}
/// A simple example of a 'Router' that is just a stream of [Route].