Skip to content

Instantly share code, notes, and snippets.

<Import Project="$(MSBuildExtensionsPath32)\..\Microsoft F#\v4.0\Microsoft.FSharp.Targets" Condition=" Exists('$(MSBuildBinPath)\Microsoft.Build.Tasks.v4.0.dll')" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
<ProjectExtensions>
<VisualStudio>
...
</VisualStudio>
</ProjectExtensions>
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{cd87f694-a133-42b1-a328-72f7f56e95c3}</ProjectGuid>
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{F2A71F9B-5D33-465A-A702-920D77279786}</ProjectTypeGuids>
<OutputType>Library</OutputType>
<RootNamespace>Library1</RootNamespace>
<AssemblyName>Library1</AssemblyName>
var otherDomain = AppDomain.CreateDomain(
"otherDomain",
AppDomain.CurrentDomain.Evidence,
new System.IO.FileInfo(Configuration.Executable).DirectoryName,
".\\lib",
false);
var otherDomain = AppDomain.CreateDomain("otherDomain");
@SteveGilham
SteveGilham / gist:0539620ac5c95ad0714c
Created April 26, 2015 14:30
Configuring Jenkins with PowerShell
# Fill in the blanks
$UserName = ???
$JenkinsAPIToken = ???
$JENKINS_URL = ???
$JOB_URL = ???
# Create client with pre-emptive authentication
# see => http://www.hashemian.com/blog/2007/06/http-authorization-and-net-webrequest-webclient-classes.htm
$webClient = new-object System.Net.WebClient
$webclient.Headers.Add("Authorization","Basic "+
@SteveGilham
SteveGilham / gist:308f0d0cbc90f8ca8a4b
Created April 26, 2015 14:25
Continuations -- background
type Request = Getq | Putq of char
type Response = Getp of char | Putp
type Dialog = Response list -> Request list
@SteveGilham
SteveGilham / gist:c9d0fcef53e8ed656c13
Created April 26, 2015 14:24
Continuations - motivating example
let readChar f p =
Getq ::
(match p with
| (Getp c) :: p1 -> f c p1
| _ -> []);;
@SteveGilham
SteveGilham / gist:ecb52af9bc57f9c77d2e
Created April 26, 2015 14:24
Continuation essentials
type continuation = K of (unit -> unit)
let execute (K f) = f()
let stop = K (fun () -> ());;
Producer: (X -> continuation) -> continuation
Consumer: X -> continuation -> continuation // strictly a continuation generator, as it produces a continuation from the output of the producer.
Operation: continuation -> continuation