start new:
tmux
start new with session name:
tmux new -s myname
# 0 is too far from ` ;) | |
set -g base-index 1 | |
# Automatically set window title | |
set-window-option -g automatic-rename on | |
set-option -g set-titles on | |
#set -g default-terminal screen-256color | |
set -g status-keys vi | |
set -g history-limit 10000 |
Install Moment via npm install --save moment
Add it and a template helper to your docpad configuration file
Use the template helper in your app
/*! | |
* gulp | |
* $ npm install gulp-ruby-sass gulp-autoprefixer gulp-cssnano gulp-jshint gulp-concat gulp-uglify gulp-imagemin gulp-notify gulp-rename gulp-livereload gulp-cache del --save-dev | |
*/ | |
// Load plugins | |
var gulp = require('gulp'), | |
sass = require('gulp-ruby-sass'), | |
autoprefixer = require('gulp-autoprefixer'), | |
cssnano = require('gulp-cssnano'), |
This tutorial uses the "Sample hapi.js REST API" project.
Take a look at: https://github.com/agendor/sample-hapi-rest-api/
##Topics
//Establish Open/Closed Variable | |
var currentStatus = "closed"; | |
//Establish Day of Week | |
var date = new Date(); | |
function getWeekDay(date) { | |
var days = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'] | |
return days[date.getDay()] | |
} | |
var day = date.getDate() |
/* | |
For this to run, ensure that `npm install hapi` has happened in your directory | |
setup whilst writing this: | |
iojs v. 1.0.5 | |
hapi 8.2.0 | |
*/ | |
var Hapi = require('hapi'); |
package main | |
import ( | |
"github.com/auth0/go-jwt-middleware" | |
"github.com/dgrijalva/jwt-go" | |
"gopkg.in/gin-gonic/gin.v1" | |
) | |
func main() { | |
startServer() |
const phonepad = [ | |
[], | |
[], | |
['a', 'b', 'c'], | |
['d', 'e', 'f'], | |
['g', 'h', 'i'], | |
['j', 'k', 'l'], | |
['m', 'n', 'o'], | |
['p', 'q', 'r', 's'], | |
['t', 'u', 'v'], |
Note: This assumes that your project already has a working eslint setup!
prettier-eslint_d is a "daemon" versions of prettier and eslint. They are faster frontends to prettier and eslint, great for editors. Add it to your project via Yarn:
# prettier-eslint_d are replacements for these packages; if you have them,