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
<html><head></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">{ | |
"selectors": { | |
"menuButton": "//div[@id='pkg-examples']//div", | |
"output": "//div[@id='example_After']//textarea" | |
}, | |
"steps": [ | |
{ | |
"action": "navigate", | |
"link": "https://golang.org/pkg/time" | |
}, |
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 common::sense; | |
use JavaScript::V8; | |
use Data::Printer; | |
my $code = <<JAVASCRIPT_CODE; | |
function MyClass() { | |
var id = 123456; | |
} |
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
use strict; | |
use warnings; | |
for (my $i = 100; $i < 999; $i++) { | |
do { | |
local $_ = $i * $_; | |
$_{0} = $_ if (uc eq reverse uc) && $_ > ($_{0} // 0); | |
} for 100 .. 999; | |
} | |
print $_{0}, "\n"; |
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 feature q(say); | |
use AnyEvent; | |
use Config::General q(ParseConfig); | |
sub check_wmctrl { | |
chomp(my $path = `which wmctrl`); |
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
<?php | |
function randStr($length) { | |
$chars = "abcdefghijklmnopqrstuvwxyz"; | |
$string = null; | |
for ($i = 0; $i < $length; $i++) | |
$string .= $chars[rand(0, strlen($chars) - 1)]; | |
return $string; | |
} |
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
<?php | |
function randStr($length) { | |
$chars = "abcdefghijklmnopqrstuvwxyz"; | |
$string = null; | |
for ($i = 0; $i < $length; $i++) | |
$string .= $chars[rand(0, strlen($chars) - 1)]; | |
return $string; | |
} |
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 common::sense; | |
use LWP::Simple; | |
use AnyEvent::Util; | |
use HTML::LinkExtor; | |
use Data::Printer colored => 1; | |
sub extract_links { | |
my @ret = (); |
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
// ==UserScript== | |
// @name Nocache for VT UOL | |
// @author Junior Moraes (fvox) | |
// @date 24/05/2012 | |
// @version 0.1 | |
// @include http://*forum.jogos.uol.com.br* | |
// ==/UserScript== | |
(function nocache() { |