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.Generic; | |
using System.IdentityModel.Tokens.Jwt; | |
using System.Linq; | |
using System.Threading.Tasks; | |
using Microsoft.ApplicationInsights.DependencyCollector; | |
using Microsoft.ApplicationInsights.Extensibility; | |
using Microsoft.AspNetCore.Authentication.JwtBearer; | |
using Microsoft.AspNetCore.Authorization; | |
using Microsoft.AspNetCore.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
sudo apt install p7zip-full | |
curl https://gslvhcd66k6digicalcapisa.blob.core.windows.net/bob/publish.7z -o publish.7z | |
sudo apt-get install libunwind8 | |
sudo apt-get install libcurl3 | |
# pkill -f gicalcsvc | |
sudo rm -rf /var/opt/gicalc | |
sudo 7za x -o/var/opt/gicalc publish.7z | |
sudo chmod +x /var/opt/gicalc/gicalc-console | |
sudo date > /var/opt/gicalc/deploy-date |
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
#![allow(dead_code)] | |
#![allow(unused_imports)] | |
use std::mem; | |
use std::ops; | |
use std::convert; | |
struct Point<T> { | |
x: T, | |
y: T | |
} |
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
### this is preamble (framework code), the user wouldn't type this. | |
$bindings = @{ | |
projects = @() | |
} | |
function project($projectFilename, $block) { | |
function output-type($type) { | |
#maybe validate or translate, etc... | |
$bindings.outputType = $type |
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.Generic; | |
using System.Diagnostics; | |
using System.Linq; | |
using System.Reflection; | |
using System.Text; | |
using Milliman.MGAlfa.AplInterface; | |
using Mono.Cecil; | |
using Mono.Cecil.Cil; | |
using NUnit.Framework; |
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.Generic; | |
using System.Linq; | |
using System.Threading; | |
namespace ThreadingApp | |
{ | |
public interface ITask | |
{ | |
void Execute(); |
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 PostStatusCodeMessageHandler: DelegatingChannel | |
{ | |
public PostStatusCodeMessageHandler(HttpMessageChannel innerChannel) | |
: base(innerChannel) | |
{ | |
} | |
protected override Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) | |
{ | |
var task = base.SendAsync(request, cancellationToken); |
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 interface IQueueWatcher | |
{ | |
void Start(); | |
} | |
public interface IQueueMessageProcessor | |
{ | |
void ProcessMessage(byte[] messageBytes); | |
} |
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
[merge] | |
keepBackup = false; | |
tool = p4merge | |
[mergetool "p4merge"] | |
cmd = p4merge "$BASE" "$LOCAL" "$REMOTE" "$MERGED" | |
keepTemporaries = false | |
trustExitCode = false | |
keepBackup = false |
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
void Main() | |
{ | |
var rootList = new List<Node>(new[]{ new Node() }); // only ever one root, I assume. | |
var childrenAtThisLevel = FillLevel(rootList); | |
while(childrenAtThisLevel.Count > 0) | |
childrenAtThisLevel = FillLevel(childrenAtThisLevel); | |
} | |
List<Node> FillLevel(List<Node> childrenAtThisLevel) | |
{ |
NewerOlder