I hereby claim:
- I am automatonic on github.
- I am automatonic (https://keybase.io/automatonic) on keybase.
- I have a public key whose fingerprint is 5F41 1C2F F989 A131 7AB2 DC9E 1F9D 7E6B 4AEE 5D31
To claim this, I am signing this object:
var baseUri = new Uri("foo://testy"); | |
//Test1 - "*" | |
var templates1 = new Dictionary<UriTemplate, object>() | |
{ | |
{ new UriTemplate("*") , "[star]" }, | |
}; | |
var templateTable1 = new UriTemplateTable(baseUri, templates1); | |
templateTable1 |
<Query Kind="Program"> | |
<Namespace>System.Collections.Generic</Namespace> | |
<Namespace>System.IO</Namespace> | |
<Namespace>System.Linq</Namespace> | |
<Namespace>System.Reflection</Namespace> | |
</Query> | |
public class Reference | |
{ | |
public AssemblyName Assembly { get; set; } |
I hereby claim:
To claim this, I am signing this object:
XNamespace ns = "http://somedomain.com/some/path"; | |
//if file.xml root element has xmlns="http://somedomain.com/some/path" | |
var descendants = XDocument.Load("file.xml").Descendants(ns + "Child"); |
#As described here: http://boxstarter.org/Learn/WebLauncher | |
#The command to run, built from the raw link of this gist | |
#START http://boxstarter.org/package/nr/url?https://gist.github.com/automatonic/7771dfd7015a72453091/raw/4cbbf4811d11929ebe0f98c51f04e7476179c13f/example.boxstarter | |
#Special windowsy stuff. see http://boxstarter.org/WinConfig | |
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions | |
Enable-RemoteDesktop | |
Install-WindowsUpdate | |
Disable-InternetExplorerESC |
//License: MIT | |
//using System.Xml; | |
//using System.Xml.Schema; | |
public static List<ValidationEventArgs> ValidateXmlWithXsd(string xmlPath, string xsdPath) | |
{ | |
XmlSchemaSet s = new XmlSchemaSet(); | |
var args = new List<ValidationEventArgs>(); | |
using (XmlReader reader = XmlReader.Create(xsdPath)) | |
{ | |
//These validations will be from reading the xsd itself |
//Handle "m_TypeName" cases without lowercase hungarian notation prefix, avoiding the other cases | |
%rename("%(strip:[m_])s", match$ismember="1", regexmatch$name="m_[^lbsd].*$") ""; | |
//We can interpret the above as: | |
//Rename all identifiers | |
// + that are class members | |
// + and have a "m_" prefix | |
// + but don't have a "m_s|m_l|m_b|m_d" prefix (they will be dealt with later) | |
// + from their original text | |
// + to a "strip"ped version that removes the "m_" portion |
//Into Intermediate (P/Invoke) Class | |
%pragma(csharp) imclassimports=%{ | |
using System; | |
using System.Runtime.InteropServices; | |
//The above are in the default version, additions follow: | |
using System.Collections.Generic; | |
using Some.Other.Namespace; | |
%} | |
//Into Generated Module Class (for globals, etc.) |
<html> | |
<head> | |
<!-- Project Page - http://github.com/automatonic/upcoming --> | |
<title>upcoming.js Example</title> | |
<!-- include the default styling file for upcoming.js--> | |
<link rel="stylesheet" type="text/css" media="all" href="upcoming.css" title="system" /> | |
<!-- include the JavaScript routines that make upcoming.js work--> | |
<script type="text/javascript" src="upcoming.js"></script> | |
</head> |
/* | |
This code is public domain. | |
The MurmurHash3 algorithm was created by Austin Appleby and put into the public domain. See http://code.google.com/p/smhasher/ | |
This C# variant was authored by | |
Elliott B. Edwards and was placed into the public domain as a gist | |
Status...Working on verification (Test Suite) | |
Set up to run as a LinqPad (linqpad.net) script (thus the ".Dump()" call) | |
*/ |