Gibber uses javascript.
This file contains 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
case class UserInfo(name: String, email: String) | |
case class PaidUser(id: Long, name: String, email: String, payments: Double) | |
object PaidUser { | |
class PaidUserExtended(user: PaidUser) { | |
def userInfo: UserInfo = UserInfo(user.name, user.email) | |
} |
This file contains 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
data Car = Car { | |
parcels :: Int, | |
driverName :: String, | |
isInsured :: Boolean | |
} | |
data Bicycle = Bicycle { | |
parcels :: Int, | |
riderName :: String, | |
isFixie :: Boolean |
This file contains 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 com.rumblesan.marsrover | |
import cats._ | |
import cats.instances.list._ | |
import cats.instances.either._ | |
import Commands.Command | |
import Headings.Heading | |
case class Mission(startX: Int, startY: Int, startHeading: Heading, commands: List[Command]) |
This file contains 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
s = Server.local | |
s.boot | |
b = Buffer.read(s, "/Users/guy/src/grains/sounds/vox.wav"); | |
( | |
SynthDef("mygrains", { | |
arg trate = 1, bufnum = 0; |
Hey, I'm asking people to do me a favour and check the cross platform builds of Improviz.
It should be really easy, and is much appreciated.
First, go download the right build from the release on GitHub. https://github.com/rumblesan/improviz/releases
Unzip that to somewhere, browse to the folder in your terminal of choice, and then run the improviz
executable.
(Double clicking seems to do some weird stuff around changing the working directory. Should be fixed in a later version.)
This file contains 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
var ctx = new AudioContext(); | |
var osc1 = audioCtx.createOscillator(); | |
osc1.type = 'square'; | |
osc1.frequency.setValueAtTime(440, ctx.currentTime); | |
osc1.start(); | |
var osc2 = audioCtx.createOscillator(); | |
osc2.type = 'square'; |
This file contains 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
stroke(0, 200, 255) | |
noFill() | |
move(3, -2, 0) | |
func cycle(speed, delta, scale, &b) | |
x = sin(time*speed) * scale | |
y = sin(time*speed*delta) * scale | |
move(x, y, 0) | |
if (!isNull(b)) | |
b() |