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.Threading.RateLimiting; | |
var concurrency = 1; | |
var partitionedRateLimiter = PartitionedRateLimiter.Create<Guid, Guid>((r) => | |
{ | |
return RateLimitPartition.Get(r, (key) => | |
{ | |
var rateLimiter = new TokenBucketRateLimiter(new() | |
{ |
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
#!/bin/bash | |
# Check that the jq utility is installed. | |
which jq > /dev/null | |
if [ $? -ne 0 ]; then | |
echo "jq package not detected. Install using: sudo apt install jq" | |
exit 1 | |
fi | |
# Check that the Azure CLI is installed. |
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
git branch | % { $_.Replace("*", "").Trim() } | where { $_ -ne "main" } | % { git branch -D $_ } |
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
parameters: | |
Artifacts: [] | |
ArtifactName: 'not-specified' | |
stages: | |
- stage: Signing | |
dependsOn: ${{parameters.DependsOn}} | |
jobs: | |
- deployment: SignPackage | |
environment: wherewesign |
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 Newtonsoft.Json; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Net.Http; | |
using System.Net.Http.Headers; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace FlatQuerySample |
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
var status = { | |
started: Date.now(), | |
heartbeat: Date.now(), | |
runtime: null | |
}; | |
var heartbeater = function() { | |
status.heartbeat = Date.now(); | |
status.runtime = status.heartbeat - status.started; | |
setTimeout(heartbeater, 1000); |
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
<?xml version="1.0" encoding="utf-8"?> | |
<configuration> | |
<location path="Node"> | |
<system.webServer> | |
<handlers> | |
<add name="iisnode" path="*.js" verb="*" modules="iisnode" /> | |
</handlers> | |
<defaultDocument enabled="true"> | |
<files> | |
<add value="server.js" /> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=Edge" /> | |
<title>Excel Selection Changed Demo</title> | |
<link rel="stylesheet" type="text/css" href="../Content/Office.css" /> | |
<link rel="stylesheet" type="text/css" href="../Content/App.css" /> | |
<script src="../Scripts/jquery-1.7.1.js"></script> | |
<!--<script src="https://appsforoffice.microsoft.com/lib/1.0/hosted/office.js"></script>--> |
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.Collections.Generic; | |
using System.Collections.ObjectModel; | |
using System.Linq; | |
using System.Text; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using System.Windows.Threading; | |
using Windows.Networking.Proximity; |
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
sudo apt-get install nodejs npm node-semver | |
sudo apt-get install mono-complete | |
sudo apt-get install emacs |
NewerOlder