Skip to content

Instantly share code, notes, and snippets.

View GZShi's full-sized avatar
🎯
Focusing

Guozhong Shi GZShi

🎯
Focusing
View GitHub Profile
@nathan-osman
nathan-osman / win32.go
Last active August 31, 2023 22:01
Simple Windows GUI application written in Go
package main
import (
"log"
"syscall"
"unsafe"
)
var (
kernel32 = syscall.NewLazyDLL("kernel32.dll")
@GZShi
GZShi / find_nst_num.c
Created November 21, 2012 06:31
将一堆整数按顺序排成一串形成一个序列,例如从0到20排成一串可以得到下面这个序列: 01234567891011121314151617181920 这个序列中的每一个位置都对应一个0~9的数,例如,第16位是2。假如这堆整足够大,那么序列中第100000个数时什么?
#include <stdio.h>
#include <Windows.h>
// 计算10的整次幂
long mypower(unsigned int e)
{
long ret[10] = {
1,
10,
100,