start new:
tmux
start new with session name:
tmux new -s myname
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating | |
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel | |
// MIT license | |
(function() { | |
var lastTime = 0; | |
var vendors = ['ms', 'moz', 'webkit', 'o']; |
We create an index with:
synonyms_expand
and synonyms_contract
synonyms_expand
and synonyms_contract
text_1
uses the synonyms_expand
analyzer at index and search timetext_2
uses the synonyms_expand
analyzer at index time, but the standard
analyzer at search timetext_3
uses the synonyms_contract
analyzer at index and search time.
// Which HTML element is the target of the event | |
function mouseTarget(e) { | |
var targ; | |
if (!e) var e = window.event; | |
if (e.target) targ = e.target; | |
else if (e.srcElement) targ = e.srcElement; | |
if (targ.nodeType == 3) // defeat Safari bug | |
targ = targ.parentNode; | |
return targ; | |
} |
var webpack = require('webpack'); | |
var commonsPlugin = new webpack.optimize.CommonsChunkPlugin('common.js'); | |
module.exports = { | |
entry: { | |
login : "./webserver/frontend/index.html" | |
}, | |
module: { | |
loaders: [ |
'use strict'; | |
var elasticsearch = require('elasticsearch'); | |
var Promise = require('bluebird'); | |
var log = console.log.bind(console); | |
var client = new elasticsearch.Client({ | |
host: 'localhost:9200', | |
log: 'trace' |
$HOME/Downloads/instantclient_12_1
install.sh
and copy the following code and past it on that file.{ | |
"presets": [ | |
["es2015", { | |
"es2015": { | |
"loose": true, | |
"modules": false | |
} | |
}], "react" | |
] | |
} |
import chai from 'chai'; | |
import sinonChai from 'sinon-chai'; | |
import chaiAsPromised from 'chai-as-promised'; | |
import chaiEnzyme from 'chai-enzyme'; | |
chai.use(sinonChai); | |
chai.use(chaiAsPromised); | |
chai.use(chaiEnzyme()); | |
// Make sure chai and jasmine ".not" play nice together |
$HOME/Downloads/instantclient_12_1
install.sh
inside this instantclient_12_1
folder and copy the following code and past it on that file.