Skip to content

Instantly share code, notes, and snippets.

View dolegi's full-sized avatar

Dom Ginger dolegi

View GitHub Profile
@dolegi
dolegi / tsconfig.json
Last active June 12, 2019 09:19
Modern tsconfig good default settings
{
"compilerOptions": {
"module": "commonjs",
"target": "es2017",
"outDir": "./build",
"esModuleInterop": true,
"resolveJsonModule": true,
"allowJs": false,
"sourceMap": true,
"strict": true,
@dolegi
dolegi / todo.elm
Last active February 7, 2017 17:09
Todo list with columns in elm
import Html exposing (..)
import Html.Attributes exposing (..)
import Html.Events exposing (..)
import Json.Decode as Json
type Position = ToBeDone | Doing | Completed
type alias Todo = { name : String, position : Position }
type alias Model =
{ todos : List Todo, newTodoName : String }
@dolegi
dolegi / market.elm
Last active February 6, 2017 17:02
import Html exposing (..)
import Html.Attributes exposing (..)
import Html.Events exposing (..)
type alias Product = { name : String, singular : String, amount : Int, price : Int }
type alias Model =
{ products : List Product, cash : Int }
model : Model