This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with import <nixpkgs> {}: | |
let fhs = pkgs.buildFHSUserEnv { | |
name = "ngrok-env"; | |
targetPkgs = pkgs: with pkgs; | |
[ glibc | |
]; | |
}; | |
in pkgs.stdenv.mkDerivation { | |
name = "ngrok"; | |
buildInputs = [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE ExplicitForAll #-} | |
{-# LANGUAGE RankNTypes #-} | |
{-# LANGUAGE PatternSynonyms #-} | |
{-# LANGUAGE ViewPatterns #-} | |
module Jam_2016_10_05 where | |
-- tempo sync | |
import Hylogen.WithHylide |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE ExplicitForAll #-} | |
{-# LANGUAGE RankNTypes #-} | |
{-# LANGUAGE PatternSynonyms #-} | |
{-# LANGUAGE ViewPatterns #-} | |
module Jam_2016_10_05 where | |
-- tempo sync | |
import Hylogen.WithHylide |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE TypeFamilies #-} | |
{-# LANGUAGE RankNTypes #-} | |
{-# LANGUAGE GADTs #-} | |
module Jam_2016_10_10 where | |
import Util | |
output = toProgram (remix rgba uvN) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE GADTs #-} | |
module Jam_2016_10_29 where | |
import Util | |
output = toProgram $ vec4 (v, v, v, 1) | |
& over (webcamF (texture2D channel2) uvN) | |
& mix 0.1 (bbF (texture2D backBuffer) uvN) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE GADTs #-} | |
module Jam_2016_10_29 where | |
import Util | |
output = toProgram $ (bbF (texture2D channel2) uvN) | |
bbF x = x | |
& lmap (view norm) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE GADTs #-} | |
module Jam_2016_10_29 where | |
import Util | |
output = toProgram $ vec4 (v, v, v, 1) | |
& (+(bbF (texture2D backBuffer) uvN * copy osc7)) | |
bbF x = x | |
& lmap (view norm) | |
& lmap (*0.99) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# example: | |
# | |
# > ./together "foo" "bar" "baz" | |
# | |
# runs foo, bar, baz as child processes | |
# ctrl-c will kill all | |
PID="$$" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE BangPatterns #-} | |
-- | Visualize bytebeat. currently doesn't print fast enough... | |
module Main where | |
import Control.Monad | |
import Data.Bits | |
import qualified Data.Char as C | |
import Data.List | |
import System.IO | |
import System.Environment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "os" | |
import "bufio" | |
func main() { | |
filename := os.Args[1] | |
audioFile, err := os.OpenFile(filename, os.O_APPEND|os.O_WRONLY, 0600) |