View WebApiConfig.cs
// Written by Bryan O'Connell, June 2015
// http://bryanoconnell.blogspot.com/2015/08/easily-expose-metadata-info-from-webapi.html
// Purpose: Example of how to configure routes to expose metadata information
// about specific objects in your API.
using System;
using System.Web.Http;
using System.Web.Http.OData.Builder;
using System.Web.Http.OData.Extensions;
View api-tester.ts
module BOC.ApiTester {
export class ApiTests {
private results: ResultsLog;
private timeTracker: Timer;
private outputElement: HTMLElement;
static baseUrl: string = "http://jsonplaceholder.typicode.com";
constructor(elementIdToDisplayResults: string) {
this.results = new ResultsLog();
View ExcelExtract.ps1
# |Info|
# Written by Bryan O'Connell, September 2012
# Purpose: Extract all of the worksheets from an Excel file into separate files.
# Sample command: PowerShell.exe xls_extract.ps1 -filepath "C:\Spreadsheet.xls" -output_type "csv"
# Params:
# -filepath: The Excel file you want to extract worksheets from.
# -output_type: The filetype to save the Worksheets as (can be csv, txt, xls, html).
# |Info|
[CmdletBinding()]
View DeleteOldFiles.ps1
# |Info|
# Written by Bryan O'Connell, February 2013
# Purpose: Delete files from a folder haven't been modified for the
# specified number of days.
#
# Sample: DeleteOldFiles.ps1 -folder "C:\test" -days_old 7 [-only_this_type ".xls"]
#
# Params:
# -folder: The place to search for old files.
#
View ZipStuff.ps1
# |Info|
# Written by Bryan O'Connell, August 2013
# Purpose: Creates a .zip file of a file or folder.
#
# Sample: zipstuff.ps1 -target "C:\Projects\wsubi" -zip_to "C:\Users\Bryan\Desktop\wsubi" [-compression fast] [-timestamp] [-confirm]
#
# Params:
# -target: The file or folder you would like to zip.
#
# -zip_to: The location where the zip file will be created. If an old version
View RestApiTest.ps1
# |Info|
# Written by Bryan O'Connell, November 2014
# Purpose: Sample of a functional test script for a RESTful API.
#
# Thanks to contributors on the 'jsonplaceholder' project for making a publicly
# accesible and generic REST API (which is used in the examples below).
# - http://jsonplaceholder.typicode.com
# - https://github.com/typicode/jsonplaceholder
#
# |Info|