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
#!/bin/bash | |
git log --author="John Doe" --pretty=tformat: --numstat | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "added lines: %s, removed lines: %s, total lines: %s\n", add, subs, loc }' |
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
#!/bin/bash | |
docker rmi $(docker images -a -q) |
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
* autojump - bookmark console | |
* mosh - mobileshell | |
* sshuttle - easy vpn with python? | |
* ripgrep (rg) - better silversurfer (ag) | |
* https://github.com/asdf-vm/asdf | |
* https://github.com/junegunn/fzf | |
* https://github.com/abo-abo/swiper | |
Tasks |
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
port module ElmFsaPorts exposing (main) | |
import Html exposing (Html, text) | |
import Json.Decode as Decode exposing (Decoder, Value) | |
import Json.Encode as Encode | |
port fromElm : Value -> Cmd msg | |
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
port module Main exposing (main) | |
import Html exposing (Html) | |
port fromElm : String -> Cmd msg | |
port toElm : (String -> msg) -> Sub msg |
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
-- From https://robots.thoughtbot.com/5-common-json-decoders#1---decoding-union-types | |
fromResult : Result String a -> Decoder a | |
fromResult result = | |
case result of | |
Ok a -> JD.succeed a | |
Err errorMessage -> JD.fail errorMessage | |
parseDirection : String -> Result String Direction |
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
port module FromReduxToElm exposing (main) | |
import Html exposing (Html) | |
port sayHello : (String -> msg) -> Sub msg | |
type alias Model = | |
{ who : 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
module ElmFxAndCmds exposing (main) | |
import Html exposing (Html) | |
import Html.Events exposing (onClick) | |
import Http | |
import Json.Decode as Decode exposing (Decoder, Value) | |
type alias Model = | |
{} |
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
port module Main exposing (main) | |
import Html exposing (Html) | |
import Html.Events exposing (onClick) | |
import Http | |
import Json.Decode as Decode exposing (Decoder, Value) | |
import Json.Encode as Encode | |
port toElm : (Value -> msg) -> Sub msg |
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
port module Main exposing (main) | |
import Html exposing (Html) | |
import Html.Events as Events exposing (onWithOptions) | |
import Json.Decode as Decode exposing (Value) | |
port saveToClipboard : Value -> Cmd msg | |
OlderNewer