One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| // Changes XML to JSON | |
| // fixed some bugs from http://davidwalsh.name/convert-xml-json | |
| // October 9, 2012 | |
| // Brian Hurlow | |
| function xmlToJson(xml) { | |
| // Create the return object | |
| var obj = {}; | |
| // console.log(xml.nodeType, xml.nodeName ); |
| @echo off | |
| cscript PinItem.vbs /taskbar /item:"%ProgramData%\Microsoft\Windows\Start Menu\Programs\Mozilla Firefox\Mozilla Firefox.lnk" | |
| cscript PinItem.vbs /taskbar /item:"%ProgramData%\Microsoft\Windows\Start Menu\Programs\Microsoft Office\Microsoft Office Word 2007.lnk" | |
| cscript PinItem.vbs /taskbar /item:"%ProgramData%\Microsoft\Windows\Start Menu\Programs\Microsoft Office\Microsoft Office Excel 2007.lnk" | |
| cscript PinItem.vbs /taskbar /item:"%ProgramData%\Microsoft\Windows\Start Menu\Programs\Microsoft Office\Microsoft Office PowerPoint 2007.lnk" |
| // Underscore utility | |
| var _ = require("underscore"); | |
| // Miso library | |
| var Miso = require("miso.dataset"); | |
| // Nano library | |
| var nano = require("nano"); | |
| /* | |
| * The Couchdb importer is responsible for fetching data from a CouchDB | |
| * database. |
| // Underscore utility | |
| var _ = require("underscore"); | |
| // Miso library | |
| var Miso = require("miso.dataset"); | |
| Miso.Parsers.Couchdb = function(data, options) {}; | |
| _.extend(Miso.Parsers.Couchdb.prototype, { | |
| parse: function(rows) { | |
| var columns, valueIsObject; |
| 'use strict'; | |
| // Dependencies | |
| const gcloud = require('google-cloud', { | |
| projectId: 'sara-bigquery', | |
| keyfileName: 'keyfile.json' | |
| }); | |
| const vision = gcloud.vision(); | |
| const fs = require('fs'); | |
| const async = require('async'); |
| // Open form and submit enquire for `rego` | |
| function getInfo(rego) { | |
| horseman | |
| .userAgent('Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0') | |
| .open(url) | |
| .type('#registration-number-ctrl input[type=text]', rego) | |
| .click('.btn-holder input') | |
| .waitForSelector('.ctrl-holder.ctrl-readonly') | |
| .html() | |
| .then(function(body) { |
| -- Two dashes start a one-line comment. | |
| --[[ | |
| Adding two ['s and ]'s makes it a | |
| multi-line comment. | |
| --]] | |
| ---------------------------------------------------- | |
| -- 1. Variables and flow control. | |
| ---------------------------------------------------- |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Copyright (C) 2014 ADDY OSMANI <addyosmani.com> | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION |
| (function (context, trackingId, options) { | |
| const history = context.history; | |
| const doc = document; | |
| const nav = navigator || {}; | |
| const storage = localStorage; | |
| const encode = encodeURIComponent; | |
| const pushState = history.pushState; | |
| const typeException = 'exception'; | |
| const generateId = () => Math.random().toString(36); | |
| const getId = () => { |