- Settings -> Windows Update
- Install all updates
- launch Windows Powershell as administrator and execute:
alias.a add . | |
alias.aliases config --get-regexp alias | |
alias.bi bisect | |
alias.ci commit -m | |
alias.co checkout | |
alias.colast checkout - | |
alias.db branch -D | |
alias.laf fsck --lost-found | |
alias.last log -1 HEAD | |
alias.nb checkout -b |
module Tuple2 | |
let replicate x = x, x | |
let curry f x y = f (x, y) | |
let uncurry f (x, y) = f x y | |
let swap (x, y) = (y, x) |
public class DebounceDispatcher | |
{ | |
private DispatcherTimer timer; | |
public void Debounce(int timeout, Action<object> action, | |
object param = null, | |
DispatcherPriority priority = DispatcherPriority.ApplicationIdle, | |
Dispatcher disp = null) | |
{ | |
if (disp == null) |
# Description: Boxstarter Script | |
# Author: Jess Frazelle <jess@linux.com> | |
# Last Updated: 2017-09-11 | |
# | |
# Install boxstarter: | |
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force | |
# | |
# You might need to set: Set-ExecutionPolicy RemoteSigned | |
# | |
# Run this boxstarter by calling the following from an **elevated** command-prompt: |
// StartResult would be the type of the response. Must be marked with [<CLIMutable>] | |
let response = | |
restWithResponse<StartResult> ( | |
POST >> toResource "stopwatch/{type}/{key}/start" >> atUrl config.Url | |
>> withUrlSegment "type" stopwatchType | |
>> withUrlSegment "key" key | |
>> withFormValue "owner" owner | |
>> withExpectedStatusOk | |
) |
open System | |
open System.IO | |
open System.Diagnostics | |
let downloadDependencies deps = | |
Environment.CurrentDirectory <- __SOURCE_DIRECTORY__ | |
if not (File.Exists "paket.exe") then | |
async { | |
let url = "http://fsprojects.github.io/Paket/stable" |
based on original document from Alan Stevens
<Window x:Class="WpfApp1.MainWindow" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
xmlns:local="clr-namespace:WpfApp1" | |
mc:Ignorable="d" | |
Title="MainWindow" Height="450" Width="800"> | |
<Grid> |