-
Storing changes to regenerated binaries (i.e. output from another project) is inefficient and causes repo bloat.
I want to be able to store the generated output (dlls etc) from one project to another, as each should stand on it's own for CI & deployment purposes. I don't care about their history, as they can be cheaply regenerated.
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
$underscored$ $SELSTART$$text$ $SELEND$ |
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.Collections.Generic; | |
using System.Runtime.InteropServices; | |
using System.Diagnostics; | |
using System.Text; | |
using System.Threading; | |
namespace FileLockInfo | |
{ | |
public class Win32Processes |
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
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> | |
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=17D786EF95804D4BAB8F11E7AEFE39C9/@KeyIndexDefined">True</s:Boolean> | |
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=17D786EF95804D4BAB8F11E7AEFE39C9/Shortcut/@EntryValue">fs</s:String> | |
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=17D786EF95804D4BAB8F11E7AEFE39C9/Description/@EntryValue">MSpec =()=> operator</s:String> | |
<s:String x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=17D786EF95804D4BAB8F11E7AEFE39C9/Text/@EntryValue">=()=></s:String> | |
<s:Boolean x:Key="/Default/PatternsAndTemplates/LiveTemplates/Template/=17D786EF95804D4BAB8F11E7AEFE39C9/Applicability/=Live/@EntryIndexedValue">True</s:B |
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
function SpecToRegex($spec) { | |
$tmp = $spec.Replace("**", "[{A}]").Replace("*","[{B}]").Replace("\","[{C}]").Replace(".","[{D}]").Replace("?",".") | |
$tmp = $tmp.Replace("[{A}]",".*?").Replace("[{B}]","[^/\\]*").Replace("[{C}]","\\").Replace("[{D}]","\.") | |
"^$tmp$" | |
} | |
function FindFiles($in, $matching) { | |
$pattern = SpecToRegex($matching) | |
ls $in -Recurse | ?{$_.FullName -match "$pattern"} | |
} |
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
module program | |
let fizzbuzz n = | |
let (|DivisibleBy|_|) x i = if i%x=0 then Some i else None | |
match n with | |
| DivisibleBy 3 _ & DivisibleBy 5 _ -> "FizzBuzz" | |
| DivisibleBy 3 _ -> "Fizz" | |
| DivisibleBy 5 _ -> "Buzz" | |
| x -> string x |
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
class Entity | |
constructor: (@context, @cw, @ch) -> | |
# any setup here... | |
update: -> | |
# do per-frame updates | |
draw: -> | |
# draw using '@context' | |
@context.fillStyle = 'rgba(0,128,255,0.8)' |
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
#!/bin/bash | |
sudo chmod 666 /etc/apt/sources.list | |
csrc=$(grep -c "$deb http://download.virtualbox.org" /etc/apt/sources.list) | |
if [ $csrc -eq 0 ] | |
then | |
echo "deb http://download.virtualbox.org/virtualbox/debian oneiric contrib" >> /etc/apt/sources.list | |
fi | |
wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add - |
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
function MissingGem($name) {return ((gem list --local) -match "$name").Length -lt 1} | |
# list gem names: | |
("vagrant", "bundler") | %{ | |
if (MissingGem($_)) {& "gem install $_"} else {echo "$_ already installed"} | |
} |
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
$build = "$env:windir\Microsoft.NET\Framework\v3.5\MSBuild.exe" | |
$SolutionPath = "C:\Projects\AdminWebSite" | |
$SolutionFile = "AdminWebSite.sln" | |
$WebProjectFile = "Admin.Web\Admin.Web.csproj" | |
$OutputPath = "C:\PublishedSites\Hosts\adminweb" | |
& $build "$SolutionPath\$SolutionFile" /t:rebuild | |
& $build "$SolutionPath\$WebProjectFile" "/t:ResolveReferences;_CopyWebApplication;publish" /p:OutDir="$OutputPath\bin\" /p:WebProjectOutputDir="$OutputPath" |