This file contains 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 Browser | |
import Html exposing (..) | |
import Html.Attributes exposing (value) | |
import Html.Events exposing (onInput) | |
type Msg | |
= NewInput String |
This file contains 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
#!/usr/bin/env bash | |
jq '.scripts | keys' package.json |
This file contains 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
git branch --merged | egrep -v "(^\*|master|development|merged-branch-youd-like-to-keep)" | xargs git branch -d |
This file contains 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 javaslang.Function1; | |
import javaslang.Function2; | |
import javaslang.Tuple; | |
import javaslang.Tuple2; | |
import javaslang.collection.List; | |
public class Knight { | |
static final Function1<Tuple2<Integer, Integer>, List<Tuple2<Integer, Integer>>> moveKnight = (start) -> { | |
// c,r = column,row | |
int c = start._1; |
This file contains 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 Control.Monad (replicateM) | |
data Tree a = EmptyTree | Node a [Tree a] deriving (Show, Eq) | |
label :: Tree a -> a | |
label (Node a _) = a | |
subforest :: Tree Char -> [Tree Char] | |
subforest (Node _ subforest) = subforest |
This file contains 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
(doseq [line (line-seq (java.io.BufferedReader. *in*))] | |
(println line)) |