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
# Summary of settings for [Publishing a .NET project with Appveyor and NuGet](http://few-lines-of-code.blogspot.com/2016/03/publishing-net-project-with-appveyor.html) tutorial. | |
version: debug_01.{branch}_{build} | |
pull_requests: | |
do_not_increment_build_number: true | |
branches: | |
only: | |
- /release\/.*/ | |
skip_tags: true | |
configuration: Release | |
platform: Any CPU |
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
$ErrorActionPreference='Stop'; | |
$branch = $env:APPVEYOR_REPO_BRANCH; | |
$buildNumber = $env:APPVEYOR_BUILD_NUMBER; | |
$num = '(0|[1-9]{1}[0-9]{0,})'; | |
$rx = "^[a-z\-]+/v(?'ver'$num\.$num\.$num)(-(?'preSpec'[a-zA-Z]{1,}[0-9]{0,})){0,1}$"; | |
$match = [regex]::match($branch, $rx); | |
if (!$match.Success) | |
{ | |
throw "Branch name is not correct semver (1.0.0): " + $branch; |
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]$user | |
) | |
# USAGE: & '.\set-url-acl.ps1' -user domain\user | |
$xmlPath = 'Settings\SomeSettings.xml' | |
[xml]$xml = Get-Content $xmlPath | |
$nodes = Select-Xml "//Services/HttpDispatcher" $xml | |
$nodes | ForEach-Object { | |
Write-Host "http:/*:$($_.Node.ListenAddress)" |
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"?> | |
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<!-- | |
============================================================ | |
RegexTransform | |
Transforms the input Items parameter by evaluating the | |
regular expression in their Find metadata and | |
replacing with their ReplaceWith metadata. Optional, the |
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
<Import Project="$(SolutionDir)\CustomBuildTargets.proj" /> | |
<Import Project="$(SolutionDir)\FormattingInspections.proj" /> | |
<Target Name="BeforeBuild" DependsOnTargets="RunSourceCodeInspections;PerformVersioning"> | |
</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"?> | |
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<PropertyGroup> | |
<TasksDllPath Condition="'$(MSBuildToolsVersion)' == '14'">$(MSBuildToolsPath)\Microsoft.Build.Tasks.Core.dll</TasksDllPath> | |
<TasksDllPath Condition="'$(MSBuildToolsVersion)' != '14'">$(MSBuildToolsPath)\Microsoft.Build.Tasks.v$(MSBuildToolsVersion).dll</TasksDllPath> | |
</PropertyGroup> | |
<UsingTask TaskName="InspectSourceCode" | |
TaskFactory="CodeTaskFactory" | |
AssemblyFile="$(TasksDllPath)"> | |
<ParameterGroup> |
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() | |
{ | |
long countDone = 0; | |
using (var pool = new FixedThreadPool(16)) | |
{ | |
pool.WaitForThreadInitialization(); | |
var totalDepth = 9; | |
var total = (2L << totalDepth) - 1; |
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
public double[] FeedForward(double[] inputs) | |
{ | |
for (int i = 0; i < inputs.Length; i++) | |
{ | |
neurons[0][i] = inputs[i]; | |
} | |
for (int i = 1; i < layers.Length; i++) | |
{ | |
for (int j = 0; j < neurons[i].Length; j++) |
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
<svg width="100%" height="100%" | |
xmlns="http://www.w3.org/2000/svg"> | |
<filter id="reshape"> | |
<feGaussianBlur stdDeviation="30"/> | |
<feComponentTransfer> | |
<feFuncA type="linear" slope="30.0" intercept="-10"/> | |
</feComponentTransfer> | |
</filter> | |
<g id="targetGroup" style="filter: url(#reshape);"> |
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.Runtime.InteropServices; | |
[StructLayout(LayoutKind.Explicit)] | |
struct FieldList | |
{ | |
[FieldOffset(0)] private int _item0; | |
[FieldOffset(4)] private int _item1; | |
[FieldOffset(8)] private int _item2; | |
[FieldOffset(12)] private int _item3; |
OlderNewer