This file contains 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
function Get-ProjectReferences | |
{ | |
param( | |
[Parameter(Mandatory)] | |
[string]$rootFolder, | |
[string[]]$excludeProjectsContaining | |
) | |
dir $rootFolder -Filter *.csproj -Recurse | |
This file contains 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
namespace StructureMapBugRepro | |
{ | |
using System; | |
using StructureMap; | |
using StructureMapBugRepo.NS1; | |
using StructureMapBugRepo.NS2; | |
public class Program | |
{ | |
static void Main(string[] args) |
This file contains 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
<# | |
.SYNOPSIS | |
Script to sync a GitHub repo to Kiln to allw GitHub contributions without using Git (use Hg on your Kiln repos!). | |
.DESCRIPTION | |
Create a branch repo in Kiln specifically for for the GitHub sync and run this PS script periodically (PoSh v3 | |
scheduled jobs make this easy). | |
Merge the GitHub branch repo (using Hg!) into your main repo periodically, then push back to the GitHub branch | |
once done. This will be sync'd back to GitHub when the script next runs. |
This file contains 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
# Launch Kiln for current repo | |
Function Kiln | |
{ | |
if (Test-Path ".\.hg\hgrc") | |
{ | |
$repoUrl = (Select-String "default = (.*)" -Path ".\.hg\hgrc" -AllMatches).Matches.Groups[1].Value | |
Start $repoUrl | |
} | |
else | |
{ Write-Warning "Not in a repo!" } |
This file contains 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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/> | |
</head> | |
<frameset rows="70,*"> | |
<frame src="about:blank"> | |
<frameset cols="165,*"> | |
<frame src="about:blank"> | |
<frame src="settings.htm"> |
This file contains 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
let [<Given>] ``something`` () = () | |
let [<Given>] ``something else`` () = () | |
--- | |
Scenario: TestStuff | |
Given something | |
and something else | |
---- |
This file contains 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
Windows Registry Editor Version 5.00 | |
; Creates "PowerShell Here" shortcuts on context menu for | |
; | |
; a) right-clicking on a folder | |
; b) right-clicking in the blank space when inside a folder (eg. already inside the folder) | |
; c) right-clicking in the blank space when inside a folder that's inside a library | |
; | |
; Uses cmd start to launch normal Powershell shortcut so that the normal PowerShell shortcut | |
; colours/settings are preserved (blue, not black/white) |
This file contains 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
PS M:\Coding\TestApps\AngularTest> npm install angular/angular.js --save-dev | |
npm ERR! git fetch -a origin (git://github.com/angular/angular.js) fatal: refs/remotes/origin/v1.0.x tracks both refs/heads/v1.0.x and refs/remotes/origin/v1.0.x |
This file contains 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
// A list of all event types; these are basically used as strings, because we can't(?) | |
// get a nice unique name from a TS Class to use for the event name | |
enum EventType { | |
SendTheStuff | |
}; | |
// All events must at least give us the EventType that we can convert to a string | |
interface IEvent { | |
EventType: EventType; | |
}; |
This file contains 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
import 'dart:convert'; | |
import 'package:smoke/smoke.dart' as smoke; | |
@MirrorsUsed(targets: const [SimpleWithMirrors, Simple], override: '*') | |
import 'dart:mirrors'; | |
abstract class Serializable { | |
static fromJson(Type t, Map json) { | |
var typeMirror = reflectType(t); | |
T obj = typeMirror.newInstance(new Symbol(""), const[]).reflectee; |
OlderNewer