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
from typing import Union, BinaryIO | |
import numpy as np | |
from binary_reader import BinaryReader | |
def f_read(reader: Union[BinaryIO, BinaryReader], shape, dtype): | |
""" | |
``fread`` method in matlab |
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
type Callback<T = any> = (err?: unknown, result?: T) => void | |
export async function returnSomething(): Promise<number>; | |
export function returnSomething(callback: Callback<number>): void; | |
export function returnSomething(callback?: Callback<number>): void | Promise<number> { | |
return asCallback<number>(asyncCall(), callback) | |
} |
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
""" | |
parse a PHP `var_dump` string to a python dict | |
Copy Right 2021 Trim21<[email protected]> | |
Licensed under MIT License | |
https://spdx.org/licenses/MIT.html | |
""" |
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
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
; #Warn ; Enable warnings to assist with detecting common errors. | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
SetTitleMatchMode, 2 | |
SetTitleMatchMode, Fast ;可以使用正则表达式对标题进行匹配 | |
GroupAdd, NonMDApp, ahk_exe pycharm64.exe | |
GroupAdd, NonMDApp, ahk_exe Code.exe |