Skip to content

Instantly share code, notes, and snippets.

View leapar's full-sized avatar

leapar leapar

  • 江西-南昌
View GitHub Profile
//ScrollableTabView套ScrollableTabView有个bug,内部ScrollableTabView第一次要搞个定时器0.2s刷一次
//https://github.com/brentvatne/react-native-scrollable-tab-view
<ScrollableTabView
tabBarBackgroundColor="#00a2ed"
tabBarUnderlineColor="#ffffff"
tabBarActiveTextColor="#00ff00"
tabBarInactiveTextColor="#ffffff"
>
<PullToRefreshViewAndroidExample tabLabel='待确认' >
private Map<String, Object> testMutation() {
String mutation_query = "mutation M {\r\n"
+ "first: changeGoodsName(id:\"K201511030000008\",name: \"name1\") {\r\n"
+ "name\r\n"
+ "updateTime\r\n"
+ "}\r\n"
+ "}";
xcopy E:\pa\PA_Code\trunk\pasys E:\pa\PA_Code\trunk\pasys2 /s /y /i
rd /s /q e:\pa\PA_Code\trunk\PASYS2
function execInBackground ( $cmd ) {
if ( substr ( php_uname (), 0 , 7 ) == "Windows" ){
pclose ( popen ( "start /B " . $cmd , "r" ));
}
else {
exec ( $cmd . " > /dev/null &" );
}
}
var app = require('express')();
var fs = require('fs');
//console.log(app);
var http = require('http')
var https = require('https');
var io = require('socket.io');
var bodyParser = require("body-parser");
var opts = {
ie 11 (6连接限制 )new WebSocket securityerror
//http://socket.io/docs/client-api/
socket = io(serverAddress,{
/* 'force new connection': true,*/
reconnection : true,
reconnectionDelay : 2000,
reconnectionAttempts : 9
});
git clone https://github.com/arut/nginx-rtmp-module.git
wget
tar
gawk
bzip2
lynx -source rawgit.com/transcode-open/apt-cyg/master/apt-cyg > apt-cyg
install apt-cyg /bin
Map<String, String> headers = new HashMap<String, String>();
headers.put("headers", "User-Agent: okhttp/2.5.0");
setVideoURI(Uri.parse(path),headers);
code-push也屏蔽,我就操了。
如果你还没有登录,那么code-push login --proxy proxyUrl登录自动回保存代理。
如果您已经登录,那么修改下面的文件
C:\Users\#####\AppData\Local\.code-push.config
{"accessKey":"DDDDDDrrrrrrrrr-RRRRRRRRRRRRRrrrrrrrr","preserveAccessKeyOnLogout":false,"proxy":"http://127.0.0.1:8787"}
开启蓝灯
@leapar
leapar / gist:2832bb6b4ac78e4923458199612c592a
Last active September 30, 2016 08:38
macosx kong postgres

#MAC OSX INSTALL KONG 微服务、GO一定能火、NODEJS 大势所趋,日积月累莫后悔

#安装postgres

brew install postgres
initdb /usr/local/var/postgres
/usr/local/Cellar/postgresql/<version>/bin/createuser -s postgres

##修改配置