Look at LSB init scripts for more information.
Copy to /etc/init.d:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)| import React from 'react'; | |
| import { DateRangePicker } from 'react-dates'; | |
| import momentPropTypes from 'react-moment-proptypes'; | |
| class DateRangePickerWrapper extends React.Component { | |
| constructor(props) { | |
| super(props); | |
| this.state = { | |
| focusedInput: null, | |
| startDate: props.startDate || null, |
| import _ from 'lodash'; | |
| import { Meteor } from 'meteor/meteor'; | |
| import { Session } from 'meteor/session'; | |
| import { Bert } from 'meteor/themeteorchef:bert'; | |
| import React from 'react'; | |
| import { BaseField } from 'uniforms'; | |
| import UIMapPoly from 'react-map-polygon-selector'; |
| #!/bin/bash | |
| # If you are developing on OSX on Windows | |
| # but you want to run on linux - or in docker - or on AWS Lambda | |
| # PhantomJS must be the binary for that OS... | |
| # https://github.com/sindresorhus/pageres/issues/275 | |
| # | |
| # Easiest solution, download inside a docker, running on linux | |
| # | |
| # This script should be run from within the docker container | |
| # |
| FROM node:4.4.7-slim | |
| MAINTAINER Alan Blount <[email protected]> | |
| RUN npm install -g npm@3 pm2 \ | |
| && npm cache clear | |
| # TODO: remove when https://github.com/npm/npm/issues/9863 is fixed | |
| RUN cd $(npm root -g)/npm \ | |
| && npm install fs-extra \ | |
| && sed -i -e s/graceful-fs/fs-extra/ -e s/fs\.rename/fs.move/ ./lib/utils/rename.js |
| import { Meteor } from 'meteor/meteor'; | |
| import { Email } from 'meteor/email'; | |
| import { createContainer } from 'meteor/react-meteor-data'; | |
| import { Texts } from '../../../api/Texts/collection'; | |
| import { Users } from '../../../api/Users/collection'; | |
| import { schemaInviteRequest, sendInviteRequest } from '../../../api/Invites/methods'; | |
| import { Bert } from 'meteor/themeteorchef:bert'; |
| /** | |
| * TEMP WIP Form helper utilities | |
| * | |
| */ | |
| import _ from 'lodash'; | |
| export function getOptions(options) { | |
| return _.extend( | |
| { |
Look at LSB init scripts for more information.
Copy to /etc/init.d:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)| // Subscriptions automatic helpers | |
| autoSub = { readys: {}, managers: {} }; | |
| autoSubscribe = function(T, subKey, paramKey) { | |
| T.onCreated(function() { | |
| var self = this; | |
| if (!_.has(autoSub.managers, subKey)) { | |
| autoSub.managers[subKey] = new SubsManager(); | |
| } | |
| if (!_.has(autoSub.readys, subKey)) { | |
| autoSub.readys[subKey] = new ReactiveVar(); |
| <?php | |
| /** | |
| * pluck out a value from a nested array, based on a $path | |
| * where $path is a single-dim list of keys. | |
| * | |
| * @param array $form (multi-dim) | |
| * @param array $path (single dim) | |
| * @reutrn mixed $value from $form, in $path |
| # ----------------------------¬ | |
| # Proxy config/example | |
| # (optional config used inside server/location blocks)¬ | |
| # context - server, location¬ | |
| # link: http://wiki.nginx.org/HttpProxyModule#proxy_cache¬ | |
| # link: http://nginx.org/en/docs/http/ngx_http_proxy_module.html¬ | |
| # link: http://nginx.org/en/docs/http/ngx_http_upstream_module.html | |
| # link: http://www.packtpub.com/article/using-nginx-reverse-proxy¬ | |
| # ----------------------------¬ |