Skip to content

Instantly share code, notes, and snippets.

View samlecuyer's full-sized avatar

Sam L'ecuyer samlecuyer

  • Yahoo
  • Los Angeles
View GitHub Profile
<*.{byte,native}>: g++, use_llvm, use_llvm_analysis
@samlecuyer
samlecuyer / filters.go
Created July 10, 2012 02:49
lazy iterables in go
package main
import (
"fmt"
"math/rand"
)
type DataSource interface {
Next() Element
}
@samlecuyer
samlecuyer / filters.go
Created July 10, 2012 02:46
lazy iterables in go
package main
import (
"fmt"
"math/rand"
)
type DataSource interface {
Next() Element
}
var expect = require('chai').expect;
var _ = require('lodash');
var fs = require('fs');
// This generates a set of unique dominoes up to a double-n (dn)
function generate_set(dn) {
var set = [];
for (i = 0; i <= dn; i++) {
for (j = i; j <= dn; j++) {
<style type="text/css">
canvas.perlin, img {
max-width: 100%;
width: auto;
display: block;
margin: auto;
}
canvas.plasma {
height: 200px;
}
@samlecuyer
samlecuyer / logo.css
Created August 30, 2016 17:45
spirit reform logo
.logo {
color: #333;
height: 100px;
width: 100px;
font-size: 100px;
line-height: 100px;
display: flex;
justify-content: center;
align-items: center;
position: relative;
@samlecuyer
samlecuyer / post.html
Last active September 20, 2016 10:43
perlin noise post 1
<style type="text/css">
canvas.perlin {
display: block;
margin: auto;
}
canvas.plasma {
height: 200px;
}
</style>