Talk for the Vienna .NET User Group Meetup on Dec. 11th 2018.
License: MIT, based on dotnet-presentations/home presentations
{ | |
"globals" : | |
{ | |
"alwaysShowTabs" : true, | |
"defaultProfile" : "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}", | |
"initialCols" : 160, | |
"initialRows" : 40, | |
"keybindings" : | |
[ | |
{ |
using Xamarin.Forms; | |
public class MemoryLeakWorkaroundViewCell : ViewCell | |
{ | |
protected override void OnDisappearing() | |
{ | |
base.OnDisappearing(); | |
base.Parent = null; | |
} | |
} |
public class CountTruesBenchmarks | |
{ | |
private readonly bool[] boolArray; | |
public CountTruesBenchmarks() | |
{ | |
var rnd = new Random(42); | |
boolArray = Enumerable.Range(0, 500).Select(_ => rnd.NextBoolean()).ToArray(); | |
} |
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 = { |
// | |
// InterceptionTests.m | |
// | |
// Created by Martin Ullrich on 19.07.13. | |
// Copyright (c) 2013 CSS Computer-Systems-Support GmbH. All rights reserved. | |
// | |
#import "InterceptionTests.h" | |
#import <RootKit/RootKit.h> | |
#import <objc/message.h> |
<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)' == ''"> |
#!/bin/bash | |
SOURCE="${BASH_SOURCE[0]}" | |
SRC_DIR="$(cd -P "$(dirname "$SOURCE")"&&pwd)" | |
WORKDIR="/usr/src" | |
IMAGENAME="microsoft/aspnetcore-build" | |
COMMAND="./build.sh" | |
docker pull "$IMAGENAME" | |
docker run --rm -w "$WORKDIR" -v "$SRC_DIR":"$WORKDIR" -- "$IMAGENAME" $COMMAND |
#!/usr/bin/env bash | |
DOTNET_CLI_PATH="$(dirname $(which dotnet))/sdk/$(dotnet --version)" | |
export MSBuildExtensionsPath="$DOTNET_CLI_PATH/" | |
export CscToolExe="$DOTNET_CLI_PATH/Roslyn/RunCsc.sh" | |
export MSBuildSDKsPath="$DOTNET_CLI_PATH/Sdks" | |
msbuild /nologo /v:minimal "$@" |