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 ConcurrentTask exposing (ConcurrentTask) | |
import ConcurrentTask.Http as Http | |
import Json.Decode as Decode | |
type alias Model = | |
{ tasks : ConcurrentTask.Pool Msg Error Titles | |
} |
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 (main, view) | |
import Browser | |
import Html exposing (Html, button, div, text) | |
import Html.Attributes exposing (style) | |
main = | |
Browser.sandbox | |
{ init = () |
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
;;; package -- summary | |
;;; .doom.d/config.el -*- lexical-binding: t; -*- | |
;;; commentary: | |
;;; code: | |
;;; basics | |
(setq doom-font (font-spec :family "Source Code Pro" :size 16)) | |
(setq treemacs-show-hidden-files nil) | |
(setq-default frame-title-format '((:eval default-directory))) |
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 Json.Decode as D exposing (Decoder, Value) | |
import Json.Encode as E | |
import Platform exposing (worker) | |
type Msg | |
= Run Value |
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
{ | |
"codeLens.enable": true, | |
"coc.preferences.formatOnSaveFiletypes": ["elm", "javascript"], | |
"coc.preferences.hoverTarget": "float", | |
"languageserver": { | |
"elmLS": { | |
"command": "elm-language-server", | |
"filetypes": ["elm"], | |
"rootPatterns": ["elm.json"], | |
"initializationOptions": { |
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
call plug#begin('~/.vim/plugged') | |
"common | |
Plug 'tpope/vim-surround' | |
Plug 'itchyny/lightline.vim' | |
Plug 'neoclide/coc.nvim', { 'branch': 'release' } | |
Plug 'lifepillar/vim-solarized8' | |
Plug 'scrooloose/nerdtree' | |
Plug 'scrooloose/nerdcommenter' |
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 (main) | |
import Browser | |
import Html exposing (Html, div, text) | |
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
(function(scope){ | |
'use strict'; | |
function F(arity, fun, wrapper) { | |
wrapper.a = arity; | |
wrapper.f = fun; | |
return wrapper; | |
} | |
function F2(fun) { |
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
// startup/client/main.js | |
import { Meteor } from 'meteor/meteor'; | |
import '/elm-client/elm-main'; | |
Meteor.startup(() => { | |
const app = Elm.Main.init({ | |
node: document.getElementById('elm-root'), | |
flags: {}, | |
}); |
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
Package.describe({ | |
summary: 'compile elm to js', | |
version: '1.0.0', | |
name: 'niko:elm', | |
}); | |
Package.registerBuildPlugin({ | |
name: 'elm', | |
sources: ['plugin.js'], | |
use: ['caching-compiler@1.2.0'], |
NewerOlder