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
import PropTypes from 'prop-types' | |
import React, { Component } from 'react' | |
import { Card, CardActions, CardHeader, CardText } from 'material-ui/Card' | |
import Subheader from 'material-ui/Subheader' | |
import {List, ListItem} from 'material-ui/List' | |
import Business from 'material-ui/svg-icons/communication/business' | |
import RaisedButton from 'material-ui/RaisedButton' | |
import SelectField from 'material-ui/SelectField' | |
import MenuItem from 'material-ui/MenuItem' | |
import CircularProgress from 'material-ui/CircularProgress' |
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
# -*- text -*- | |
# | |
# dictionary.cisco | |
# | |
# Accounting VSAs originally by | |
# "Marcelo M. Sosa Lugones" <marcelo@sosa.com.ar> | |
# | |
# Version: $Id$ | |
# | |
# For documentation on Cisco RADIUS attributes, see: |
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
sql.connect(config.sqlConfig).then(pool => { | |
this.pool = pool; | |
pool.request().query `select * from dbo.Groups` | |
}) | |
.then(iSuccesfullyGetGroups.bind(this), errorConnect) | |
.then(startParsing.bind(this)) | |
function iSuccesfullyGetGroups(result){ | |
const groups = result.recordset; |
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
sql.connect(config.sqlConfig).then(pool => { | |
this.pool = pool; | |
pool.request().query `select * from dbo.Groups` | |
}) | |
.then(iSuccesfullyGetGroups.bind(this), errorConnect) | |
.then(startParsing.bind(this)) | |
function iSuccesfullyGetGroups(result){ | |
const groups = result.recordset; | |
if (groups.length > 0) { |
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
SendPush = function (userId, push){ | |
var regIds = Meteor.users.findOne({_id:userId},{fields:{registrationIds : 1 }}).registrationIds; | |
if (! regIds || regIds.length == 0) | |
return; | |
//regIds.push('e7LuNgUyKYA:APA91bHOlBBoRJIte4bwSuatJotnTHOfWCDiyv8ERRyv3FN4PK-La0fT-ZV9BTbFnTM75EHRo0WNb7R5pqQrIMRP84JrifToiwIYNaqmSAbJxaf6MmOHt2mIm0bWyESOIC_-o_1wxkN3'); | |
//regIds.push('ey7r3_8vdMA:APA91bGutVhXFaV6Ra3V24j3h2tVX1I3fGdwZ0WizQ-HycUvwiKmX03k1KMYR7noC4tiZ1Nxg2RNqKz1oLnWrCyhTbB5oiis4lsm_xBHy1cUtmWPDpY5uW8th10sk-0bqPNCaU1BRAxf'); |
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
'add-to-members': function(postId,userId, postTitle, roomId) | |
{ | |
var curId = curId; | |
var coll = Posts.find({_id: postId,"requests.userId": curId}, {fields: {'requests': 1,'roomId':1}}).fetch(); | |
var members = Posts.find({_id: postId}, {fields: {'members': 1}}).fetch()[0].members; | |
var requesters = coll[0].requests; | |
var newRequesters = _.without(requesters, _.findWhere(requesters, {userId: curId})); | |
var curUsr = _.findWhere(requesters, {userId: curId}); | |
members.push(curUsr); | |
Posts.update({_id: postId},{$set:{requests:newRequesters,members:members}}); |
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
'getPostsSearch': function (gameId, minAge, maxAge, micro, count, title, additional, platformId, countryId) { | |
var filter = {}; | |
if(gameId) | |
filter['game.id'] = gameId; | |
if(minAge || maxAge) { | |
if (minAge != '' && maxAge != '') { | |
filter['$or'] = [{minAge: {$gte: minAge * 1, $lte: maxAge * 1}}, { | |
maxAge: { |
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
echo '[Unit] | |
Description=High-performance, schema-free document-oriented database | |
After=syslog.target network.target | |
[Service] | |
User=mongodb | |
Group=mongodb | |
ExecStart=/usr/bin/mongod -f /etc/mongod.conf | |
[Install] |
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
Template.messages.helpers({ | |
'messages': function(){ | |
return roomComments.find(); | |
}, | |
'members': function(){ | |
var members = Posts.find({roomId:Session.get('selectedChat')},{fields:{members:1}}).fetch()[0].members; | |
return members; | |
} | |
}); |