Skip to content

Instantly share code, notes, and snippets.

View msell's full-sized avatar

Matt Sell msell

View GitHub Profile
[Subject("Domain Events: Raising an event")]
public class Raising_an_event
{
public class When_an_event_publisher_is_not_defined
{
Because of = ()
=> new TestDomainObject().Start();
It Should_do_nothing = () => { };
}
Disable-UAC
Update-ExecutionPolicy Unrestricted
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowFileExtensions -EnableShowFullPathInTitleBar
Set-StartScreenOptions -EnableBootToDesktop -EnableDesktopBackgroundOnStart -EnableShowStartOnActiveScreen -EnableShowAppsViewOnStartScreen -EnableSearchEverywhereInAppsView -EnableListDesktopAppsFirst
Set-TaskbarOptions -Lock -Dock Left
Write-BoxstarterMessage "Setting Windows power plan to $preferredPlan"
$guid = (Get-WmiObject -Class win32_powerplan -Namespace root\cimv2\power -Filter "ElementName='High performance'").InstanceID.tostring()
$regex = [regex]"{(.*?)}$"
@msell
msell / d3start.html
Last active August 29, 2015 14:12 — forked from erikthered/d3start.html
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Burndown Chart</title>
<style>
.chart {
border: 1px solid black;
}
.chart div {
@msell
msell / songbook.html
Last active August 29, 2015 14:14 — forked from anonymous/mycode.js
songbook example
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>
Songbooks Live - Songbook Viewer
</title>
<style type="text/css">
html,
/*
* Selenium WebDriver JavaScript test with Mocha and NodeJS
*
* Start with: SELENIUM=PATH_TO_SELENIUM_JAR/selenium-server-standalone-2.31.0.jar mocha -t 10000 -R list google-sample.js
*
* Download selenium-server-standalone-2.31.0.jar from https://selenium.googlecode.com/files/selenium-server-standalone-2.31.0.jar
* 'sudo su' and 'npm install -g colors mocha selenium-webdriver'
*
* http://visionmedia.github.io/mocha/
* https://code.google.com/p/selenium/wiki/WebDriverJs
@msell
msell / agent.cmd
Last active August 29, 2015 14:18 — forked from Shoozza/agent.cmd
@ECHO OFF
REM Set default sock file
SET SSH_AUTH_SOCK=/tmp/ssh-agent.sock
REM Check socket is available
IF NOT EXIST "%TMP%\ssh-agent.sock" GOTO:RUNAGENT
REM Check if an ssh-agent is running
FOR /f "tokens=*" %%I IN ('ps ^| grep ssh-agent ^| sed "s/^ *\([0-9]\+\) .*/\1/"') DO SET VAR=%%I
#!/usr/bin/ruby
# Create display override file to force Mac OS X to use RGB mode for Display
# see http://embdev.net/topic/284710
require 'base64'
data=`ioreg -l -d0 -w 0 -r -c AppleDisplay`
edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten
vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten
@msell
msell / introrx.md
Created August 23, 2016 17:55 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@msell
msell / index.html
Created September 30, 2016 01:52 — forked from anonymous/index.html
Weather Monitoring in RxJS RxJS // source http://jsbin.com/veheje
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="description" content="RxJS">
<meta charset="UTF-8">
<title>Weather Monitoring in RxJS</title>
<style>
#form {
margin-bottom: 20px;
}