Skip to content

Instantly share code, notes, and snippets.

View lambda-fairy's full-sized avatar

Chris Wong lambda-fairy

View GitHub Profile
@lambda-fairy
lambda-fairy / plan-74.markdown
Last active August 29, 2015 14:04
Plan for Hackage #74
@lambda-fairy
lambda-fairy / blahtris.html
Created July 22, 2014 06:36
Minimal Tetris implementation
<!DOCTYPE html>
<html>
<head>
<title>Blahtris</title>
<style type="text/css">
div#sandbox {
float: left;
position: relative;
}
div#msgbox {
@lambda-fairy
lambda-fairy / 2014-07-12.md
Last active August 29, 2015 14:03
2014-07-12

On <link rel="canonical">

20:14 <lfairy> ditching the redirect -- what do you think about that?
20:15 <dcoutts> mm
20:15 <dcoutts> adding things to the haddock pages isn't easy
20:15 <dcoutts> like the permalink thing
20:16 <dcoutts> because it's generated by haddock
20:16 <dcoutts> lfairy: honestly, I'd focus on the slightly larger projects that are harder for random volunteers to get into
@lambda-fairy
lambda-fairy / Hack0.hs
Last active November 22, 2016 05:56
Hacking number literals
instance (Integral a, Num b) => Num (a -> b) where
fromInteger x = \y -> fromInteger (x * 1000 + toInteger y)
a, b :: Integer
a = 12 345
b = 1 048 576
20:53 <lfairy> since Nala's getting retired soon, how about we throw her a farewell party
20:54 <lfairy> guys?
20:55 <lfairy> .c party, don't party
20:55 <Nala> lfairy: don't party
20:55 <lfairy> um, ok
@lambda-fairy
lambda-fairy / goaway.js
Last active August 29, 2015 14:02
Playing around with wavepot
// lfairy - go away
Array.prototype.sum = function() {
return this.reduce(function(a, b) { return a + b; }, 0);
};
function dsp(t) {
var base = Math.floor(t) % 2 ? 261.63 : 220;
var wave = [base, 3/2 * base, 4/3 * base, 5/2 * base].map(function(freq) { return 0.1 * sub(sin(freq, t), 1, t); }).sum();
package: hello-1.0.1.2
os: linux
arch: x86_64
compiler: ghc-7.6.3
client: cabal-install-1.20.0.2
dependencies: base-4.6.0.1
install-outcome: InstallOk
docs-outcome: Ok
tests-outcome: NotTried
@lambda-fairy
lambda-fairy / names.txt
Last active August 29, 2015 14:02
Interesting pony names
Acid Test
Aqua Regia
Branch Cut
Break Even
Cash Flow
Ellie and Ella
Emmentaler
First Mover
Fore Sight
Graham Cracker
@lambda-fairy
lambda-fairy / maintain-package.md
Last active August 29, 2015 14:01
Custom docs copy

/package/:package/maintain

Maintain bonbon version 1.2.1

Status: build successful (green) / build pending (yellow) / docs uploaded by maintainer (blue) / build failed

@lambda-fairy
lambda-fairy / boxing.md
Created January 24, 2014 01:55
The History of Boxing, by Jim Crawford

Boxing has been in the news lately since Uwe Boll, in an attempt to prove that his films are good after all, challenged his critics to take him on in the ring. But did you know that boxing was not always a violent sport?

As conceived in 1632 by Portuguese printing press operator Andre Felipe, boxing was a gentleman's game, in which two men would square off and regale each other with stories monotonous for days on end, until one of them fell to the ground from boredom or exhaustion. Over the next few years the new sport developed a respectable following of a few hundred local socialites.

Ironically, it was Felipe's son, Andre Felipe Felipe, who developed what he called the “Punching” strategy, in 1637, after seeing a schoolboy strike another in anger, causing him to fall down. When Andre Felipe Felipe challenged the then-champion, British expatriate “Sleepless” Bill Bishop, to a match, Bishop was the odds-on favorite. You can imagine his surprise when, while he was describing what he had had for breakfast th