Skip to content

Instantly share code, notes, and snippets.

@riskers
riskers / App.tsx
Last active January 6, 2022 14:45
自定义 React Hook - useDevice (判断设备尺寸)
const App = () => {
const device = useDevice();
return <div className={getClassName(device)}>
Test
</div>
}
@riskers
riskers / README.md
Last active October 15, 2023 06:12
Python 环境管理 - conda
@riskers
riskers / README.md
Last active May 7, 2024 12:48
Nodejs 环境管理 - nvm

nvm

添加镜像

export NVM_NODEJS_ORG_MIRROR=https://npm.taobao.org/mirrors/node

config

@riskers
riskers / fridaUtils.js
Created March 3, 2023 09:52 — forked from rodnt/fridaUtils.js
Bytes to hex, string to bytes, bytes to string
/**
*
* Author: __rodx00__
*
* Usefull functions while reversing frida scripts.
*/
function bin2ascii(array) {
var result = [];
@riskers
riskers / BinanceWallet.ts
Created May 5, 2023 14:51 — forked from jeftarmascarenhas/BinanceWallet.ts
Connector to Binance on Wagmi
import {
ConnectorNotFoundError,
UserRejectedRequestError,
RpcError,
ResourceUnavailableError,
SwitchChainNotSupportedError,
} from "wagmi";
import { InjectedConnector } from "wagmi/connectors/injected";
import { Chain, Ethereum } from "@wagmi/core";