Skip to content

Instantly share code, notes, and snippets.

View BANG88's full-sized avatar
🍉
Focusing

阿邦 BANG88

🍉
Focusing
  • GUANG ZHOU
View GitHub Profile
@BANG88
BANG88 / @formatjs+cli+^4.8.4.patch
Last active May 10, 2022 07:32
Sync missing key to other locales after formatjs's extraction have done. these locales are come from next.config.js.
# generated by patch-package 6.4.10
#
# command:
# npx patch-package @formatjs/cli
#
# declared package:
# @formatjs/cli: ^4.8.4
#
diff --git a/node_modules/@formatjs/cli/src/extract.js b/node_modules/@formatjs/cli/src/extract.js
index 5f9095e..73dd043 100755
@BANG88
BANG88 / log
Created October 22, 2018 14:38
~/Desktop/my_new_app
$ flutter run -v
[ +39 ms] executing: [/Users/bang/development/flutter/] git rev-parse
--abbrev-ref --symbolic @{u}
[ +51 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ ] origin/master
[ ] executing: [/Users/bang/development/flutter/] git rev-parse
--abbrev-ref HEAD
[ +11 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] master
[ +35 ms] executing: [/Users/bang/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[ +36 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ ] origin/beta
[ ] executing: [/Users/bang/flutter/] git rev-parse --abbrev-ref HEAD
[ +7 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] beta
[ ] executing: [/Users/bang/flutter/] git ls-remote --get-url origin
[ +8 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] https://github.com/flutter/flutter.git
[ ] executing: [/Users/bang/flutter/] git log -n 1 --pretty=format:%H

Keybase proof

I hereby claim:

  • I am bang88 on github.
  • I am coding3life (https://keybase.io/coding3life) on keybase.
  • I have a public key ASBVmO2V3CpoG_xgUH1LYOgLiaEOIx4lIehMdb08GFll2Ao

To claim this, I am signing this object:

@BANG88
BANG88 / setupTests.ts
Last active March 5, 2017 14:25
window.matchMedia
window.matchMedia = window.matchMedia || function (mediaQuery: string): MediaQueryList {
return {
matches: false,
media: '',
addListener: function () { },
removeListener: function () { }
};
}
@BANG88
BANG88 / cloudSettings
Last active February 28, 2017 01:58
Visual Studio Code Sync Settings GIST
{"lastUpload":"2017-02-28T01:57:31.456Z","extensionVersion":"v2.5.1"}
@BANG88
BANG88 / index.ios.js
Created February 17, 2016 01:40 — forked from Jpoliachik/index.ios.js
ReactNative LayoutAnimation Example
'use strict';
import React, {
AppRegistry,
Component,
StyleSheet,
Text,
View,
TouchableOpacity,
LayoutAnimation,
} from 'react-native';
@BANG88
BANG88 / category.js
Created January 27, 2016 07:37
category
const category = [{"id":"01","name":"粮油副食","image":null,"code":null,"status":"NORMAL","orderNum":1,"description":"12","channelType":"0","parentId":null,"label":"粮油副食","value":"01","children":[{"id":"0101","name":"粮油米面","image":null,"code":null,"status":"INVISIBLE","orderNum":1,"description":null,"channelType":"0","parentId":null,"label":"粮油米面","value":"0101","children":[{"id":"010101","name":"食用油","image":null,"code":null,"status":"NORMAL","orderNum":1,"description":null,"channelType":"0","parentId":null,"label":"食用油","value":"010101","children":[{"id":"01010101","name":"调和油","image":"793","code":"A00002","status":"NORMAL","orderNum":0,"description":null,"channelType":"0","parentId":null,"label":"调和油","value":"01010101"},{"id":"01010102","name":"玉米油","image":null,"code":null,"status":"NORMAL","orderNum":2,"description":null,"channelType":"0","parentId":null,"label":"玉米油","value":"01010102"},{"id":"01010103","name":"大豆油","image":null,"code":null,"status":"NORMAL","orderNum":3,"description":null,"channelType":"
@BANG88
BANG88 / gist:aa7bbb3e2e09dcb12cfb
Created January 27, 2016 02:14
Walmart Mobile node.js Setup

Overview

We run multiple server processes in two data centers. Each process listens on two ports, one for HTTP and one for HTTPS. HTTPS is terminated by Apache prior to reaching node.js. HTTP goes directly from the client to node.js (through a master load balancer). We do not use clusters. We slice our physical servers into thin virtual machines running SmartOS, each with about 3GB of memory designed for a single node.js process.

Our node.js servers are hapi.js servers using the composer functionality and plugins architecture. We have three sets of plugins loaded: mobile web front end experience (single page app), legacy API reverse proxy, and monitoring.

We also serve original node.js services off another server zone which runs closed source plugins using hapi.

Analytics

We couldn’t find that file to show.