Skip to content

Instantly share code, notes, and snippets.

View GZShi's full-sized avatar
🎯
Focusing

Guozhong Shi GZShi

🎯
Focusing
View GitHub Profile
import zs from 'ZSBridge.js'
;(async function () {
try {
let { account, apass } = await zs.getAccount()
console.log(`current account is ${account}`)
} catch(ex) {
console.log(`failed: ${ex}`)
}
})()
@GZShi
GZShi / Merge table by key.yaml
Last active May 29, 2018 13:12
与Script Lab共享
name: Merge table by key
description: ''
author: GZShi
host: EXCEL
api_set: {}
script:
content: |-
/** Default helper for invoking an action and handling errors. */
async function tryCatchExcelRun(callback) {
try {
@GZShi
GZShi / merge two table.yaml
Last active May 29, 2018 14:42
与Script Lab共享
name: merge two table
description: ''
author: GZShi
host: EXCEL
api_set: {}
script:
content: |-
/** Default helper for invoking an action and handling errors. */
async function tryCatchExcelRun(callback) {
try {
@GZShi
GZShi / merge two table 2.yaml
Last active May 29, 2018 15:15
与Script Lab共享
name: merge two table 2
description: ''
author: GZShi
host: EXCEL
api_set: {}
script:
content: |-
/** Default helper for invoking an action and handling errors. */
async function tryCatchExcelRun(callback) {
try {
@GZShi
GZShi / merge two table 3.yaml
Created May 30, 2018 12:26
与Script Lab共享
name: merge two table 3
description: ''
author: GZShi
host: EXCEL
api_set: {}
script:
content: |-
/** Default helper for invoking an action and handling errors. */
async function tryCatchExcelRun(callback) {
try {
// url: https://leetcode-cn.com/problems/longest-common-prefix/description/
// date: 2018-07-01
// author: gzshi
/*
编写一个函数来查找字符串数组中的最长公共前缀。
如果不存在公共前缀,返回空字符串 ""。
示例 1:
@GZShi
GZShi / cmd_color.reg
Created August 10, 2018 00:58
windows 控制台中的颜色,使用ubuntu配色
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Console]
"ColorTable00"=dword:00240a30
"ColorTable01"=dword:00a46534
"ColorTable02"=dword:00069a4e
"ColorTable03"=dword:009a9806
"ColorTable04"=dword:000000cc
"ColorTable05"=dword:007b5075
"ColorTable06"=dword:0000a0c4
@GZShi
GZShi / cmd_font.reg
Last active August 10, 2018 01:01
windows控制台的字体设置
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Console\TrueTypeFont]
"00932"="Inziu IosevkaCC J"
"00936"="Inziu IosevkaCC SC"
"0932"="Inziu Iosevka J"
"0936"="Inziu Iosevka SC"
"000"="IosevkaCC"