Skip to content

Instantly share code, notes, and snippets.

View pete-murphy's full-sized avatar

Pete Murphy pete-murphy

View GitHub Profile
module App where
import Prelude
import Beta.DOM as DOM
import Beta.DOM.HTML as HTML
import Data.Foldable as Foldable
import Effect.Class.Console as Console
import Effect.Timer as Timer
-- import React.Basic.DOM as DOM
@pete-murphy
pete-murphy / flake.nix
Created April 17, 2023 00:10
zbg nix flake debugging
{
inputs = {
flake-utils.url = "github:numtide/flake-utils";
# nixpkgs.follows = "opam-nix/nixpkgs";
nixpkgs.url = "github:NixOS/nixpkgs/master";
# nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
# opam-nix = {
# url = "github:tweag/opam-nix";
# inputs.nixpkgs.follows = "nixpkgs";
# };
@pete-murphy
pete-murphy / commits-min.json
Last active February 1, 2023 20:28
monorail3 count lines
[
{
"id": "PR_kwDOEUG_Qs5I8CFw",
"number": 9160
},
{
"id": "PR_kwDOEUG_Qs5Iop1l",
"number": 9145
},
{
@pete-murphy
pete-murphy / Main.purs
Created October 31, 2022 02:42
TIL (WIP)
module Main where
import Prelude
import ArgParse.Basic (ArgParser)
import ArgParse.Basic as ArgParse
import Data.Array as Array
import Data.Either (Either(..))
import Data.Maybe (Maybe(..))
import Data.String (Pattern(..))
@pete-murphy
pete-murphy / Main.purs
Last active October 26, 2022 13:58
react-basic-hooks custom mouse move hooks
module Main where
import Prelude
import Data.Foldable as Foldable
import Data.Int as Int
import Data.Maybe (Maybe(..))
import Data.Nullable (Nullable)
import Data.Nullable as Nullable
import Effect (Effect)
@pete-murphy
pete-murphy / Main.purs
Last active September 11, 2022 17:14
ST push
module Main where
import Prelude
import Control.Monad.ST as ST
import Data.Array as Array
import Data.Array.ST as Array.ST
import Data.Foldable as Foldable
import Effect (Effect)
import Effect.Console as Console
@pete-murphy
pete-murphy / Main.purs
Created September 4, 2022 20:23
Move indices around STArray
module Main where
import Prelude
import Data.Foldable (fold)
import Effect (Effect)
import TryPureScript (h1, h2, p, text, list, indent, link, render, code)
import Control.Monad.ST as ST
import Data.Array.ST as Array.ST
@pete-murphy
pete-murphy / Main.purs
Last active September 4, 2022 00:26
Halogen click
module Main where
import Prelude
import Data.Maybe (Maybe(..))
import Effect (Effect)
import Effect.Aff (Aff, delay, Milliseconds(..))
import Halogen as H
import Halogen.Aff as HA
import Halogen.HTML as HH
@pete-murphy
pete-murphy / Main.purs
Created August 28, 2022 05:33
Halogen click
module Main where
import Prelude
import Data.Array (cons, drop, length)
import Effect (Effect)
import Effect.Aff (Aff, delay, makeAff, Milliseconds(..))
import Halogen as H
import Halogen.Aff as HA
import Halogen.HTML as HH