Skip to content

Instantly share code, notes, and snippets.

View vito's full-sized avatar

Alex Suraci vito

View GitHub Profile
Component | Cost | Details | URL
-----------------------------------------------------
Tubing | $ 24.24 | 10' | http://www.mcmaster.com/#9362t3/=em9a6
Clamps | $ 17.80 | 20x | http://www.koolance.com/water-cooling/product_info.php?product_id=232
GPU Block | $ 99.99 | GTX 285 Card | http://www.koolance.com/water-cooling/product_info.php?product_id=777
CPU Block | $ 82.99 | i7 (LGA 1366) | http://www.koolance.com/water-cooling/product_info.php?product_id=755
Resevoir | | |
& Pump | $ ---.-- | 5.25" Bay | http://www.koolance.com/water-cooling/product_info.php?product_id=280
- Nozzles | $ -.-- | 10mm ID Barb |
- Coolant | $ --.-- | High-perf. 700mL |
[Session]
session.save_handler = files
session.use_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.cookie_httponly =
session.serialize_handler = php
@vito
vito / html.go
Created November 13, 2009 01:56
package main
import ("fmt"; "reflect");
type Element struct {
name string;
contents []string;
attributes map[string]string;
}
. |
| .
. |
| .
. |
| .
. |
| .
. |
| .
-- starts a match of n volleys
volley: (n: Integer) = {
-- start up the ponger
proc = { notify |
pong: notify
} spawn-with: [self]
-- start up the pinger
{ ping: n ponger: proc } spawn
} do
$ the
> load: "prelude/list.the"
> 0 .. 10
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
> 10 .. 0
[10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0]
> "foo" .. "bar"
"foobar"
$ the
> a = 0
> { a = a + 1; a print } do -- normal; assigns a only within the block
1
> a
0
> action = { a = a + 1; a print }
> action scope do: action -- now executing it as part of its original scope
1
<prototype (delegates to <bottom>)
@vito
vito / problem 1.the.hs
Created July 30, 2010 15:05
Project Euler solutions in The
problem-1: max = {
(0 ... max)
(filter: { n | 3 divides?: n || 5 divides?: n })
sum
} do
(problem-1: 1000) print
> import: "prelude/expression.hs"
> Expression Block new
{}
> Expression Block new: []
{}
> Expression Block new: [1]
{1}
> Expression Block new: [1, 2]
{1; 2}
> Expression Block new: { a = 1; a + 2 } contents
> (x: Block) .. (y: Block) = Block new: (x contents .. y contents)
> {a = 1} .. {a + 1}
{a = 1; (a + 1)}
> ({a = 1} .. {a + 1}) evaluate do
2