Skip to content

Instantly share code, notes, and snippets.

@jefferydutra
jefferydutra / Behavior Verification Tests with Mapping Service
Created April 9, 2014 01:30
I am hoping to use State Verification without having to resort to tedious TransformToDto methods.
public interface IMappingService
{
TDest Map<TSrc, TDest>(TSrc source) where TDest : class;
ICollection<TDest> Map<TSrc, TDest>(ICollection<TSrc> source) where TDest : class;
}
public class MappingService : IMappingService
{
public TDest Map<TSrc, TDest>(TSrc source) where TDest : class
{
@jefferydutra
jefferydutra / gist:aa73b883fcd78b2172be
Last active August 29, 2015 14:01
Chocolatey Dev Machine
Enable-RemoteDesktop
cinst ccleaner
cinst console-devel
cinst expresso
cinst fiddler4
cinst filezilla
cinst firefox
cinst git-credential-winstore
cinst irfanview
@jefferydutra
jefferydutra / _.md
Created June 10, 2015 12:18
First d3 stuff
@jefferydutra
jefferydutra / _.md
Created June 10, 2015 12:23
First D3 visualizations
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
choco feature enable -n allowGlobalConfirmation
choco install 7zip.install /y
choco install autohotkey.portable /y
choco install gimp /y
choco install git /y
choco install git.install /y
choco install GoogleChrome /y
choco install nodejs /y
const glob = require('glob');
const entryArray = glob.sync('js/apps/**/index.js');
const entry = entryArray.reduce((acc, item) => {
const name = item.replace('/index.js', '');
acc[name.replace('js', '')] = `./${item}`;
return acc;
}, {});
entry.vendor = [
Commit and Add
git commit -a -m "Updated flight scheduler to remove dead code"
Undo changes to unstaged files
git reset --hard
Undo file
git checkout -- Applications/WebClient/Web.config
Create Local Branch Targeted at a Remote Branch