Skip to content

Instantly share code, notes, and snippets.

View zjhiphop's full-sized avatar

Jade zjhiphop

View GitHub Profile
zjhiphop /
Created November 23, 2021 09:22
Thinking in ReactJS

when keys using dynamic value, then the view will be add more and more when rerender => {
  return <View key={new Date()} style={styles.tableHeaderItem}>
zjhiphop /
Created May 12, 2021 09:44 — 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;
zjhiphop / gist:c97a460544f267438758ff2ddd7034b7
Created December 25, 2019 08:31 — forked from markmarkoh/gist:2969317
World Map Geo JSON data
View gist:c97a460544f267438758ff2ddd7034b7
var countries_data = {"type":"FeatureCollection","features":[
zjhiphop / asia.geojson
Created December 25, 2019 07:18 — forked from hrbrmstr/asia.geojson
asia geojson
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 March 19, 2019 10:38 — forked from shellmanme/main.go
mongo-go-driver Demo
View main.go
package main
import (
zjhiphop /
Created March 13, 2019 06:22 — 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 November 6, 2018 06:08 — 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 July 24, 2018 09:57 — forked from mondain/public-stun-list.txt
Public STUN server list
View public-stun-list.txt