Skip to content

Instantly share code, notes, and snippets.

View GraemeF's full-sized avatar

Graeme Foster GraemeF

View GitHub Profile
@GraemeF
GraemeF / uk-bounding-box.geojson
Last active May 14, 2019 16:02 — forked from jeffreymorganio/uk-bounding-box.geojson
Longitude and latitude bounding box around the UK
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@GraemeF
GraemeF / BrokenKnockout.html
Created December 21, 2011 18:45 — forked from garyshort/BrokenKnockout.html
Broken Knockout
<html>
<body>
<form data-bind="submit: onSubmit">
<button type="submit">Submit</button>
</form>
<script type="text/javascript" src="knockout-2.0.0.js"></script>
<script type="text/javascript">
window.onload = function () {
@GraemeF
GraemeF / Continuous-CoffeeScript.ps1
Created October 8, 2011 22:19 — forked from jfromaniello/continous-qunit.ps1
Continuously watches for .coffee file changes in a folder (and subfolders), and runs the CoffeeScript compiler against them
# watch a file changes in the current directory,
# compile when a .coffee file is changed or renamed
$watcher = New-Object System.IO.FileSystemWatcher
$watcher.Path = get-location
$watcher.IncludeSubdirectories = $true
$watcher.EnableRaisingEvents = $false
$watcher.NotifyFilter = [System.IO.NotifyFilters]::LastWrite -bor [System.IO.NotifyFilters]::FileName
while($TRUE){
@GraemeF
GraemeF / RestorePackages.ps1
Created July 31, 2011 11:47 — forked from damianh/RestorePackages.ps1
PowerShell script to restore a projects packages and tools. Requires nuget.exe to be in the project root and commited to source control.
# Tools
.\NuGet.exe i DotCover -s \\myserver\Dev\NuGetPackages -o Tools
.\NuGet.exe i StyleCopCmd -s \\myserver\Dev\NuGetPackages -o Tools
# Dependecies
$packageConfigs = Get-ChildItem . -Recurse | where{$_.Name -eq "packages.config"}
foreach($packageConfig in $packageConfigs){
Write-Host "Restoring" $packageConfig.FullName
nuget i $packageConfig.FullName -o Packages
}
@GraemeF
GraemeF / readable.cs
Created January 14, 2011 21:45 — forked from johnnonolan/readable.cs
Now more readable :P
namespace iDoc.specs.When
{
[Subject("AccountManagement")]
public class CreatingAUserAccount : BaseContext<AccountController>
{
const string EmailAddress = @"1@2.com";
Establish context = () =>
{
model = new RegistrationModel {