Skip to content

Instantly share code, notes, and snippets.

View NexZhu's full-sized avatar
💭
I may be slow to respond.

Nex Zhu NexZhu

💭
I may be slow to respond.
View GitHub Profile
@NexZhu
NexZhu / Git_Behind_Proxy.md
Created June 8, 2022 08:41 — forked from ozbillwang/Git_Behind_Proxy.md
Configure Git to use a proxy (https or SSH+GIT)
@NexZhu
NexZhu / 0_reuse_code.js
Created March 7, 2016 04:18
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@NexZhu
NexZhu / astral-advanced-search.js
Last active May 20, 2017 10:10
A bookmarklet as a temporal solution for advance searching in Astral
(function() {
var keywords = prompt().toLowerCase().split(/\s*,\s*/);
var kwWords = keywords.filter(function(keyword) {
return !keyword.startsWith('#')
});
var kwTags = _.difference(keywords, kwWords).map(function(tag) {
return tag.substr(1);
});
// build repos
@NexZhu
NexZhu / exercise-web-crawler.go
Created November 14, 2015 08:58
My solution for "Exercise: Web Crawler" in "A Tour of Go" - https://tour.golang.org/concurrency/9
package main
import (
"fmt"
)
type Fetcher interface {
// Fetch returns the body of URL and
// a slice of URLs found on that page.
Fetch(url string) (body string, urls []string, err error)