Collected on 2013-02-12 and 2013-02-13.
The ten best players against each other.
- Maciej Celuch
- Daniel Sepczuk
- Naked Face
- Frode Lillevold
$ perl -Mautodie -Mstrict -wE ' | |
my @l; | |
for (<hvh/*>, <hvm/*>, <mvm/*>) { | |
open my $IN, "<", $_; | |
my @lines = <$IN>; | |
push @l, sprintf "%12s %s", $_, join "", map { | |
/swaps/ ? "S" | |
: /resigns/ ? "R" | |
: /times out/ ? "T" | |
: "." |
<swarley> Two point charges, q1 and q2 are placed 0.30m apart on the x-axis, as show in the figure above. Charge | |
q1 has a value of -3e-9 C. The net electric field at point P is zero. Calculate the magnitude and charge | |
of q2. | |
<masak> swarley: where's point P? | |
<swarley> 0.1m left of point q1 | |
Formula: | |
|E| = 1/(4 pi e0) |q|/r**2 |
role Filter[Int $factor] { | |
method next { repeat until $.value % $factor { callsame } } | |
} | |
class Stream { | |
has Int $.value is rw = 1; | |
method next { ++$.value } | |
method filter { self but Filter[$.value] } | |
} |
$_ = sub ($_) { | |
state $value = 1; | |
when 'value' { $value } | |
when 'next' { ++$value; &?ROUTINE } | |
when 'filter' { | |
sub (&substream, $factor) { | |
sub ($_) { | |
state $value = 0; | |
when 'value' { $value } | |
when 'next' { $value = &substream('next')('value') until $value % $factor; &?ROUTINE } |
class FilteringStream { ... } | |
role Stream { | |
method next { ... } | |
method value { ... } | |
method filter { | |
return FilteringStream.new(:factor($.value), :substream(self)); | |
} | |
} |
use MONKEY_TYPING; | |
enum TimeUnit < | |
second seconds minute minutes hour hours | |
day days week weeks month months year years | |
>; | |
augment class DateTime { | |
method delta($amount, TimeUnit $unit) { | |
my ($hour, $minute) = $!hour, $!minute; |
sub MAIN($n) { | |
whole($n, node()); | |
} | |
my $counter = 0; | |
sub node(*@parents) { | |
my $node = "node " ~ ++$counter; | |
say "Creating $node", @parents && " with parents " ~ @parents.grep(&defined).join(', '); | |
return $node; | |
} |
# o | |
# 1 | |
# |\ | |
# | 2 | |
# |/ | |
# 3 | |
# 1 | |
# |\ |
<!doctype html> | |
<html lang=en> | |
<head> | |
<meta charset=utf-8> | |
<titleExample presentation</title> | |
<link href='http://fonts.googleapis.com/css?family=IM+Fell+DW+Pica+SC' rel='stylesheet' type='text/css'> | |
<style> | |
body { | |
font-family: "IM Fell DW Pica SC", arial, serif; | |
font-size: 500%; |