I hereby claim:
- I am cfdrake on github.
- I am cfdrake (https://keybase.io/cfdrake) on keybase.
- I have a public key ASBl8RnKSX2-ovDUTxGysMUBjuGRUDYifnnvq5lukHhRego
To claim this, I am signing this object:
| //: Inventing Objects: A Playground exploring the creation of a simple object pattern | |
| // | |
| // Demonstrates: | |
| // - Message Passing | |
| // - Encapsulation | |
| // - Composition/Inheritance/Delegation | |
| // - Open Recursion (...in a crummy way...) | |
| // - Encapsulated, mutable state | |
| import Foundation |
I hereby claim:
To claim this, I am signing this object:
| //: Playground - noun: a place where people can play | |
| /// A type which is buildable and appendable from a zero value. | |
| protocol Monoid { | |
| /// Returns the zero value. | |
| static func empty() -> Self | |
| /// Appends one Monoid value to another. | |
| func append(_ m: Self) -> Self | |
| } |
| #!/usr/bin/env zsh | |
| # ------------------------------------------------------------------------------ | |
| # | |
| # Pure - A minimal and beautiful theme for oh-my-zsh | |
| # | |
| # Based on the custom Zsh-prompt of the same name by Sindre Sorhus. A huge | |
| # thanks goes out to him for designing the fantastic Pure prompt in the first | |
| # place! I'd also like to thank Julien Nicoulaud for his "nicoulaj" theme from | |
| # which I've borrowed both some ideas and some actual code. You can find out |
| /* Dim tags in editor view. */ | |
| #editor-title-bar .editor-tags .tags-input { | |
| color: rgba(0,0,0,0.23) !important; | |
| } | |
| /* Hide note previews in list view. */ | |
| .app .notes .note .note-preview { | |
| display: none !important; | |
| } |
| void setup() { | |
| // Set window size. | |
| size(600, 600); | |
| // Use for high def monitors. | |
| pixelDensity(2); | |
| // Turn off looping draw(), only run once. | |
| noLoop(); | |
| } |
| {{< top-aligned-video id="477427614" height="518" img="https://i.vimeocdn.com/video/1014202042_480.jpg" >}} | |
| {{< top-aligned-video id="476969261" height="518" img="https://i.vimeocdn.com/video/1014202292_480.jpg" >}} | |
| {{< top-aligned-video id="476969354" height="395" img="https://i.vimeocdn.com/video/1014202537_480.jpg" >}} | |
| {{< top-aligned-video id="476969093" height="405" img="https://i.vimeocdn.com/video/1014202968_480.jpg" >}} | |
| {{< top-aligned-video id="477431886" height="425" img="https://i.vimeocdn.com/video/1014203384_480.jpg" >}} | |
| {{< top-aligned-video id="477431946" height="464" img="https://i.vimeocdn.com/video/1014203733_480.jpg" >}} | |
| {{< top-aligned-video id="476969177" height="392" img="https://i.vimeocdn.com/video/1014204029_480.jpg" >}} | |
| {{< top-aligned-video id="476969250" height="459" img="https://i.vimeocdn.com/video/1014204280_480.jpg" >}} | |
| {{< top-aligned-video id="476969148" height="381" img="https://i.vimeocdn.com/video/1014205021_480.jpg" >}} | |
| {{< top-aligned-video id="477431987" height="360" im |
| -- glut64 | |
| -- | |
| -- granular sampler in progress | |
| -- (currently requires a grid) | |
| -- | |
| -- trigger voices | |
| -- using grid rows 2-8 | |
| -- | |
| -- mute voices and record | |
| -- patterns using grid row 1 |
| -- mouse | |
| -- by @cfd90 | |
| MusicUtil = require "musicutil" | |
| hs = require('awake/lib/halfsecond') | |
| engine.name = "PolyPerc" | |
| last_x = 4 | |
| last_y = 4 |