- 組み込みのlanguage serverをwslで動かす必要があるため(lernaとか)
- シンボリックリンクをvscodeが認識する必要がある場合
- win/linuxで大きく動作が変わるnpm packageを参照している場合
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
void main() async { | |
final now = DateTime.parse("2022-07-09 12:02:00"); | |
final expirationTime1 = DateTime.parse("2022-07-09 12:03:00"); | |
final expirationTime2 = DateTime.parse("2022-07-09 12:01:00"); | |
final n = now.add(const Duration(minutes: -2)); // 2min前 | |
final n2 = now.add(const Duration(minutes: 2)); // 2min前(修正版) | |
if (n.isBefore(expirationTime1)) { | |
print("not expired1"); | |
} else { | |
print("expired1"); |
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 callback; | |
var p = new Promise(resolve => callback = resolve); | |
var p2; | |
var microtask = () => { | |
console.log("microtask"); | |
p2.then(microtask); | |
}; | |
p2 = p.then(microtask); | |
console.log("sync"); |
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
// core側 | |
export class HogeManager { | |
@hookPoint("someUsefulFunc") | |
someUsefulFunc() { | |
// core側の処理 | |
} | |
} | |
- mac safariでは11から「音声つき動画の自動再生」はデフォルトでは許可されていなかった。ユーザー設定により変更可能
- http://ch.nicovideo.jp/indies-game/blomaga/ar1407722 の「Mac版Safari ユーザーの方へ」
- chromeでも64からPC/Androidともに特定条件で自動再生が無効化されるらしい
- 「自動再生が無効化」されているブラウザにおいて、ツクールMV製のゲームをプレイすると、音声つき動画再生の時点でゲームが止まってしまう (★)
- アツマールでは上記問題に対し、 http://ch.nicovideo.jp/indies-game/blomaga/ar1407722 にて提供されるプラグインを実装し、「音声つき自動再生が許可されていない場合、音声無しで再生する」「自動再生が許可されていない場合、動画再生自体をスキップする」という対応をした
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
<html> | |
<body> | |
<script> | |
if (window.opener) { | |
window.addEventListener("message", function(ev) { | |
var dataStr = ev.data; // get data from parent | |
// calc and get data | |
var result = somethingYouWantToDo(parseDataString(dataStr)).stringify(); | |
window.opener.postMessage(result, "*"); | |
}); |
- ダウンロード先
- http://rubyinstaller.org/downloads/
- rubyは2.0.0推奨。1.9.2だと動かなかった
- インストール方法
- この辺りが参考になりました
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 RailloadCity.Core.Infrastructures.DependencyInjections; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace RailloadCity.Core.Infrastructures.Scenes | |
{ | |
/// <summary> |
NewerOlder