This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# ppa | |
# node.js | |
add-apt-repository -y ppa:chris-lea/node.js | |
# mongodb | |
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 | |
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/10gen.list | |
# redis | |
add-apt-repository -y ppa:chris-lea/redis-server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ALLOWED_COLLECTIONS = [ | |
'auths' # Private user data | |
] | |
store.allow 'create', 'auths', (docId, newDoc, session) -> | |
console.log '[Auths] CREATE' | |
undefined | |
store.allow 'all', 'auths.*', (docId, relPath, opData, docBeingUpdated, session) -> | |
console.log '[Auths] CHANGE' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
derby = require 'derby' | |
auth = require '../../app/auth' | |
creation = require '../../app/crud/creation' | |
schemas = require '../../app/schemas' | |
settings = require '../../app/settings' | |
validation = require './validation' | |
util = require '../../app/util' | |
module.exports = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var racerAccess = require('racer-access'); | |
derby.use(racerAccess); | |
var store = derby.createStore(); | |
// This is current racer-access api | |
store.allow('change', 'users', function(docName, changeTo, snapshotData, connectSession) { | |
return; | |
}); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = (grunt) -> | |
grunt.initConfig | |
coffee: | |
src: | |
options: | |
bare: true | |
sourceMap: true | |
expand: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = | |
companies: | |
access: { view: 'employee', add: 'no', edit: 'admin', del: 'no', copy: 'no', inline: 'no' } | |
columns: | |
name: {name: 'Name'} | |
currencyId: {name: 'Base Currency', type: 'select', collection: 'currencies'} | |
materialCurrencyId: {name: 'Vendor Currency', type: 'select', collection: 'currencies'} | |
shippingAddress: {name: 'Shipping Address', type: 'textarea'} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
coffeeify = require 'coffeeify' | |
express = require 'express' | |
session = require 'express-session' | |
serveStatic = require 'serve-static' | |
compression = require 'compression' | |
bodyParser = require 'body-parser' | |
cookieParser = require 'cookie-parser' | |
RedisStore = require('connect-redis')(session) | |
derby = require 'derby' | |
racerHighWay = require 'racer-highway' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var chars = 'abcdefghijklmopquwxyz'; | |
//var c = ['block_sss', 'elem__asdf', 'footer__container', 'title', 'title__child','title__child','title__child','title__child']; | |
var prefix1 = ''; | |
var prefix2 = ''; | |
var prefix1Index = 0; | |
var prefix2Index = 0; | |
var currentIndex = 0; | |
var parts = []; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var chars = 'abcdefghijklmopquwxyz'; | |
//var c = ['block_sss', 'elem__asdf', 'footer__container', 'title', 'title__child','title__child','title__child','title__child']; | |
var parts = []; | |
function minify(classNames) { | |
var names = []; | |
for (var i = 0; i < classNames.length; i++) { | |
var className = classNames[i]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scala> hc.sql("select * from price_equities_technicals where marketdate = 1443052800000 and sid = 21438 limit 1").show() | |
15/09/25 20:21:59 INFO parse.ParseDriver: Parsing command: select * from price_equities_technicals where marketdate = 1443052800000 and sid = 21438 limit 1 | |
15/09/25 20:21:59 INFO parse.ParseDriver: Parse Completed | |
15/09/25 20:21:59 INFO metastore.HiveMetaStore: 0: get_table : db=default tbl=price_equities_technicals | |
15/09/25 20:21:59 INFO HiveMetaStore.audit: ugi=hadoop ip=unknown-ip-addr cmd=get_table : db=default tbl=price_equities_technicals | |
15/09/25 20:21:59 INFO storage.BlockManager: Removing broadcast 10 | |
15/09/25 20:21:59 INFO storage.BlockManager: Removing block broadcast_10 | |
15/09/25 20:21:59 INFO storage.MemoryStore: Block broadcast_10 of size 65056 dropped from memory (free 2221338296) | |
15/09/25 20:21:59 INFO storage.BlockManager: Removing block broadcast_10_piece0 | |
15/09/25 20:21:59 INFO storage.MemoryStore: Block broadcast_10_piece0 of size 18019 dropped from memory (free 222135631 |
OlderNewer