Skip to content

Instantly share code, notes, and snippets.

Yifei Zhou EvianZhow

Block or report user

Report or block EvianZhow

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View install_nodejs_and_yarn_homebrew.md

Install NVM, NodeJS, Yarn via Homebrew

Prerequisites

  • Homebrew should be installed (Command line tools for Xcode are included).

Getting start

Install NVM and NodeJS

  1. Install nvm via Homebrew
View gist:2c251e6f6859f5599119e977c8d72bde
const contList = document.querySelector('.contList');
const mailAddresses = [];
contList.querySelectorAll('ul').forEach(function(node) {
const name = node.querySelector('.firstLine').textContent.trim();
const mail_address = node.querySelector('.mailAddress').textContent.trim();
mailAddresses.push([name, mail_address]);
});
let csvContent = "data:text/csv;charset=utf-8,";
let rows = mailAddresses
rows.forEach(function(rowArray) {
View umeng.js
/* @flow */
import MobClick from '@utils/umeng';
import { ActionConst } from 'react-native-router-flux';
import { all, takeEvery, fork } from 'redux-saga/effects';
function* watchPageEnter() {
yield takeEvery(ActionConst.FOCUS, function*(action) {
const { routeName } = action;
MobClick.onPageStart(routeName);
View rn-directory-structure.txt
/
├── ios/
│ └── .gitignore
├── android/
│ └── .gitignore
├── js/
│ ├── App.js // react-native-router-flux 路由
│ ├── actions/
│ ├── assets/ // 素材内容
│ ├── components/ // Pure Components
@EvianZhow
EvianZhow / index.js
Last active Mar 26, 2018
jpush-react-native with lodash throttle
View index.js
const registerJPush = (alias, tags) => {
if (!JPushConnected) {
return throttledRegister(alias, tags);
}
if (alias) {
JPushModule.setAlias(alias, ({ errorCode = 0 }) => {
if (errorCode) {
throttledRegister(alias, null);
}
});
View gist:3f0e3a1b41237f386addf60f61dd5294
|
iOS Device | Mac
|
+----------------+ +----------------+
|Peertalk Server | connect |Peertalk Client |
| <------------+ |
| | | |
| Port 8025| | |
+----+-----------+ +---------^------+
View parted_log.txt
Number Start End Size File system Name Flags
34s 2047s 2014s Free Space
1 2048s 4982527s 4980480s ext4 Linux RAID raid
2 4982528s 9176831s 4194304s linux-swap(v1) Linux RAID raid
9176832s 9453279s 276448s Free Space
5 9453280s 3221007391s 3211554112s Linux RAID raid
3221007392s 6442450910s 3221443519s Free Space
@EvianZhow
EvianZhow / hp_saap_license.txt
Created Sep 3, 2017
HP Smart Array Advanced Pack Evaluation License Key
View hp_saap_license.txt
34T62-N84MB-7DQGY-G7XGT-YTQ63
@EvianZhow
EvianZhow / WebTerminal.md
Last active Aug 2, 2017
MetaTrader Web Terminal 启动参数
View WebTerminal.md

Original URL Sample:

https://trade.mql5.com/trade?servers=PTAus-Demo,PTAus-Live%201&trade_server=PTAus-Live%201&demo_server=PTAus-Demo&demo_type=forex,forex-usd&demo_leverage=1,33,100,300,500&startup_mode=open_demo&lang=zh&save_password=off

Decoded:

https://trade.mql5.com/trade?servers=PTAus-Demo,PTAus-Live 1&trade_server=PTAus-Live 1&demo_server=PTAus-Demo&demo_type=forex,forex-usd&demo_leverage=1,33,100,300,500&startup_mode=open_demo&lang=zh&save_password=off
@EvianZhow
EvianZhow / README.md
Last active Apr 25, 2017
iPod battery percentage enabler
View README.md
You can’t perform that action at this time.