Skip to content

Instantly share code, notes, and snippets.

View wheelo's full-sized avatar
🏀
Bustling

Erik Peng wheelo

🏀
Bustling
View GitHub Profile
@wheelo
wheelo / useAppSelector.ts
Created March 24, 2022 10:20 — forked from justblender/useAppSelector.ts
Custom Redux.useSelector() hook for React Native apps
import { useEffect, useReducer, useRef } from 'react';
import { useNavigation } from '@react-navigation/native';
import { useSelector } from 'react-redux';
const undefinedRef = Symbol();
const refEquality = (a: Object, b: Object) => a === b;
export function useAppSelector<Selected = unknown>(
console.log('this is a test')
@wheelo
wheelo / ReactNative-Deep-Dive.md
Created March 10, 2017 03:16 — forked from nsimmons/ReactNative-Deep-Dive.md
ReactNative Deep Dive
@wheelo
wheelo / nginx.conf
Created January 13, 2017 15:23 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048