Skip to content

Instantly share code, notes, and snippets.

View shamansir's full-sized avatar

Ulric Wilfred shamansir

View GitHub Profile
@shamansir
shamansir / .gitgnore
Created February 26, 2018 07:14
Elm Webpack Project Template
node_modules
elm-stuff
@shamansir
shamansir / Main.purs
Created January 25, 2018 17:42 — forked from soupi/Main.purs
simple purescript-signal + purescript-canvas example
module Main where
import Prelude
import Data.Maybe
import Control.Monad.Eff
import Graphics.Canvas as C
import Signal as S
import Signal.DOM as S
@shamansir
shamansir / Aliases.ielm
Last active December 9, 2017 11:12
IElm examples
import List
type alias Foo = List Int
bar : Foo
bar = [ 2, 3, 4 ]
bar
type alias Test = {
@shamansir
shamansir / StarWarp.md
Last active August 31, 2017 17:09
A Star Warp with Canvas
@shamansir
shamansir / Extensions.md
Last active October 25, 2018 00:02
VS Code User Settings
  • Code Outline by Patryk Zawadzki
  • Dark++ Theme by DryWolf
  • Docker by Microsoft
  • DrRacket Syntax by Dmytro Bogatov
  • Easy icon theme by James Maguire
  • Elm by Elm
  • elm-format bt abadi199 (no more?)
  • Haskell Syntax Highlighting by Justus Adam
  • Haskell Language Server by Alan Zimmerman
  • Haskell GHCi Debug Adapter by phoityne
@shamansir
shamansir / TestUtils.elm
Last active May 16, 2017 21:40 — forked from anonymous/Main.elm
iterateMap, iterateOr, iterateAnd, iterateMapAnd, iterateWhileAnd in Elm
module UtilsTest exposing (suite)
import Test exposing (..)
import Expect
import Utils exposing (..)
suite : Test
suite =
describe "utils"
@shamansir
shamansir / keybase.md
Created February 11, 2017 21:24
keybase.md

Keybase proof

I hereby claim:

  • I am shamansir on github.
  • I am shamansir (https://keybase.io/shamansir) on keybase.
  • I have a public key ASDUvR7HXGuPndquA2braPJg0drzlxd0OQ4voBA8A8Q-bAo

To claim this, I am signing this object:

autoload -U colors && colors
autoload -Uz vcs_info
zstyle ':vcs_info:*' stagedstr '%F{green}•'
zstyle ':vcs_info:*' unstagedstr '%F{yellow}•'
zstyle ':vcs_info:*' check-for-changes true
zstyle ':vcs_info:*' enable git svn
theme_precmd () {
if [[ -z $(git ls-files --other --exclude-standard 2> /dev/null) ]] {
@shamansir
shamansir / index.html
Created February 2, 2017 22:01
Use RPD from node_modules
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Core with Network</title>
<!-- gulp html-head ==style quartz ==io json ==renderer svg ==toolkit util ==root .. -->
<!-- Built with RPD v2.0.0 <http://shamansir.github.io/rpd> -->
@shamansir
shamansir / Whatever.elm
Last active December 13, 2017 13:37
Elm v0.18 ports with headless program (send value to JS once)
port module NodeRepl21 exposing (..)
import Html exposing (Html, div, text, span)
import Html
import Dict
import Platform exposing (..)
import Json.Decode
f_o_o_b_a_r_122 = (div [] [])
f_o_o_b_a_r_123 = (div [])
f_o_o_b_a_r_124 = (Html.a)