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 strict; | |
use warnings; | |
use XML::LibXML; | |
use Set::IntSpan; | |
use Encode; | |
use JSON; | |
use Attribute::Memoize; | |
die "Usage: $0 rules.xml\n" unless @ARGV; |
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
using System; | |
class UriEq | |
{ | |
static void Main(String[] Args) | |
{ | |
Uri uri1 = new Uri("http://www.example.org/%61"); | |
Uri uri2 = new Uri("http://www.example.org/a"); | |
System.Console.WriteLine(uri1.Equals(uri2)); | |
} |
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 | |
# | |
# Generates ECMAScript code from an IDL interface description | |
# that annotates a DOM tree with information from objects im- | |
# plementing the defined interfaces. For example, in an SVG | |
# document { 'http://www.w3.org/2000/svg', 'text' } like | |
# | |
# <text transform="translate(100,100)" font-size="20" id="x"/> | |
# | |
# would have an object that implements the SVGTextElement in- |
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 java.io.OutputStreamWriter; | |
import org.w3c.dom.Document; | |
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.transcoder.svg2svg.SVGTranscoder; | |
import org.apache.batik.transcoder.TranscoderInput; | |
import org.apache.batik.transcoder.TranscoderOutput; | |
import org.apache.batik.dom.svg.SAXSVGDocumentFactory; |
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
<Border xmlns="http://schemas.microsoft.com/winfx/avalon/2005" xmlns:x="http://schemas.microsoft.com/winfx/xaml/2005"> | |
<Grid> | |
<Grid.Resources> | |
<XmlDataSource x:Key="ValidatorData" Source="http://validator.w3.org/check?uri=http://www.google.com&output=xml" XPath="result/messages/msg[position() < 20]"/> | |
<DataTemplate x:Key="ValidatorDataTemplate"> | |
<Grid> | |
<ColumnDefinition Width="Auto" SharedSizeGroup="MessageLine" /> | |
<ColumnDefinition Width="Auto" SharedSizeGroup="MessageColumn" /> | |
<ColumnDefinition Width="*" SharedSizeGroup="MessageText" /> | |
<TextBlock Grid.Column="0" Margin="5,0,5,0" TextContent="{Binding XPath=@line}" /> |
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
# | |
# For the groups that currently have an active technical report, | |
# return the date on which the group published their last report | |
# | |
# arq --data=http://www.w3.org/2000/04/mem-news/public-groups.rdf | |
# --data=http://www.w3.org/2002/01/tr-automation/tr.rdf | |
# --query=http://lists.w3.org/Archive/Public/www-archive/... | |
# | |
# This is not exactly right, it should return the maximum of the | |
# dates on which the group published the latest update to any of |
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> | |
<head> | |
<p>... | |
<script> | |
/***** | |
* | |
* CRC32.js | |
* | |
* copyright 2003, Kevin Lindsey |
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
// MatheMatoFix 1.2D by Bjoern Hoehrmann in Nov 1998. All rights reserved | |
// ---------------------------------------------------------------------- | |
// Dem etwaigen Leser dieser und der folgenden Zeilen sei gesagt, daß es | |
// an sich schier unmöglich ist, QuellCode eines anderen vollständig zu | |
// verstehen, daher sollte man auch nicht anfangen zu verzweifeln, falls | |
// einem einige Zeilen absolut sinnlos vorkommen. Desweiteren wäre zu er- | |
// wähnen, daß dieses arme unschuldige Programm dazu gezwugen wurde, in | |
// COMAL geschrieben zu werden und nicht etwa in einer, wie sagt man so | |
// schön auf Deutsch, Hochsprache, wie z.B. Asm, Pascal oder C bzw. C++. | |
// Nichtsdestotrotz erfüllt auch dieses Programm seine Aufgabe, wenn man |
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
// MatheMatoFix Version 1.2W | |
#include <windows.h> | |
#include "resource.h" | |
#include <math.h> | |
//-Globale Variablen--------------------------------- | |
HWND hwnd_Mathe; // Mathematofix Main Window | |
//HINSTANCE hInst; // Global Instance | |
//-Globale Variablen ende---------------------------- |
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
uses tierec,strngtol; | |
type | |
fgdesk=record | |
name:string; | |
typ:string; | |
end; | |
var f:file; | |
header:fheader; |