use git diff to generate file list
git diff --name-only master
add ext filter
use git diff to generate file list
git diff --name-only master
add ext filter
下面方法在 Debian 8 已通过 Mysterium 服务器端部署,Ubuntu 14.04+ 应该也没问题。 | |
OpenVPN 安装参考官方文档,建议安装新版 2.4.2 (多谢 @Shacl0w 提醒) | |
https://community.openvpn.net/openvpn/wiki/OpenvpnSoftwareRepos#InstallingOpenVPN | |
安装 Mysterium Node | |
$ wget https://github.com/MysteriumNetwork/node/releases/download/0.0.6/mysterium-node_linux_amd64.deb |
class EventEmitter | |
/// Shared Instance. | |
public static var sharedInstance = EventEmitter() | |
// ReactNativeEventEmitter is instantiated by React Native with the bridge. | |
private static var eventEmitter: ReactNativeEventEmitter! | |
private init() {} |
#!/bin/bash | |
projectFile=$(find $1 -name "*.sublime-project" -maxdepth 1) | |
echo $projectFile | |
if [ $projectFile ] | |
then | |
subl $projectFile | |
else | |
subl $1 | |
fi |
declare module "bignumber.js" { | |
class BigNumber { | |
constructor(value: number|string); // Acccepts a number OR a string | |
toNumber(): number; | |
// Those static attributes could have been in the module, a few lines beneath | |
static ROUND_DOWN: any; | |
static config(arg: any): void; | |
} |
{ | |
"keys": ["tab"], | |
"command": "expand_abbreviation_by_tab", | |
// put comma-separated syntax selectors for which | |
// you want to expandEmmet abbreviations into "operand" key | |
// instead of SCOPE_SELECTOR. | |
// Examples: source.js, text.html - source | |
"context": [ | |
{ |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft
, elem.offsetTop
, elem.offsetWidth
, elem.offsetHeight
, elem.offsetParent
var PubSub = { | |
// 订阅函数 | |
subscribe: function (event, callback) { | |
// 创建事件存储对象 | |
this._events = this._events || {} | |
// 添加回调函数 | |
this._events[event] = this._events[event] || [] | |
this._events[event].push(callback) | |
// 链式调用 | |
return this |
This is no longer needed as Emmet supports JSX - you just need to turn it all on. Did a quick tutorial: http://wesbos.com/emmet-react-jsx-sublime/
Thanks, @wesbos