Skip to content

Instantly share code, notes, and snippets.

View fvox's full-sized avatar

Junior Moraes fvox

  • Precifica
  • São Paulo
View GitHub Profile
@fvox
fvox / output.txt
Last active September 1, 2021 16:43
<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"
},
#!/usr/bin/env perl
use common::sense;
use JavaScript::V8;
use Data::Printer;
my $code = <<JAVASCRIPT_CODE;
function MyClass() {
var id = 123456;
}
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";
@fvox
fvox / startup
Last active August 29, 2015 13:57
fvox startup apps
#!/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`);
<?php
function randStr($length) {
$chars = "abcdefghijklmnopqrstuvwxyz";
$string = null;
for ($i = 0; $i < $length; $i++)
$string .= $chars[rand(0, strlen($chars) - 1)];
return $string;
}
<?php
function randStr($length) {
$chars = "abcdefghijklmnopqrstuvwxyz";
$string = null;
for ($i = 0; $i < $length; $i++)
$string .= $chars[rand(0, strlen($chars) - 1)];
return $string;
}
@fvox
fvox / fork_call.pl
Created July 10, 2012 20:44
fork_call problem with ipc [fix'd]
#!/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 = ();
@fvox
fvox / nocache.user.js
Created May 24, 2012 07:18
Nocache addon for forum uol jogos
// ==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() {