Skip to content

Instantly share code, notes, and snippets.

View whitetigle's full-sized avatar

Whitetigle whitetigle

View GitHub Profile
@whitetigle
whitetigle / esclottes2017_1.rb
Last active May 29, 2017 12:09
Compo basis for concert
bpm = 120
# notre rythme de pasue de base
rythm = 0.25
# notre note de base
baseNote = :A3
# notre mode
type = :minor
@whitetigle
whitetigle / mario.rb
Created June 1, 2017 09:02
wip Super mario sonic pi
use_bpm 120
rythm = 0.25
synth = [ :piano, :beep, :chiplead, :dsaw ]
fx = [ :bitcrusher, :bitcrusher , :krush, :krush]
live_loop :theme do
s = synth[0]
f = fx [0]
with_fx f do
with_synth s do
@whitetigle
whitetigle / Fable.Import.Waud.fs
Created June 14, 2017 16:04
Waud.js bindings for fable
namespace Fable.Import
open Fable.Core
open Fable.Import.JS
open Fable.Import.Browser
open Fable.Core.JsInterop
module Waud =
@whitetigle
whitetigle / casquenoir.md
Last active March 12, 2019 09:08
Casque noir dev log

Casque noir.com

The project

For several years, Casque Noir, a Canadian non-profit organization, has been researching about urban mutations of Haïti Island's capital, Port-au-Prince's most famous deprived urban neighbourhood: Jalousie

Jalousie Credit: Nathalie Claude

One of the main problem in Jalousie is rubbish spreading everywhere, mostly thanks to plastic based items, one being water bags called Alaska. The Guardian made a photo report about it a few years ago.

@whitetigle
whitetigle / Paper.fs
Created July 10, 2017 13:58
Paper.js bindings
namespace Fable.Import
open System
open System.Text.RegularExpressions
open Fable.Core
open Fable.Import.JS
open Fable.Import
open Fable.Core.JsInterop
type NativeMouseEvent =
@whitetigle
whitetigle / Paper.fs
Created July 10, 2017 13:58
Paper.js bindings
namespace Fable.Import
open System
open System.Text.RegularExpressions
open Fable.Core
open Fable.Import.JS
open Fable.Import
open Fable.Core.JsInterop
type NativeMouseEvent =
@whitetigle
whitetigle / ServerSocket.fs
Last active July 12, 2017 07:52
sample code for Suave websocket
module ServerSocket
open Suave.Sockets
open Suave.Sockets.Control
open Suave.WebSocket
open System.Threading
let broadCast = new Event<byte[]>()
let broadCasted = broadCast.Publish
module Pixi
open System
open Fable.Core
open Fable.Core.JsInterop
open Fable.Import
open Fable.Import.Pixi
open Fable.Import.Browser
open Fable.Import.JS
open Fable.Pixi
@whitetigle
whitetigle / App.fs
Last active December 4, 2017 15:17
The very first PixiJS sample ported to Fable and F#
module Pixi
open System
open Fable.Core
open Fable.Core.JsInterop
open Fable.Import
open Fable.Import.Pixi
open Fable.Import.Browser
open Fable.Import.JS
@whitetigle
whitetigle / App.js
Created December 4, 2017 15:35
Basic PixiJS sample
var app = new PIXI.Application(800, 600, {backgroundColor : 0x1099bb});
document.body.appendChild(app.view);
// create a new Sprite from an image path
var bunny = PIXI.Sprite.fromImage('required/assets/basics/bunny.png')
// center the sprite's anchor point
bunny.anchor.set(0.5);
// move the sprite to the center of the screen