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
echo ------------------------------------------------------------ | |
echo --- installing curl | |
echo ------------------------------------------------------------ | |
sudo apt-get install -y curl | |
curl -sL https://deb.nodesource.com/setup | sudo bash - | |
echo ------------------------------------------------------------ | |
echo --- installing git | |
echo ------------------------------------------------------------ | |
sudo apt-get install -y git |
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
public ReactiveCommand<$type$> $name$ { get; private set; } |
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
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin | |
<?xml version="1.0" encoding="utf-8"?> | |
<packages> | |
<package id="googlechrome " /> | |
<package id="notepadplusplus.install"/> | |
<package id="githubforwindows"/> | |
<package id="javaruntime"/> | |
<package id="7zip.install"/> | |
<package id="adobereader"/> |
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
$appCmd = "C:\Program Files (x86)\IIS Express\appcmd.exe" | |
$result = Invoke-Command -Command {& $appCmd 'list' 'sites' '/text:SITE.NAME' } | |
for ($i=0; $i -lt $result.length; $i++) | |
{ | |
Invoke-Command -Command {& $appCmd 'delete' 'site' $result[$i] } | |
} |
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
# Auto detect text files and perform LF normalization | |
* text=auto | |
# Custom for Visual Studio | |
*.cs diff=csharp |
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
<script> | |
function getStudyMetadata() { | |
var promise = $.ajax({ | |
type: "GET", | |
url: "/study/metadata/{id}", | |
dataType: "json" | |
}).promise(); | |
return Rx.Observable.fromPromise(promise); | |
}; | |
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
//ounce | |
//gallon | |
[<Measure>] type gal | |
//lovibond | |
[<Measure>] type L | |
//pounds | |
[<Measure>] type lbs | |
//gc = grain color | |
//weight = grain weight in lbs |
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
open System | |
open System.Threading | |
let printBoard (grid:int[,]) = | |
let maxX = (Array2D.length1 grid) - 1 | |
let maxY = (Array2D.length2 grid) - 1 | |
for row in 0 .. maxX do | |
for col in 0 .. maxY do | |
if(grid.[row,col] = 1) then printf "*|" else printf " |" | |
printfn "" |
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
var canvasMouseOver = Rx.Observable.fromEvent(myCanvas, "mousedown"); | |
var canvasMouseWheel = Rx.Observable.fromEvent(myCanvas, "mousewheel"); | |
canvasMouseWheel.skipUntil(cavasMouseOver) | |
.subscribe(function (val) { | |
if (val.originalEvent.wheelDelta < 0) { | |
mainViewVM.incrementFrame(); | |
} | |
else { |
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
XAML | |
--------------------------------------------------------------- | |
<ComboBox Grid.Row="0" x:Name="gardens" Margin="10" FontSize="24"> | |
<ComboBoxItem>New...</ComboBoxItem> | |
<ComboBoxItem>G1</ComboBoxItem> | |
<ComboBoxItem>G2</ComboBoxItem> | |
<ComboBoxItem>G3</ComboBoxItem> | |
</ComboBox> | |