Skip to content

Instantly share code, notes, and snippets.

View hayleigh-dot-dev's full-sized avatar

Hayleigh Thompson hayleigh-dot-dev

  • webkid, data2impact
View GitHub Profile
@hayleigh-dot-dev
hayleigh-dot-dev / link-button.css
Created July 10, 2020 14:05
Style an HTML button to look like an anchor link.
module Limiter exposing
( Limiter, Msg
, debounce, throttle
, event, push
, update
)
{-| A Limiter is a handy way of slowing down the number of messages or events
we get from a particular source. We have two main methods of rate-limiting this
data:
module Limiter exposing
( Limiter, Msg
, debounce, throttle
, event, push
, update
)
{- Imports ------------------------------------------------------------------ -}
import Process
import Task
import 'colors'
import { Elm } from './Main.elm'
import * as REPL from 'repl'
// I don't know if this actually does anything. I set this when I was fucking around
// trying to support `shift+Enter` but that didn't work so here we are....
process.stdin.setRawMode(true)
process.stdin.setEncoding('utf8')
const res = s => console.log(' : ' + s.grey)
module Lisp exposing
( Expression
, Error
, run
)
{- Imports ------------------------------------------------------------------ -}
import Dict exposing (Dict)
import Result.Extra
import Parser exposing (Parser, (|=), (|.))
module AdventOfCode.Day01 exposing
( part1
, part2
)
-- Imports ---------------------------------------------------------------------
import Utils
-- Functions -------------------------------------------------------------------
--
/* global AudioContext */
import Program from 'program-instrument'
import * as Node from 'audio-node'
import * as Prop from 'audio-property'
import * as Note from 'music-note'
import * as Time from 'music-time'
import * as Html from 'html-element'
module Generators.World exposing ( generateWorld )
import List.Extra
import Utils.Interpolate exposing ( interpolateFloatList )
import Utils.Noise as Noise
import Random
import Types exposing (..)
-------------------------------------------------
-- Main functions