This file contains hidden or 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 MyAppBootstrapper : PillarBootstrapper | |
{ | |
private readonly Application _app; | |
public MyAppBootstrapper(Application app) | |
{ | |
_app = app; | |
} | |
protected override void ConfigureContainer(ContainerBuilder builder) |
This file contains hidden or 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 FirstViewModel : PillarViewModelBase | |
{ | |
private readonly INavigator _navigator; | |
public FirstViewModel(INavigator navigator) | |
{ | |
_navigator = navigator; | |
// Go to the second view after 5 seconds | |
GoToSecondViewModel(); |
This file contains hidden or 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
// ==UserScript== | |
// @name Better Bitbucket Pull Requests | |
// @namespace GSoft | |
// @author Anthony Simmon | |
// @version 1.0.0 | |
// @match https://bitbucket.org/*/pull-requests/* | |
// @match https://bitbucket.org/*/branch/* | |
// ==/UserScript== | |
function BBPR_App () { |
This file contains hidden or 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
// ==UserScript== | |
// @name Zendesk Comment Permalinks | |
// @namespace GSoft | |
// @description Adds new navigation capabilities to Zendesk | |
// @version 2.0.0 | |
// @match https://*.zendesk.com/agent/* | |
// @grant none | |
// ==/UserScript== | |
/******/ (function(modules) { // webpackBootstrap |
This file contains hidden or 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 profiler from './screeps-profiler'; | |
export function profile(target: Function): void; | |
export function profile(target: object, key: string | symbol, _descriptor: TypedPropertyDescriptor<Function>): void; | |
export default function profile(target: object | Function, key?: string | symbol, _descriptor?: TypedPropertyDescriptor<Function>): void { | |
if (typeof profiler === 'undefined') { | |
return; | |
} | |
if (key) { |
This file contains hidden or 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.Concurrent; | |
using System.Reflection; | |
using System.Threading.Tasks; | |
using BenchmarkDotNet.Attributes; | |
using BenchmarkDotNet.Columns; | |
using BenchmarkDotNet.Configs; | |
using BenchmarkDotNet.Order; | |
using BenchmarkDotNet.Reports; | |
using BenchmarkDotNet.Running; |
This file contains hidden or 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.Threading.Tasks; | |
using BenchmarkDotNet.Attributes; | |
using BenchmarkDotNet.Columns; | |
using BenchmarkDotNet.Configs; | |
using BenchmarkDotNet.Reports; | |
using BenchmarkDotNet.Running; | |
var benchmarkOptions = DefaultConfig.Instance.WithSummaryStyle(SummaryStyle.Default.WithRatioStyle(RatioStyle.Trend)); | |
_ = BenchmarkRunner.Run<AwaitBenchmarks>(benchmarkOptions); |
This file contains hidden or 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.Linq; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using Microsoft.Extensions.Configuration; | |
using Microsoft.Extensions.Configuration.AzureAppConfiguration; | |
using Microsoft.Extensions.DependencyInjection; | |
using Microsoft.Extensions.Hosting; | |
using Microsoft.Extensions.Logging; | |
using Microsoft.FeatureManagement; |
This file contains hidden or 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 EphemeralMongo; | |
public static class MongoRunnerProvider | |
{ | |
private static readonly object _lockObj = new object(); | |
private static IMongoRunner? _runner; | |
private static int _useCounter; | |
public static IMongoRunner Get() | |
{ |
This file contains hidden or 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
# Create a branch policy in Azure Repos to protect your main branch | |
trigger: none | |
schedules: | |
- cron: "28 5 * * 6" | |
displayName: "Weekly run" | |
branches: | |
include: ["main", "master"] | |
always: true |