- Goto
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor
- If dont have
Autorun
. Add a String Value(字串值) ->Autorun
- Change & Add
>nul
| E.g. —chcp xxxxx
->chcp xxxxx>nul
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
class HK80Converter { | |
static const double pi = 3.141592653589793; | |
// HK80 參數 | |
static const double _a = 6378388.0; | |
static const double _e2 = 6.722670022e-3; | |
static const double _m0 = 1.0; | |
static const double _M0 = 2468395.728; | |
static const double _N0 = 819069.80; | |
static const double _E0 = 836694.05; |
⚠⚠⚠⚠⚠this must be set when new a renderer object⚠⚠⚠⚠⚠
{preserveDrawingBuffer: true}
//⚠⚠⚠⚠⚠this must be set when new a renderer object⚠⚠⚠⚠⚠
//{preserveDrawingBuffer: true}
const renderer = new THREE.WebGLRenderer({preserveDrawingBuffer: true});
//set a id for getting the canvas
renderer.domElement.id = 'screenshot';
speed = (currentTime - startTime) / (endTime - startTime)
frame = Date.now()
const speed = (frame - positions[0].frame) / (positions[0 + delay].frame - positions[1 + delay].frame);
- The interpolation factor
speed
represents the position between the two most recent positions in the positions array. frame
is the current frame of the game.positions[0].frame
is the frame of the most recent position in the positions array.positions[0 + delay].frame
andpositions[1 + delay].frame
are the frames of the two most recent positions, with a delay offset.
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
//Get the device type | |
let system = navigator.userAgent | |
let isAndroid = system.indexOf('Android') > -1 || system.indexOf('Adr') > -1 // android终端 | |
let isiOS = !!system.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/) //ios终端 | |
let Androidurl = "https://www.androidurl.com" | |
let Appleurl = "https://www.Appleurl.com" | |
// Open the Google Maps link in a new tab | |
var newWindow = window.open('', '_blank') // Noted: this window.open() must be call outside the async, since safari blocked .open() inside any async function |
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
//Convert to csv | |
downloadCSVFromJson = (filename, arrayOfJson) => { | |
// convert JSON to CSV | |
const replacer = (key, value) => value === null ? '' : value // specify how you want to handle null values here | |
const header = Object.keys(arrayOfJson[0]) | |
let csv = arrayOfJson.map(row => header.map(fieldName => | |
JSON.stringify(row[fieldName], replacer)).join(',')) | |
csv.unshift(header.join(',')) | |
csv = csv.join('\r\n') |
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
<!--add this into <head> part --> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
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 email by remember { mutableStateOf("") } | |
var isEmailValid by remember { mutableStateOf(false) } | |
//Calling the function | |
CustomOutlinedTextField( | |
value = email, | |
onValueChange = { | |
email = it | |
isEmailValid = isValidEmail(it) | |
}, |