This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- On the "on" operator of Data.Function | |
-- https://hackage.haskell.org/package/base/docs/Data-Function.html#v:on | |
-- | |
-- on :: (b -> b -> c) -> (a -> b) -> a -> a -> c | |
-- with | |
-- (op `on` f) x y = f x `op` f y | |
-- | |
-- Question: is there any way to create a vararg combinator? | |
-- https://wiki.haskell.org/Varargs | |
-- onN :: (b -> b -> ... -> c) -> (a -> b) -> a -> a -> ... -> c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<qa> | |
<question lang="en">What is the answer to the ultimate question of life, the universe, and everything?</question> | |
<question lang="de">Wie lautet die antwort auf die Frage nach dem Leben, dem Universum und dem ganzen Rest?</question> | |
<answer>42</answer> | |
</qa> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use Carp; | |
BEGIN { | |
# uncomment to test pure Perl Mouse | |
# $ENV{MOUSE_PUREPERL} = 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
tasks => [ | |
{ | |
name => 'simple-sum', | |
description => 'Implement a function that adds two numbers!', | |
template => "sub sum {\n my (\$x, \$y) = \@_;\n\n}", | |
tests => [ | |
{name => 'zeroes', test => 'sum(0, 0)', expected => 0}, | |
{name => 'left zero', test => 'sum(0, 42)', expected => 42}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
not exp log srand xor s qq qx xor | |
s x x length uc ord and print chr | |
ord for qw q find redo ord helpme | |
eval scalar qx xor eval xor print | |
q q q xor int eval lc q m cos and | |
print chr ord for qw y flock each | |
s tell y m gt sin ref study split |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 Dec 13:44:50 ntpdate[30735]: ntpdate 4.2.6p2@1.2194-o Sun Oct 17 13:45:14 UTC 2010 (1) | |
transmit(130.75.1.32) | |
receive(130.75.1.32) | |
transmit(67.215.65.132) | |
transmit(130.75.1.32) | |
receive(130.75.1.32) | |
transmit(67.215.65.132) | |
transmit(130.75.1.32) | |
receive(130.75.1.32) | |
transmit(67.215.65.132) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# generate cool names | |
sub rand_name { | |
# split alphabet characters | |
my @vovels = qw(a e i o u); | |
my @consonants = grep {not $_ ~~ @vovels} 'a' .. 'z'; | |
my %chars = (a => \@vovels, p => \@consonants); | |
# build name by template | |
my @templates = qw(papa paapa pappa papaa apa pap paap pappa); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ perl -MMojolicious::Types -lne 'print @{Mojolicious::Types->detect($_)}' | |
application/json, text/javascript, */*; q=0.01 | |
application/json; q=1 | |
json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
couldn't find 363610690688122880! | |
couldn't find 114501616370974720! | |
couldn't find 115627289051398144! | |
couldn't find 115908769203879936! | |
couldn't find 173613530791018496! | |
couldn't find 113938422204203008! | |
couldn't find 180368087969693696! |
NewerOlder