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
{ | |
"window.zoomLevel": -0.5, | |
"editor.insertSpaces": true, | |
"editor.folding": false, | |
"files.autoSave": "afterDelay", | |
"files.trimTrailingWhitespace": true, | |
"files.eol": "\n", |
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
<body></body> | |
<script> | |
try{ | |
var w=20, h=20; | |
var s=10; | |
var t=2500; | |
var sl=5; | |
var lx=1, ly=0; | |
var ax=1, ay=0; |
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
/* | |
Server IP Information Utils | |
by VILIC VANE <https://github.com/vilic> | |
MIT License | |
*/ | |
import * as OS from 'os'; | |
export interface IPInfo { | |
lanIP: string; |
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 ChildProcess = require('child_process'); | |
var task = process.argv[2]; | |
var cargo = ChildProcess.exec('cargo ' + task); | |
cargo.stdout.on('data', function (data) { | |
process.stdout.write(data); | |
}); |
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
/** | |
* A test using regular expression for lexing | |
* by vilicvane<https://vilic.github.io/> | |
* | |
* It turns out to be 50% faster comparing to original Angular lexer before JIT Compilation, but 50% slower then (in Chrome). | |
* And only 1/3 of the original lexer counting the core code lines. | |
* Though it's because the regular expressions are doing most of the work. | |
* | |
* Note: The regular expression and related enum declaration are managed by https://github.com/vilic/regex-tools/. | |
*/ |
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
// relatively safe | |
function formatSafely(num, digits) { | |
return (Array(digits).join('0') + Math.floor(num)).substr(-digits); | |
} | |
// or quick | |
function formatQuickly(num, digits) { | |
return (Array(digits).join('0') + num).substr(-digits); | |
} |
NewerOlder