Skip to content

Instantly share code, notes, and snippets.

View guidouil's full-sized avatar

Guillaume Darbonne guidouil

View GitHub Profile
// Server side route to read data-form comming from mailgun
// /imports/startup/server/routes.js
import { Meteor } from 'meteor/meteor';
import { WebApp } from 'meteor/webapp';
import formidable from 'formidable';
import ical from 'ical';
import fs from 'fs';
const newSurveyFromMail = Meteor.bindEnvironment((senderMail, event) => {
Meteor.call('newSurveyFromMail', senderMail, event);
module.exports = {
servers: {
one: {
// TODO: set host address, username, and authentication method
host: '51.68.45.76',
username: '',
// pem: './path/to/pem'
password: ''
// or neither for authenticate from ssh-agent
}
@guidouil
guidouil / activities.js
Last active February 7, 2019 13:41
ActivitiesSchema
export const ActivitiesSchema = new SimpleSchema({
_id: {
type: String,
optional: true, // because insert
},
reference: {
type: String,
},
name: {
type: String,
@guidouil
guidouil / fuiColors.js
Last active November 22, 2020 09:24
Semantic UI / Fomantic UI colors list function
const colors = () => {
return [
{
name: 'black',
css: 'black',
code: '#1B1C1D',
},
{
name: 'red',
css: 'red',