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
license: mit |
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": [ | |
"Serilog.Sinks.Async", | |
"Serilog.Sinks.Console", | |
"Serilog.Sinks.File", | |
"Serilog.Sinks.Elasticsearch", | |
"Serilog.Formatting.Elasticsearch", | |
"Serilog.Expressions" | |
], | |
"MinimumLevel": { |
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 main scene light. | |
* | |
* @returns a point light scene. | |
*/ | |
function createLight() { | |
var lightGeometry = new THREE.SphereGeometry(0); | |
var lightMaterial = new THREE.MeshStandardMaterial({ | |
emissive: 0xffffee, |
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
export default class AudioGroup { | |
_imgUrl = null; | |
_mp3Url = null; | |
_autoPlay = false; | |
/**@type {Function} */ | |
_onPlayCompleteCallback = null; | |
/**@type {boolean} */ | |
_isUseDomAudio; | |
spriteFrame; |
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
// Override | |
PIXI.InteractionManager.prototype.onTouchStart = function(event) | |
{ | |
var rect = this.interactionDOMElement.getBoundingClientRect(); | |
if(PIXI.AUTO_PREVENT_DEFAULT)event.preventDefault(); | |
var changedTouches = event.changedTouches; | |
for (var i=0; i < changedTouches.length; i++) | |
{ |
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
// 判断横竖屏 | |
var utils = { | |
debounce: function(func,delay){ | |
var timer = null; | |
return function(){ | |
var context = this, | |
args = arguments; | |
clearTimeout(timer); | |
timer = setTimeout(function(){ | |
func.apply(context,args); |
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
// <copyright file="文件名.cs" company="HP"> | |
// Copyright (c) HP. All rights reserved. | |
// </copyright> | |
// <author>×××</author> | |
// <date> yyyy-mm-dd </date> | |
// <summary>文件功能描述</summary> | |
// <modify> | |
// 修改人:××× | |
// 修改时间:yyyy-mm-dd | |
// 修改描述:××× |
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
SemaphoreSlim mutex = new SemaphoreSlim(1); | |
int value; | |
Task<int> GetNextValueAsync(int current); | |
async Task UpdateValueAsync() | |
{ |
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
Windows Registry Editor Version 5.00 | |
[-HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\MSYS here] | |
[-HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\MINGW64 here] | |
[-HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\MINGW32 here] |
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 abstract class HostedService : IHostedService | |
{ | |
private Task _executingTask; | |
private CancellationTokenSource _cts; | |
public Task StartAsync(CancellationToken cancellationToken) | |
{ | |
// Create a linked token so we can trigger cancellation outside of this token's cancellation |
NewerOlder