Skip to content

Instantly share code, notes, and snippets.

View SaoYan's full-sized avatar
👨‍💻
creating bugs

Yiqi Yan SaoYan

👨‍💻
creating bugs
View GitHub Profile
@SaoYan
SaoYan / Ctreat_Widget.js
Last active September 25, 2020 00:54
iOS Scriptable script - customizing widget
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: orange; icon-glyph: quote-right;
// Thanks to: https://gist.github.com/spencerwooo/7955aefc4ffa5bc8ae7c83d85d05e7a4
/**
* query keys for each site
*/
const github = "SaoYan"
@SaoYan
SaoYan / exercise-web-crawler-slution1.go
Last active May 24, 2024 19:30
A Tour of Go Exercise: Web Crawler
package main
import (
"fmt"
"sync"
)
/*
This solution uses channels to force each gorountines to wait for its child gorountines to exit.
*/