-
Install SublimeREPL package from package control
-
Install scriptcs package from package control
-
Download this experimental build of scriptcs and extract to some folder on your machine
-
go to ~/.config/sublime-text-2/Packages/SublimeREPL/config/ScriptCS and open Main.sublime-menu file
-
Update the "linux" path in that file to "linux": ["mono", "PATH/TO/YOUR/scriptcs.exe", "-modules", "mono", "-repl"]
This file contains hidden or 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
#load "bootstrapper.csx" //setup rootpathprovider and other stuff | |
public class IndexModule : NancyModule | |
{ | |
public IndexModule() | |
{ | |
Get["/"] = x => { | |
return View["index"]; | |
}; | |
} |
This file contains hidden or 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
#load "bootstrapper.csx" | |
public class IndexModule : NancyModule | |
{ | |
public IndexModule() | |
{ | |
Get["/"] = x => { | |
return View["index"]; | |
}; | |
} |
In case anyone is interested, the faster FakeItEasy 1.19.0 startup does indeed seem to be faster. I started using 1.19.0 at the Day Job today, and got these results for a test run in the IDE (ReSharper test runner):
shadow copies | no shadow copies | |
---|---|---|
1.18.0 | 5.9s | 2.5s |
1.19.0 | 0.86s | 0.63s |
This file contains hidden or 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
using System; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Threading.Tasks; | |
class App | |
{ | |
public static int ExecuteProcess( | |
string fileName, | |
string arguments, |
This file contains hidden or 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
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions | |
Set-StartScreenOptions -EnableBootToDesktop -EnableDesktopBackgroundOnStart -EnableShowStartOnActiveScreen -EnableShowAppsViewOnStartScreen -EnableSearchEverywhereInAppsView -EnableListDesktopAppsFirst | |
Install-WindowsUpdate -acceptEula | |
cinst notepad2 | |
cinst SublimeText3 | |
cinst sublimetext3-contextmenu | |
cinst git-credential-winstore | |
cinst ConEmu | |
cinst poshgit |
This file contains hidden or 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 WebSocket | |
// Appache 2.0 license | |
// References: | |
// [1] Proposed WebSockets Spec December 2011 http://tools.ietf.org/html/rfc6455 | |
// [2] John McCutchan (Google Dart Team Member) http://www.altdevblogaday.com/2012/01/23/writing-your-own-websocket-server/ | |
// [3] A pretty good Python implemenation by mrrrgn https://github.com/mrrrgn/websocket-data-frame-encoder-decoder/blob/master/frame.py | |
// [4] WebSockets Organising body http://www.websocket.org/echo.html | |
// [5] AndrewNewcomb's Gist (starting point) https://gist.github.com/AndrewNewcomb/711664 |
$/
artifacts/
build/
docs/
lib/
packages/
samples/
src/
tests/
This file contains hidden or 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 ConsoleHostedScriptCs | |
{ | |
using System; | |
using Common.Logging.Simple; | |
using NuGet; | |
using ScriptCs.Contracts; | |
using ScriptCs.Engine.Roslyn; | |
using ScriptCs.Hosting; | |
using PackageReference = ScriptCs.PackageReference; |
This file contains hidden or 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
That's not really a pattern and more a tooling thing. | |
Sometimes scenarios have behaviour that has multiple aspects, which individually are worthless but together have worth. | |
So contrived scenario ahead | |
Given a Spline | |
When it's Retriculated | |
Then it beeps | |
And it flashes |