Skip to content

Instantly share code, notes, and snippets.

View guidouil's full-sized avatar
🍌
Floating

Guillaume Darbonne guidouil

🍌
Floating
View GitHub Profile
@guidouil
guidouil / gist:9ccbf598fb0eef8c6d3e
Created April 15, 2015 11:31
Cover page (intro) schema
Schemas.CoverPages = new SimpleSchema({
title: {
type: String,
label: 'Presentation title'
},
date: {
type: Date,
optional: true,
label: "Date"
},
server {
listen 80;
server_name jecmd.fr je-cmd.fr *.jecmd.fr *.je-cmd.fr qoderesto.com *.qoderesto.com qrr.fr *.qrr.fr jcmd.fr *.jcmd.fr;
rewrite ^ https://jecmd.fr$request_uri? permanent;
}
server {
listen 443;
server_name jecmd.fr *.jecmd.fr;
{
"links": {
"_self": "http://service.mhps.interakting.org/ws/slide/franck_1210_quality_home_fr_a0d7e7e600/1",
"_self_picture_web": "http://service.mhps.interakting.org/ws/slide/picture/franck_1210_quality_home_fr_a0d7e7e600/1/web",
"_self_picture_ipad": "http://service.mhps.interakting.org/ws/slide/picture/franck_1210_quality_home_fr_a0d7e7e600/1/ipad"
},
"slide_ref_id": "franck_1210_quality_home_d13fe7fdb4",
"slide_id": "franck_1210_quality_home_fr_a0d7e7e600",
"tailor_made": false,
"order": 0,
server {
listen 80;
server_name jecmd.fr je-cmd.fr *.jecmd.fr *.je-cmd.fr qoderesto.com *.qoderesto.com qrr.fr *.qrr.fr jcmd.fr *.jcmd.fr;
rewrite ^ https://jecmd.fr$request_uri? permanent;
}
server {
listen 443;
server_name jecmd.fr *.jecmd.fr;
{
"links": {},
"module": {
"id": "5617ca151e98db5a838b4637",
"links": {},
"name": "introduction",
"available_template_types": [
{
"links": {},
"name": "ff1"
@guidouil
guidouil / Meteor Template generator blaze
Last active February 22, 2017 11:27
Meteor Template Generator
[{[templateName]}]
---------------------------------------------------------
[{[templateName]}]_style.css
---------------------------------------------------------
[{[templateName]}]_template.html
<template name='[{[templateName]}]'>
</template>
---------------------------------------------------------
[{[templateName]}]_script.js

Deploy a Meteor app on a dedicated linux server

Requirement

You need, Meteor, MongoDB and Node.js installed on the machine.

And it also requires the forever npm package to be globaly installed.

Deploy script to copy/past in shell ⚠️ NOT AS ROOT

Be sure to replace the CAPITALIZED words with you own and to adapt the meteor npm install ... to your dependencies from your package.json file

'use strict';
import React, {Component} from 'react';
import { AppRegistry, StyleSheet, Text, View, Button } from 'react-native'
import {
PageContainer,
Schedule,
Result,
Sports,
News,
import Tabular from 'meteor/aldeed:tabular';
import { Template } from 'meteor/templating';
import moment from 'moment';
import { Meteor } from 'meteor/meteor';
import Employees from '/imports/api/employees/employees.js';
TabularTables.customerEmployees = new Tabular.Table({
name: 'customerEmployees',
collection: 'Meteor.users',
pub: 'customerEmployees',
return Surveys.aggregate(
{ $match: query },
{ $group: {
_id: dateGroup,
participants: { $sum: '$ratersCount' },
rating: { $avg: '$averageRating' },
surveys: { $push: '$_id' },
selectedTags: { $push: '$tags' },
peoples: { $addToSet: '$fullname' },
} },