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
define([], function() { | |
function FakeLocalStorage() { | |
var self = this; | |
self.length = 0; | |
self.keys = []; | |
return self; | |
} |
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
$path = $env:Path.Split(';') | Where-Object {[string]::IsNullOrWhiteSpace($_) -eq $false } | Sort-Object { $_ } | |
"Paths that do not exist" | |
$pathsThatDoNotExist = $path | Where-Object {[System.IO.Directory]::Exists($_) -eq $false} | |
$pathsThatDoNotExist | |
"" | |
"" | |
"" | |
"Scrubbed path variable" |
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 Reload-Module($ModuleName) | |
{ | |
$module = Get-Module $ModuleName | |
$path = $module.Path | |
"removing $ModuleName" | |
Remove-Module $ModuleName | |
"importing $path" | |
Import-Module $path |
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
" no one cares about vi... poor vi | |
set nocompatible | |
" vundle setup | |
filetype on " required on Mac | |
filetype off | |
let is_windows=has('win32') | |
set runtimepath+=~/.vim/bundle/vundle.vim |
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
public interface IRecordProcessor | |
{ | |
Response Process(Record[] records); | |
} | |
public class Response | |
{ | |
public bool Success { get; set; } | |
} |
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 Install-VSCommandPrompt($version = "2013") | |
{ | |
switch ($version) | |
{ | |
2013 { $toolsVersion = "120" } | |
2012 { $toolsVersion = "110" } | |
2010 { $toolsVersion = "100" } | |
2008 { $toolsVersion = "90" } | |
2005 { $toolsVersion = "80" } |
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
ObservableProviderConfiguration.RegisterProvider("System.Data.SqlServerCe.4.0", setAsDefault:true); |
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
Hub.ConnectionOpening += (sender, args) => | |
{ | |
// your code here | |
}; | |
Hub.ConnectionClosing += (sender, args) => | |
{ | |
// your code here | |
}; |
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 | |
IlMerges an assembly with its dependencies. Depends on nuget being installed in the PATH. | |
.PARAMETER targetProject | |
The name of the project to be ilmerged | |
.PARAMETER outputAssembly | |
The name of the ilmerged assembly when it is created |
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
public interface IRepository : IDisposable | |
{ | |
IQueryable<T> Find<T>() where T: class; | |
T Get<T>(object key) where T : class; | |
void Save(object value); | |
void Delete(object value); |
OlderNewer