This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| rebuild_restart () { | |
| if [ -n "$1" ] | |
| then | |
| echo "Rebuilding and restarting $@" | |
| docker-compose up --build --no-deps -d "$@" | |
| else | |
| echo "You need a container name (e.g. rebuild_restart my-container other-container)" | |
| fi | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let range: (int, int) => array(int) = [%bs.raw | |
| (a, b) => {j| | |
| const ranger = {}; | |
| ranger[Symbol.iterator] = function* () { | |
| let current = a; | |
| while (a <= b) { | |
| yield a++; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module Main where | |
| import Prelude | |
| data Tree a = Empty | Leaf a | Node a (Tree a) (Tree a) | |
| depthFirstTraversal x = | |
| case x of | |
| Empty -> [] | |
| Leaf a -> [a] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Generated by BUCKLESCRIPT VERSION 2.2.3, PLEASE EDIT WITH CARE | |
| import * as Block from "stdlib/block"; | |
| import * Belt_Array from "stdlib/belt_Array"; | |
| function depthFirstTraversal(param) { | |
| if (typeof param === "number") { | |
| return /* array */[]; | |
| } else if (param.tag) { | |
| var match = param[0]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module Main exposing (..) | |
| import Char | |
| import Set | |
| import Html exposing (Html, pre, text, div, h1, img, button, span) | |
| import Html.Attributes exposing (src) | |
| import Html.Events exposing (onClick) | |
| ---- MODEL ---- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as PropTypes from "prop-types"; | |
| var shape = PropTypes.default.shape(); | |
| var arrayOf = PropTypes.default.arrayOf(); | |
| var Internal = /* module */[ | |
| /* shape */shape, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <Project Sdk="Microsoft.NET.Sdk"> | |
| <PropertyGroup> | |
| <OutputType>Exe</OutputType> | |
| <TargetFramework>netcoreapp2.0</TargetFramework> | |
| </PropertyGroup> | |
| <ItemGroup> | |
| <Compile Include="Program.fs" /> | |
| </ItemGroup> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [@bs.module "./i18n"] | |
| external modelNameI18n: string = | |
| "MODEL_NAME"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Fsharp 4.1.0 | |
| open System | |
| open Newtonsoft.Json // 10.0.3 | |
| open Newtonsoft.Json.Converters | |
| type ToStringJsonConverter () = | |
| inherit JsonConverter() | |
| override this.CanConvert objectType = true; | |
| override this.WriteJson (writer: JsonWriter, value: obj, serializer: JsonSerializer): unit = |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [format] | |
| pretty = %Cblue%h%Creset %Cgreen[%ar]%Creset (%an) %s | |
| [alias] | |
| a = add | |
| c = commit | |
| co = checkout | |
| d = diff | |
| f = fetch | |
| fmm = !git fetch origin master && git merge origin master |