😶🌫️
This file contains 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.exports = function(grunt) { | |
grunt.initConfig({ | |
sweetjs: { | |
options: { | |
modules: ['es6-macros'], | |
sourceMap: true, | |
nodeSourceMapSupport: true | |
}, | |
src: { |
This file contains 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
void Main() | |
{ | |
// Define all the vertices in the graph | |
var a = new Vertex<string>{ Value = "A" }; | |
var b = new Vertex<string>{ Value = "B" }; | |
var c = new Vertex<string>{ Value = "C" }; | |
var d = new Vertex<string>{ Value = "D" }; | |
var e = new Vertex<string>{ Value = "E" }; | |
var f = new Vertex<string>{ Value = "F" }; | |
var g = new Vertex<string>{ Value = "G" }; |
This file contains 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
# Originally from http://poshcode.org/3819 | |
function Add-ToHostsFile { | |
<# | |
.DESCRIPTION | |
This function checks to see if an entry exists in the hosts file. | |
If it does not, it attempts to add it and verifies the entry. | |
.EXAMPLE | |
Add-ToHostsFile -IPAddress 192.168.0.1 -HostName MyMachine |
This file contains 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 Set-UmbracoPermissions($SitePath, $AppPoolAccount, $PathOverrides) | |
{ | |
$readExecute = $AppPoolAccount,"ReadAndExecute","ContainerInherit, ObjectInherit","None","Allow" | |
$read = $AppPoolAccount,"Read","ContainerInherit, ObjectInherit","None","Allow" | |
$modify = $AppPoolAccount,"Modify","ContainerInherit, ObjectInherit","None","Allow" | |
$fileModify = $AppPoolAccount,"Modify","Allow" | |
$objects = @{} | |
$objects["App_Browsers"] = $readExecute | |
$objects["App_Code"] = $modify |
This file contains 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 owner = "scriptcs"; | |
var repo = "scriptcs"; | |
var milestone = "v0.10"; | |
var labels = new Dictionary<string, string>{ { "feature", "New" }, { "bug", "Fixed" } }; | |
var username = "adamralph"; | |
var oAuthToken = "secret"; | |
var client = Require<OctokitPack>().CreateWithOAuth("ScriptCs.ReleaseNotesScript", username, oAuthToken); | |
var issues = client.Issue.GetForRepository(owner, repo, new RepositoryIssueRequest { State = ItemState.Closed, }).Result; |
This file contains 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
param([string] $folder) | |
$keys = 'SccProjectName', 'SccLocalPath', 'SccProvider', 'SccAuxPath' | |
$extensions = '.vssscc', '.vspscc' | |
function killScc(){ | |
gci $folder -recurse | Where-Object { $extensions -contains $_.Extension } | foreach { | |
'Deleting ' + $_.FullName | |
$_ | Remove-Item -force | |
} |
This file contains 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
#requires -version 2.0 | |
param ( | |
[ValidateScript({$_ | Test-Path -PathType Container})] | |
[Parameter(Mandatory=$true)] | |
[string] $folder, | |
[switch] $backup | |
) | |
function killScc(){ | |
gci -path $folder -i *.vssscc,*.vspscc -recurse | Remove-Item -force -verbose |
This file contains 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.Linq; | |
using System.Net; | |
using System.Text; | |
using Gate; | |
using Gate.Kayak; | |
using Kayak; | |
namespace OwinHelloWorld |
This file contains 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
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<!-- Example usage: msbuild someproject.csproj /p:AssemblyVersion=1.2.3.4 /p:AssemblyFileVersion=2.3.4.5 /p:AssemblyInformationVersion="Codename Frank" --> | |
<Target Name="OverrideAssemblyVersion" | |
BeforeTargets="CoreCompile"> | |
<!-- CallTarget technique used to allow version properties to be set by another target --> | |
<CallTarget Targets="CoreOverrideAssemblyVersion" | |
Condition=" '$(AssemblyVersion)'!='' or '$(AssemblyFileVersion)'!='' or '$(AssemblyInformationalVersion)'!='' " /> | |
</Target> |
This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<configuration> | |
<solution> | |
<add key="disableSourceControlIntegration" value="true" /> | |
</solution> | |
<packageSources> | |
<add key="myrepo" value="\\server\\share\\path" /> | |
</packageSources> | |
</configuration> |
OlderNewer