Skip to content

Instantly share code, notes, and snippets.

View shamansir's full-sized avatar
💭
Noodling

Ulric Wilfred shamansir

💭
Noodling
View GitHub Profile
@roovo
roovo / CanvasTexture.elm
Created April 11, 2017 16:07
elm: stuff wot I did to get text from canvas into webGL
module CanvasTexture exposing (canvasTexture)
-- imports are weird for Native modules
-- You import them as you would normal modules
-- but you can't alias them nor expose stuff from them
import Task exposing (Task)
import WebGL exposing (Error, Texture)
import Native.CanvasTexture
-- this will be our function which returns a number plus one
@kritzcreek
kritzcreek / Kinds-and-do-syntax.md
Last active March 28, 2020 11:51
Kinds and Do-Syntax

Kinds

In PureScript there are types of different kinds. Kinds are types for types. For example Int has kind Type, and we write it as Int :: Type. You can ask for the kind of a type in purs psci

> :k Int
Type

Type constructors take types to other types. For example Array (which still needs another type to form a type a value could have, like Array Int):

@nqthqn
nqthqn / plugins.md
Created August 22, 2017 23:42
Elm Plugins for vscode
@vyorkin
vyorkin / either-ex.hs
Created February 16, 2018 14:26
either-ex
module Evaluator where
import Data.Char
import qualified Data.Map as M
newtype Evaluator a = Ev (Either String a)
instance Functor Evaluator where
fmap f (Ev a) = Ev $ fmap f a
@johnhw
johnhw / umap_sparse.py
Last active May 11, 2025 07:18
1 million prime UMAP layout
### JHW 2018
import numpy as np
import umap
# This code from the excellent module at:
# https://stackoverflow.com/questions/4643647/fast-prime-factorization-module
import random
@echophon
echophon / orca_x_hydra.js
Last active September 28, 2022 21:05
orca_x_hydra.js
// Example of OSC control of Hydra video synth w/Orca programming language
// by Yancy Way (echophon)
//
// https://github.com/hundredrabbits/Orca
// https://github.com/ojack/hydra
// https://github.com/ojack/hydra-examples
// https://atom.io/packages/atom-hydra
//
// Prerequisites: Orca, Atom, Atom-hydra extension
//