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
gulp.task( 'javascript-world', function () { | |
var dest = "./" + project.webroot + '/lib/'; | |
return gulp.src( ['src/scripts/world-*.js'] ) | |
// Concat to single file | |
.pipe( concat( 'world.js' ) ) | |
// Add Byte order mark | |
.pipe( addBOM() ) | |
// output for Win10 UWP App | |
.pipe( gulp.dest( '../IllyriadGames.Illyriad.Javascript/lib/' ) ) | |
// pre-gzip for web |
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
Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force | |
npm install -g npm-windows-upgrade | |
npm-windows-upgrade |
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
robocopy ./ node_modules /purge | |
rd /s node_modules |
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
{ | |
"name": "package", | |
"version": "1.0.0", | |
"private": true, | |
"dependencies": { }, | |
"devDependencies": | |
{ | |
"browserify": "^11.0.1", | |
"document-section": "^2.0.0", | |
"event-stream": "^3.3.1", |
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
#Define update criteria. | |
$Criteria = "IsInstalled=0 and Type='Software'" | |
#Search for relevant updates. | |
$Searcher = New-Object -ComObject Microsoft.Update.Searcher | |
$SearchResult = $Searcher.Search($Criteria).Updates |
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
init = function(args) | |
local r = {} | |
local depth = tonumber(args[1]) or 1 | |
for i=1,depth do | |
r[i] = wrk.format() | |
end | |
req = table.concat(r) | |
end | |
request = function() | |
return req |
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
{ | |
"locked": false, | |
"version": 2, | |
"targets": { | |
"DNXCore,Version=v5.0": { | |
"Microsoft.AspNet.FileProviders.Abstractions/1.0.0-rc2-15813": { | |
"type": "package", | |
"dependencies": { | |
"Microsoft.Extensions.Primitives": "1.0.0-rc2-15862", | |
"System.IO": "4.0.11-rc2-23513", |
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 BenchmarkDotNet; | |
using BenchmarkDotNet.Tasks; | |
namespace AsciiToString | |
{ | |
[BenchmarkTask(platform: BenchmarkPlatform.X86, jitVersion: BenchmarkJitVersion.LegacyJit)] | |
[BenchmarkTask(platform: BenchmarkPlatform.X64, jitVersion: BenchmarkJitVersion.LegacyJit)] | |
[BenchmarkTask(platform: BenchmarkPlatform.X64, jitVersion: BenchmarkJitVersion.RyuJit)] | |
public class AsciiToString | |
{ |
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 BenchmarkDotNet; | |
using BenchmarkDotNet.Tasks; | |
namespace AsciiToString | |
{ | |
[BenchmarkTask(platform: BenchmarkPlatform.X86, jitVersion: BenchmarkJitVersion.LegacyJit)] | |
[BenchmarkTask(platform: BenchmarkPlatform.X64, jitVersion: BenchmarkJitVersion.RyuJit)] | |
public class AsciiToString | |
{ |
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
// Interface segregation | |
// For mixins/generic constraints version see https://gist.github.com/benaadams/77c6e7aa34aae92b876a | |
// For combined version see https://gist.github.com/benaadams/74eb6be3e2bb5c1c2a64 | |
// Do something with sync Reading, Seeking, Disposable stream | |
public static void DoSomething(ISeekableDuplexStream stream) | |
{ | |
stream.ReadByte(); | |
stream.SetLength(6); | |
stream.Position = 5; |