A mostly reasonable approach to AutoHotkey
- All variables should be
camelCase
orsnake_case
- Constants should be in
ALLCAPS
WinHttpRequest(params*) | |
{ | |
static instance := "" | |
return isObject(instance) | |
? instance | |
: instance := new winhttprequest(params*) | |
} | |
class winhttprequest extends WinHttpRequest.Factory | |
{ |
#SingleInstance, Force | |
#NoEnv | |
SetBatchLines -1 | |
DetectHiddenWindows, On | |
gosub Display | |
Browser_Forward::Reload | |
Display: | |
;**********************gui********************************* | |
gui, +resize |
; Function: Array_Gui | |
; Description: Displays an array as a treeview in a GUI | |
; Syntax: Array_Gui(Array) | |
; Parameters: Param1 - Array | |
; Return Value: Null | |
; Remarks: Resizeable | |
; Related: Array_Print, Array_DeepClone, Array_IsCircle | |
; Example: Array_Gui({"GeekDude":["Smart", "Charming", "Interesting"], "tidbit":"Weird"}) | |
Array_Gui(Array, Parent="") { |
//ScaleManager.js | |
class ScaleManager { | |
constructor(canvas, isMobile) { | |
this.canvas = canvas; | |
this.mobile = isMobile; | |
window.addEventListener('resize', () => { | |
this.resize(this.canvas); | |
if (this.mobile) { |