Skip to content

Instantly share code, notes, and snippets.

@pewerner
pewerner / InputParser.wsc
Created November 4, 2012 11:59
Windows Script Component for Parsing XML with Perl. Perl Scripts can be invoked Via JavaScript by Invoking ActiveX Controls
<?xml version="1.0"?>
<component>
<registration
description="XML Inputfile Parser"
progid="perl.inputparser"
version="1.00"
classid="{74bb1ba9-2e69-4ad6-b02c-c52f3cbe153b}"
>
</registration>
@pewerner
pewerner / mysql.cs
Created November 3, 2012 22:20
ActiveX Control for queryiing a MySql Database
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Collections;
using MySql.Data.MySqlClient;
//using System.Data;
using System.Linq;
using System.Threading;
using System.Text;
@pewerner
pewerner / pasrseQueryString.js
Created October 27, 2012 20:13
Parse a query string with JavaScript
function getUrlVars()
{
var vars = [], hash;
var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
for(var i = 0; i < hashes.length; i++)
{
hash = hashes[i].split('=');
vars.push(hash[0]);
vars[hash[0]] = hash[1];
}