Skip to content

Instantly share code, notes, and snippets.

@elias551
elias551 / calculation.ts
Created June 5, 2019 09:36
masala parser calculation sample
import { C, F, N, Streams } from '@masala/parser'
/*
Implementing general solution :
E -> T E'
E' -> + TE' | eps
T -> F T'
T' -> * FT' | eps
F -> DAY | ( E )
E== expr
@elias551
elias551 / launch.json
Last active June 19, 2018 11:12
Create-React-App typescript - lauch.json for VS Code with jest tests debug
{
"version": "0.2.0",
"configurations": [
{
"name": "Chrome",
"type": "chrome",
"request": "launch",
"url": "http://localhost:3000",
"webRoot": "${workspaceRoot}/src"
},
@elias551
elias551 / main.tsx
Last active September 19, 2017 15:43
Minimal redux-typescript format
import * as React from "react";
import * as ReactDOM from "react-dom";
import { createStore, Action, Dispatch } from "redux";
import { Provider, connect } from "react-redux";
enum ActionType {
Increment = "INCREMENT",
Decrement = "DECREMENT"
}