Skip to content

Instantly share code, notes, and snippets.

View thomashoneyman's full-sized avatar

Thomas Honeyman thomashoneyman

View GitHub Profile
@thomashoneyman
thomashoneyman / Main.purs
Created August 23, 2021 14:53
Formless + Halogen Store
module Main where
import Prelude
import Data.Newtype (class Newtype, unwrap)
import Data.Either (Either(..))
import Data.Int as Int
import Data.Maybe (Maybe(..))
import Effect (Effect)
import Effect.Aff.Class (class MonadAff)
@thomashoneyman
thomashoneyman / hello.js
Last active July 12, 2021 22:31
hello.js
window.run = () => console.log("hello");
@thomashoneyman
thomashoneyman / Main.purs
Last active April 11, 2021 00:15
Lazy / Slot Halogen Issue
module Main where
import Prelude
import Control.Monad.Rec.Class (forever)
import Data.Maybe (Maybe(..))
import Data.Identity (Identity(..))
import Data.Symbol (SProxy(..))
import Effect (Effect)
import Effect.Aff (Aff, Milliseconds(..))
@thomashoneyman
thomashoneyman / shell.nix
Created March 19, 2021 20:00
PureScript 0.13.8 Shell
let
pkgs = import (builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/20.09.tar.gz";
}) {};
# 2021-03-14 nix-prefetch-git https://github.com/justinwoo/easy-purescript-nix
pursPkgs = import (pkgs.fetchFromGitHub {
owner = "justinwoo";
repo = "easy-purescript-nix";
rev = "e8a1ffafafcdf2e81adba419693eb35f3ee422f8";
@thomashoneyman
thomashoneyman / Main.purs
Created June 18, 2020 20:26
Component fails to dispose
module Main where
import Prelude
import Control.Parallel (parTraverse_)
import Data.Maybe (Maybe(..))
import Effect (Effect)
import Effect.Aff (Aff, Milliseconds(..), delay)
import Halogen as H
import Halogen.Aff (awaitBody, runHalogenAff)
@thomashoneyman
thomashoneyman / Main.purs
Created June 18, 2020 01:27
Pass callback to Halogen child
module Main where
import Prelude
import Data.Foldable (for_)
import Data.Maybe (Maybe(..))
import Data.Symbol (SProxy(..))
import Effect (Effect)
import Effect.AVar as AVar
import Effect.Aff (Aff)
services.nginx = {
enable = true;
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
virtualHosts = {
"${domain}" = {
@thomashoneyman
thomashoneyman / SketchSystems.spec
Last active August 27, 2019 23:50
Query System&
Query System&
Query Panel State
user input -> Processing
Initial
user submits -> Executing
Processing
Process Pending*
@thomashoneyman
thomashoneyman / config.nix
Last active March 18, 2019 05:14
NixOS Configuration (Macbook Pro 2015)
# ~/.config/nixpkgs/config.nix
{ }