This file contains hidden or 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
# Apache | |
# ------ | |
# Install | |
apt-get install -y apache2 | |
# Remove /var/www default | |
rm -rf /var/www | |
# Symlink /vagrant to /var/www |
This file contains hidden or 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 BatchStream = require('batch-stream2') | |
var gulp = require('gulp') | |
var coffee = require('gulp-coffee') | |
var uglify = require('gulp-uglify') | |
var cssmin = require('gulp-minify-css') | |
var bower = require('gulp-bower-files') | |
var stylus = require('gulp-stylus') | |
var livereload = require('gulp-livereload') | |
var include = require('gulp-include') | |
var concat = require('gulp-concat') |
This file contains hidden or 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
const taskMachine = Machine({ | |
id: 'task', | |
initial: 'pending', | |
states: { | |
pending: {}, | |
inProgress: {}, | |
onHold: {}, | |
submitted: {}, | |
cancelled: {}, | |
} |
This file contains hidden or 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
const addExceptance = group => ({ | |
initial: 'pending', | |
states: { | |
pending: { | |
on: { | |
[`${group}.accept`]: 'accepted', | |
reject: '#submission' | |
} | |
}, |
This file contains hidden or 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
const passwordRegex = /^[^\s]{1,}$/; | |
const usernameRegex = /^[a-zA-Z0-9]{6,}$/; | |
const validateUsername = (_, { | |
username = "" | |
}) => { | |
return usernameRegex.test(username) | |
} | |
const validatePassword = (_, { |
This file contains hidden or 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
const passwordRegex = /^[^\s]{1,}$/; | |
const usernameRegex = /^[a-zA-Z0-9]{6,}$/; | |
const validateUsername = (_, { | |
username = "" | |
}) => { | |
return usernameRegex.test(username) | |
} | |
const validatePassword = (_, { |