Skip to content

Instantly share code, notes, and snippets.

@kevingessner
kevingessner / gist:1229202
Created September 20, 2011 14:20
LambdaDisposable
private class LambdaDisposable<T> : IDisposable
{
private Action<T> dispose_;
public T Value
{
get;
private set;
}
<?php
class × {
static function ¼($n) {
return $n/4;
}
static function ½($n) {
return $n/2;
}
<!DOCTYPE html>
<html>
<head>
<title>Sea Change</title>
<style>
body {
background: #335;
text-align: center;
}
</style>
php > $a = [['foo' => 'bar']];
php > foreach ($a as $b) $b['foo'] = 'quux';
php > print_r($a);
Array
(
[0] => Array
(
[foo] => bar
)