Skip to content

Instantly share code, notes, and snippets.

View laurentkempe's full-sized avatar
🚀
❤✨

Laurent Kempé laurentkempe

🚀
❤✨
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<title>D3.xml Example</title>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.v2.js"></script>
<style type="text/css">
.chart div {
font: 10px sans-serif;
background-color: steelblue;
text-align: right;
module Fake.NDepend
open Fake
open System
open System.IO
open System.Text
let getWorkingDir workingDir =
Seq.find isNotNullOrEmpty [workingDir; environVar("teamcity.build.workingDir"); "."]
|> Path.GetFullPath
@laurentkempe
laurentkempe / Bootstrapper.cs
Last active September 10, 2015 21:48 — forked from codeprogression/Bootstrapper.cs
StructureMapBootstrapper for WPF Prism Applications
using System;
using System.Windows;
using Microsoft.Practices.Prism.Modularity;
namespace CodeProgression.Common.Prism
{
public class Bootstrapper : StructureMapBootstrapper
{
protected override void ConfigureContainer()
{
@laurentkempe
laurentkempe / Microsoft.PowerShell_profile.ps1
Created March 10, 2016 08:13
Function to start VS and ReSharper on RamDisk
function vs([string]$solution) {
$env:TEMP = "R:\VsTemp";
$env:TMP = "R:\VsTemp";
& "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe" $solution
# startProcessHigh "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe" . $solution
}
@laurentkempe
laurentkempe / CakeReSharperCodeInspectionTask.cs
Created March 24, 2016 06:42
Cake ReSharper Code Inspection Task
Task("ReSharper-Code-Inspection")
.IsDependentOn("Run-Unit-Tests")
.Does(() =>
{
var result = new FilePath(buildArtifacts + "/_ReSharperReports/inspectcode-report.xml");
InspectCode("InspecCode.sln",
new InspectCodeSettings() {
SolutionWideAnalysis = true,
Profile = "InspectCode.DotSettings",
Task("Run-Unit-Tests")
.IsDependentOn("Build")
.Does(() =>
{
DotCoverCover(tool => {
tool.NUnit3(testDlls, new NUnit3Settings {
NoResults = true,
TeamCity = isOnTeamCity
});
},
@laurentkempe
laurentkempe / build.cake
Created April 1, 2016 09:09
build.cake sample
//////////////////////////////////////////////////////////////////////
// ARGUMENTS
//////////////////////////////////////////////////////////////////////
var target = Argument("target", "Default");
var configuration = Argument("configuration", "Release");
//////////////////////////////////////////////////////////////////////
// PREPARATION
//////////////////////////////////////////////////////////////////////
<#
.SYNOPSIS
This is a Powershell script to upload a file to DropBox using their REST API.
.DESCRIPTION
This Powershell script will upload file to DropBox using their REST API with the parameters you provide.
.PARAMETER SourceFilePath
The path of the file to upload.
Set-ExplorerOptions -showHiddenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
cinst 7zip
cinst 7zip.install
cinst autohotkey.portable
cinst win32diskimager.portable
cinst testdisk-photorec
cinst crystaldiskmark
@laurentkempe
laurentkempe / Dockerfile
Last active May 17, 2016 20:17
ASP.NET Core RC2, Docker and HipChat Connect add-on
FROM microsoft/dotnet
# Set environment variables
ENV ASPNETCORE_URLS="http://*:5000"
ENV ASPNETCORE_ENVIRONMENT="Development"
# Copy files to app directory
COPY . /app
# Set working directory