This file contains hidden or 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
use strict; | |
use warnings; | |
package Java::Util::Iterator; | |
use Moose::Role; | |
requires 'hasNext', 'next', 'remove'; | |
package Frequency::Iterator::Single; |
This file contains hidden or 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
use strict; | |
use warnings; | |
package Frequency::Iterator; | |
# ABSTRACT: Module who abstract a frequency iterator | |
use Exporter 'import'; | |
use Carp qw(croak); | |
use List::MoreUtils qw(any natatime pairwise); |
This file contains hidden or 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 proxy.pl | |
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> | |
00 01 02 03 04 05 06 07 - 08 09 0A 0B 0C 0D 0E 0F 0123456789ABCDEF | |
00000000 00 00 00 01 01 ..... | |
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< | |
. |
This file contains hidden or 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
$ ruby -v | |
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux] | |
$ perl -v | |
This is perl 5, version 12, subversion 2 (v5.12.2) built for x86_64-linux | |
$ python --version | |
Python 2.7.5+ | |
$ uname -a |
This file contains hidden or 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
use Time::Out qw(timeout); | |
use DDP; | |
sub run_with_timeout(&$$) { | |
my $block = shift; | |
my $timeout = shift; | |
timeout $timeout, @_ => sub { | |
my $pool = shift; | |
while ( my $s = pop @$pool ) { | |
$block->($s); |
This file contains hidden or 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
all: | |
@gcc -Wall a.c -o a.exe | |
clean: | |
@rm -rf / |
This file contains hidden or 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
function foo { | |
read -p "digite a opcao: " OPCAO | |
case $OPCAO in | |
a) echo "a" ;; | |
b) echo "b" ;; | |
c) foo ;; | |
*) echo "opcao invalida '$OPCAO'"; exit 1 ;; | |
esac | |
} |
This file contains hidden or 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
use strict; | |
use warnings; | |
use feature 'say'; | |
use Memory::Usage; | |
my $mu = Memory::Usage->new(); | |
$mu->record('starting work'); | |
package Foo; |
This file contains hidden or 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
500 Internal Server Error | |
Sorry, something went wrong. | |
A team of highly trained monkeys has been dispatched to deal with this situation. | |
If you see them, show them this information: | |
CkGlKqTxgvnj8qwrZk2-uUhfJUJZhAosQVThK4q_qqNuQeg-FKXqX_F-fLj9 | |
5VnDkqOpPuBSVRl6xQNiyLB5ZOHQvchhR_Cctoy_KxCqhpKgkHj7WGRBLmsD | |
QH2RXP4uFBgF_bJIJBahOASIe_xmDe405Uyt8-5hEEARgb34CGysBBIdxHmI |
This file contains hidden or 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
Crianças, aprendam: | |
Se vcs colocarem isto nos comentarios do site da ISTO É | |
<script> | |
$(document).ready(function(){ | |
$('#materiaTopo').html('Mal feito isso aqui hein?'); | |
$('#divCompleta').html('<img src="http://www.acunetix.com/wp-content/uploads/2012/10/PTMFOG0000001530.png" />'); | |
alert('Eu sou terrivel... '); | |
}); |