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
import org.w3c.dom.Document; | |
import org.w3c.dom.Element; | |
import org.apache.batik.bridge.BaseScriptingEnvironment; | |
import org.apache.batik.bridge.BridgeContext; | |
import org.apache.batik.bridge.GVTBuilder; | |
import org.apache.batik.bridge.UserAgentAdapter; | |
import org.apache.batik.dom.svg.SAXSVGDocumentFactory; | |
import org.apache.batik.util.XMLResourceDescriptor; | |
import org.w3c.dom.ls.DOMImplementationLS; | |
import org.w3c.dom.ls.DOMSerializer; |
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
var properties = { | |
"alignment-baseline" : { | |
"ani" : true, | |
"app" : [ | |
"altGlyph", | |
"textPath", | |
"tref", | |
"tspan" | |
], | |
"inh" : false, |
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 -w | |
use Modern::Perl; | |
use String::CRC32; | |
use MIME::Base64; | |
use autodie; | |
##################################################################### | |
# Apply keyfiles to TrueCrypt passwords -- TrueCrypt allows users to | |
# specify one or more keyfiles that are applied to user passwords to | |
# make password recovery more difficult. Oddly, many of the popular |
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 -w | |
use Modern::Perl; | |
use XML::LibXML; | |
use Algorithm::Diff::XS; | |
##################################################################### | |
# Merges the Lynx rendering of a HTML document with libxml2-parsed | |
# DOM representation of the same document to figure out which parts | |
# of the text are in a blockquote element. This is useful when using | |
# a html2text program while wanting to format parts differently when |
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 -w | |
use Modern::Perl; | |
use Algorithm::Diff::XS; | |
use Test::More; | |
use Data::Random qw/rand_chars/; | |
sub compact_diff_to_sdiff { | |
my ($a, $b, @cdiff) = @_; | |
my @temp; |
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 -w | |
use Modern::Perl; | |
use Parse::ABNF; | |
use Data::Dumper; | |
use YAML::XS; | |
use Graph::Directed; | |
use List::OrderBy; | |
##################################################################### | |
# |
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
Request for status information | |
* ?action=about&... | |
* CAPABILITIES | |
* DATE | |
* ... | |
Retrieve some basic information about the service. For instance, | |
which authentication method the service would like to use, or if | |
some optional protocol features are implemented. Can also be used | |
to support the DATE command by looking at the Date header. If |
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
{ | |
"start": "State0", | |
"alphabet": { | |
... | |
}, | |
"symbols": { | |
"aA": { |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <Windows.h> | |
int | |
main(int argc, char *argv[]) { | |
char* buffer; | |
BOOL bStatus; | |
COORD coords; | |
HANDLE hConsole; |
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
{ | |
"results" : [ | |
{ | |
"address_components" : [ | |
{ | |
"long_name" : "\u003ca href=http://localhost:20000/form/DataTool.view_region?submit=Send+to+RPC&3=t&3.1=-22.467512&3.1.=y&3.2=-42.655755&3.2.=y&3.3=2.500000&3.3.=y&3.4=0.000000&3.4.=y&3.5=0.071465&3.5.=y&3.6=-1.143429&3.6.=y&database=mapmaker_prod\u003eSV pose\u003c/a\u003e", | |
"short_name" : "\u003ca href=http://localhost:20000/form/DataTool.view_region?submit=Send+to+RPC&3=t&3.1=-22.467512&3.1.=y&3.2=-42.655755&3.2.=y&3.3=2.500000&3.3.=y&3.4=0.000000&3.4.=y&3.5=0.071465&3.5.=y&3.6=-1.143429&3.6.=y&database=mapmaker_prod\u003eSV pose\u003c/a\u003e", | |
"types" : [ "route" ] | |
}, | |
{ |