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
| /* | |
| CRC32 in HVM | |
| A port of https://github.com/openbsd/src/blob/d4c9bc7e07bcf455e26a4d261eb43cf80a9b7fe1/bin/md5/crc.c | |
| */ | |
| testString = "foo bar baz" // --> CRC: 2461288740 | |
| main = (CRC.run testString) |
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
| # Fast macOS key repeat | |
| https://apple.stackexchange.com/questions/10467/how-to-increase-keyboard-key-repeat-rate-on-os-x | |
| defaults write -g InitialKeyRepeat -int 10 # normal minimum is 15 (225 ms) | |
| defaults write -g KeyRepeat -int 1 # normal minimum is 2 (30 ms) |
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
| " ALE | |
| let g:ale_linters = { | |
| \ 'elm': ['make'], | |
| \ } | |
| Plug 'dense-analysis/ale' | |
| Plug 'blueyed/vim-qf_resize' | |
| let g:ale_linters_explicit = 1 | |
| let g:ale_open_list = 1 |
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 (main) | |
| import Html exposing (Html) | |
| import Json.Decode | |
| import Json.Encode | |
| main : Html msg | |
| main = | |
| Html.ul [] |
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 Common exposing | |
| ( Point | |
| , Segment | |
| , add | |
| , addK | |
| , distance | |
| , dot | |
| , magnitude | |
| , mid | |
| , scale |
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
| Plug 'neovim/nvim-lspconfig' | |
| Plug 'williamboman/nvim-lsp-installer' | |
| Plug 'lifepillar/vim-mucomplete' | |
| " LSP Elm+Tailwind tries: | |
| lua << EOF | |
| require("nvim-lsp-installer").setup({ |
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
| #!/usr/bin/env node | |
| // A work around to https://github.com/avh4/elm-format/issues/352 | |
| // * Use it in place of elm-format (only some flags are supported) | |
| // * Run it from a directory containing node_modules/elm-format/bin/elm-format (but you can change it below) | |
| function extractFirstRegexMatch(regex, elmCode) { |
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
| package example | |
| object Hello { | |
| def main(args: Array[String]): Unit = | |
| println("Hello") | |
| // 1 implicit conversions | |
| // NEVER USE THIS | |
| { | |
| import scala.language.implicitConversions |
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 Benchmark as Bench exposing (Benchmark) | |
| import Benchmark.Runner.Alternative as Runner exposing (Program) | |
| main : Program | |
| main = | |
| Runner.program suite |
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 Pred exposing (..) | |
| import List.Cartesian | |
| import Transform | |
| type alias Example = | |
| ( Range, Range ) | |