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 class MefControllerFactory : IControllerFactory | |
{ | |
private readonly WebScopedContainerManager _containerManager; | |
public MefControllerFactory(WebScopedContainerManager containerManager) | |
{ | |
_containerManager = containerManager; | |
} | |
#region IControllerFactory Members |
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
# | |
# push_replace.ps1 | |
# | |
# This script is designed to produce customized release and debug nupkgs from a Visual Studio C# project. This is especially useful | |
# for nupkgs that include native DLLs that are different depending upon debug or release mode. | |
# | |
# How to use: | |
# In your .nuspec file in the <files> section, add the following line: | |
# <file src="$filelist$" target="lib\native" /> | |
# That line is set to go to lib\native because this script was made for handling native DLLs, but that target can be anything. |
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.IO; | |
using System.Linq; | |
using System.Linq.Expressions; | |
using System.Reflection; | |
using System.Reflection.Emit; | |
using ObjectDumper; | |
using Xunit; | |
namespace Classdynamic.BK5 |
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 Sdk="FSharp.NET.Sdk;Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<OutputType>Exe</OutputType> | |
<TargetFramework>netcoreapp1.1</TargetFramework> | |
</PropertyGroup> | |
<ItemGroup> | |
<Compile Include="rss.fs" /> |
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.Configuration; | |
using System.IO; | |
using System.Net.Http; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using Microsoft.AspNetCore.Builder; | |
using Microsoft.AspNetCore.Hosting; | |
using Microsoft.AspNetCore.Mvc; | |
using Microsoft.Azure.WebJobs; |
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
private static DrawingVisual CreateVisual() | |
{ | |
var noBorderPen = new Pen(new SolidColorBrush(Colors.Transparent), 0); | |
var selectionPen = new Pen(new SolidColorBrush(Colors.Yellow), 20 * 2); | |
var drawingVisual = new DrawingVisual(); | |
using (var dc = drawingVisual.RenderOpen()) | |
{ | |
StreamGeometry geometry = new StreamGeometry(); |
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
<UserControl x:Class="Wpf3DPlayer.InformationsIcon" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
xmlns:local="clr-namespace:Wpf3DPlayer" | |
mc:Ignorable="d" | |
d:DesignHeight="50" d:DesignWidth="50"> | |
<Grid> | |
<Viewbox xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" Stretch="Uniform"> |
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 Show-JobProgress { | |
[CmdletBinding()] | |
param( | |
[Parameter(Mandatory,ValueFromPipeline)] | |
[ValidateNotNullOrEmpty()] | |
[System.Management.Automation.Job[]] | |
$Job | |
, | |
[Parameter()] | |
[ValidateNotNullOrEmpty()] |
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
// http://stackoverflow.com/questions/26501688/a-typescript-guid-class | |
class Guid { | |
static newGuid() { | |
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) { | |
const r = Math.random() * 16 | 0, v = c === 'x' ? r : ( r & 0x3 | 0x8 ); | |
return v.toString(16); | |
}); | |
} | |
} |
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
You can `wget` your way out of the GitHub repo to get a tar file ([archive][1]): | |
wget --no-check-certificate https://github.com/User/repo/archive/master.tar.gz | |
# better, if the certificate authorities are present: | |
wget https://github.com/User/repo/archive/master.tar.gz | |
will get you a file named 'master' from the user 'User''s repo 'repo'. | |
The [updated V3 API url][2] is: |
OlderNewer