Skip to content

Instantly share code, notes, and snippets.

@evianzhow
evianzhow / sams_minip_monitor.rb
Created June 13, 2022 03:11
山姆下单监控小程序版(Updated:22/4/12)
require 'net/http'
require 'net/https'
require 'json'
def t_puts(*args)
print Time.now.strftime("[%Y-%m-%d %H:%M:%S] ")
puts *args
end
# Request (POST )
@evianzhow
evianzhow / exclude-list.txt
Created January 28, 2020 13:00
Common excluded Time Machine folders for react-native developers
~/.rncache
~/.npm
/Applications/Android Studio.app
/Applications/Xcode.app
~/Library/Android/sdk
@evianzhow
evianzhow / install_nodejs_and_yarn_homebrew.md
Created April 20, 2019 04:22 — forked from nijicha/install_nodejs_and_yarn_homebrew.md
Install NVM, Node.js, Yarn via Homebrew

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
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) {
/* @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);
/
├── ios/
│ └── .gitignore
├── android/
│ └── .gitignore
├── js/
│ ├── App.js // react-native-router-flux 路由
│ ├── actions/
│ ├── assets/ // 素材内容
│ ├── components/ // Pure Components
@evianzhow
evianzhow / index.js
Last active March 26, 2018 07:04
jpush-react-native with lodash throttle
const registerJPush = (alias, tags) => {
if (!JPushConnected) {
return throttledRegister(alias, tags);
}
if (alias) {
JPushModule.setAlias(alias, ({ errorCode = 0 }) => {
if (errorCode) {
throttledRegister(alias, null);
}
});
@evianzhow
evianzhow / gist:3f0e3a1b41237f386addf60f61dd5294
Created March 14, 2018 14:43
FBPortForwarding Flow Map
|
iOS Device | Mac
|
+----------------+ +----------------+
|Peertalk Server | connect |Peertalk Client |
| <------------+ |
| | | |
| Port 8025| | |
+----+-----------+ +---------^------+
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 September 3, 2017 02:11
HP Smart Array Advanced Pack Evaluation License Key
34T62-N84MB-7DQGY-G7XGT-YTQ63