Talk for the Vienna .NET User Group Meetup on Dec. 11th 2018.
License: MIT, based on dotnet-presentations/home presentations
| <Project> | |
| <Target Name="NpmInstall" Condition="Exists('package.json')"> | |
| <Exec Command="npm install" /> | |
| </Target> | |
| <Target Name="NpmCiTest" Condition="Exists('package.json')"> | |
| <Exec Command="npm run ci-test" /> | |
| <ItemGroup Condition="'$(TestResultsOutputPath)' != ''"> | |
| <TestResultFiles Include="obj\karma-testresults\**" /> |
| <Project> | |
| <Target Name="VSTestIfTestProject"> | |
| <CallTarget Targets="VSTest" Condition="'$(IsTestProject)' == 'true'" /> | |
| </Target> | |
| </Project> |
| const path = require('path'); | |
| const webpack = require('webpack'); | |
| const merge = require('webpack-merge'); | |
| const AngularCompilerPlugin = require('@ngtools/webpack').AngularCompilerPlugin; | |
| const CheckerPlugin = require('awesome-typescript-loader').CheckerPlugin; | |
| module.exports = (env) => { | |
| // Configuration in common to both client-side and server-side bundles | |
| const isDevBuild = !(env && env.prod); | |
| const sharedConfig = { |
| <Project> | |
| <Target Name="_CollectPackagesToUpdate" Returns="@(_PackageToUpdate)"> | |
| <ItemGroup> | |
| <_PackageToUpdate Include="@(PackageReference)" Condition="'%(PackageReference.IsImplicitlyDefined)' != 'true' and '%(PackageReference.DoNotUpdate)' != 'true'" | |
| TargetFramework="$(TargetFramework)" /> | |
| </ItemGroup> | |
| </Target> | |
| <Target Name="_UpdatePackagesSingleTfm" DependsOnTargets="_CollectPackagesToUpdate" Condition="'$(TargetFramework)' != '' and '$(TargetFrameworks)' == ''"> |
| public class CountTruesBenchmarks | |
| { | |
| private readonly bool[] boolArray; | |
| public CountTruesBenchmarks() | |
| { | |
| var rnd = new Random(42); | |
| boolArray = Enumerable.Range(0, 500).Select(_ => rnd.NextBoolean()).ToArray(); | |
| } |
| using Xamarin.Forms; | |
| public class MemoryLeakWorkaroundViewCell : ViewCell | |
| { | |
| protected override void OnDisappearing() | |
| { | |
| base.OnDisappearing(); | |
| base.Parent = null; | |
| } | |
| } |
| { | |
| "globals" : | |
| { | |
| "alwaysShowTabs" : true, | |
| "defaultProfile" : "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}", | |
| "initialCols" : 160, | |
| "initialRows" : 40, | |
| "keybindings" : | |
| [ | |
| { |
| @echo off | |
| if "%~1"=="" GOTO PRINTNAMESPACE | |
| : SETNAMESPACE | |
| kubectl config set-context --current --namespace="%~1" | |
| : PRINTNAMESPACE |