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; | |
using System.Runtime.Caching; | |
namespace BOC.Samples.Caching | |
{ | |
/// <summary>A simple wrapper for the .NET memory cache.</summary> | |
/// <remarks>Samples to create this class were taken from the following posts: | |
/// - http://www.allinsight.de/caching-objects-in-net-with-memorycache/ | |
/// - http://www.codeproject.com/Articles/756423/How-to-Cache-Objects-Simply-using-System-Runtime-C | |
/// </remarks> |
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
// 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; |
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
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(); |
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
# |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()] |
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
# |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. | |
# |
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
# |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 |
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
# |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| |