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
<!DOCTYPE HTML> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title></title> | |
<style type="text/css"> | |
html { | |
font-size: 200%; | |
} | |
</style> |
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
// ==UserScript== | |
// @id winpath_to_cifs | |
// @author zentooo | |
// @name winpath_to_cifs | |
// @include http://example.com/* | |
// ==/UserScript== | |
var textNodes = document.evaluate("/html/body//text()", document, null, XPathResult.UNORDERED_NODE_ITERATOR_TYPE, null); | |
var textNode = textNodes.iterateNext(); |
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
offended 1 | |
Well 2 | |
you 5 | |
cold 1 | |
which 1 | |
form 1 | |
come 2 | |
thanks 1 | |
my 2 | |
two 2 |
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 Plack::App::WrapCGI; | |
$ENV{GIT_PROJECT_ROOT} = "/path/to/parent/directory/of/git/repositories"; | |
$ENV{GIT_HTTP_EXPORT_ALL} = 1; | |
Plack::App::WrapCGI->new(script => "/usr/lib/git-core/git-http-backend", execute => 1)->to_app; |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/"> | |
<ShortName>mpan</ShortName> | |
<Description>metacpan search</Description> | |
<InputEncoding>UTF-8</InputEncoding> | |
<Image width="16" height="16">data:image/vnd.microsoft.icon,%00%00%01%00%01%00%10%10%00%00%01%00%20%00h%04%00%00%16%00%00%00(%00%00%00%10%00%00%00%20%00%00%00%01%00%20%00%00%00%00%00%00%00%00%00%13%0B%00%00%13%0B%00%00%00%00%00%00%00%00%00%00%FF%FF%FF%00%FF%FF%FF%00%FF%FF%FF%00%FF%FF%FF%00%D7%D7%D7%FF%BE%BE%BE%FF%A6%A6%A6%FF%92%92%92%FFyyy%FFaaa%FFEEE%FF---%FF%10%10%10%FF%AA%AA%AA%FF%FF%FF%FF%00%FF%FF%FF%00%FF%FF%FF%00%FF%FF%FF%00%FF%FF%FF%00%AA%AA%AA%FF%18%18%18%FF%14%14%14%FF%0C%0C%0C%FF%08%08%08%FF%08%08%08%FF%08%08%08%FF%04%04%04%FF%04%04%04%FF%04%04%04%FF(((%FF%CA%CA%CA%FF%FF%FF%FF%00%FF%FF%FF%00%FF%FF%FF%00%FF%FF%FF%00uuu%FF%00%00%00%FF%00%00%00%FF%00%00%00%FF%00%00%00%FF%00%00%00%FF%00%00%00%FF%00%00%00%FF%00%00%00%FF%08%08%08%FF%14%14%14%FF%C6%C6%C6%FF%FF%FF%FF%00%FF%FF%FF%00%E7%E7%E7%FFaaa% |
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($) { | |
var key = "__schema__"; | |
var attrMap = { | |
required: "required", | |
pattern: "pattern", | |
step: "divisibleBy", | |
min: "minimum", | |
max: "maximum", |
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 qw/say/; | |
our $_add = our $_remove = sub { | |
say "add and remove should be called in builder block!"; | |
}; |
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title></title> | |
<div class="a" onclick="this.parentNode.removeChild(this);">a - remove</div> | |
<div class="a" onclick="this.parentNode.appendChild(this.cloneNode(true));">a - clone</div> | |
<div class="a" onclick="this.appendChild(this.cloneNode(true));">a - appendChild</div> | |
<div class="b" onclick="this.parentNode.removeChild(this);">b - remove</div> |
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
module.exports = function(grunt) { | |
var now = String(Date.now()); | |
var jsResult = "<%= dirs.js %>/target/" + now + ".js"; | |
var cssResult = "<%= dirs.css %>/target/" + now + ".css"; | |
var jsGzipped = jsResult + ".gz"; | |
var cssGzipped = cssResult + ".gz"; | |
var compressFiles = {}; | |
compressFiles[jsGzipped] = jsResult; |
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 Net::DNS::Nameserver; | |
my $ns = Net::DNS::Nameserver->new( | |
LocalPort => 53, | |
ReplyHandler => sub { print "query" }, | |
Verbose => 1, | |
) || die "couldn't create nameserver object\n"; |