Skip to content

Instantly share code, notes, and snippets.


Jade zjhiphop

View GitHub Profile
zjhiphop /
Created May 12, 2021 — forked from mrousavy/
Memoize!!! 💾 - a react (native) performance guide
In computing, memoization or memoisation
is an optimization technique used primarily
to speed up computer programs by storing
the results of expensive function calls and  
returning the cached result when the same
inputs occur again.                                         
                                                     — wikipedia
View nginx.conf
# This configuration file is provided on an "as is" basis,
# with no warranties or representations, and any use of it
# is at the user's own risk.
user www-data;
worker_processes 4;
pid /run/;
events {
worker_connections 768;
View gist:c97a460544f267438758ff2ddd7034b7
var countries_data = {"type":"FeatureCollection","features":[
View asia.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View MongoDB-UserCollection-Data-Change_Send-Change-SocketIO.js
/* MongoDB-UserCollection-Data-Change_Send-Change-SocketIO.js */
'use strict'
module.exports = function (
User // Collection Name
) {
const changeStream =;
zjhiphop / main.go
Created Mar 19, 2019 — forked from shellmanme/main.go
mongo-go-driver Demo
View main.go
package main
import (
zjhiphop /
Created Mar 13, 2019 — forked from littlecodersh/
Main script behind itchat robot
import itchat
# tuling plugin can be get here:
from tuling import get_response
def text_reply(msg):
if u'作者' in msg['Text'] or u'主人' in msg['Text']:
return u'你可以在这里了解他:'
zjhiphop /
Created Nov 6, 2018 — forked from flackend/
Instructions for setting up CDPATH completions on Mac.



This will allow you to include additional directories to what cd will look at for completions. From the bash man page:

The search path for the cd command. This is a colon-separated list of directories in which the shell looks for destination directories specified by the cd command.


zjhiphop / public-stun-list.txt
Created Jul 24, 2018 — forked from mondain/public-stun-list.txt
Public STUN server list
View public-stun-list.txt
zjhiphop / the-scratch.conf
Created Jul 4, 2018 — forked from korczis/the-scratch.conf
Nginx Node.js Proxy with caching, websockets, gzip
View the-scratch.conf
proxy_cache_path /var/cache/nginx/cache levels=1:2 keys_zone=cache:8m max_size=3000m inactive=600m;
proxy_temp_path /var/tmp;
# the IP(s) on which your node server is running. I chose port 3000.
upstream app_the_scratch {
server weight=1 fail_timeout=60s;
# the nginx server instance
server {