Run server.py from: https://github.com/dliv/node-canvas
You will need to create a localhost.pem in the root directory.
openssl req -new -x509 -keyout localhost.pem -out localhost.pem -days 365 -nodes
Run server.py from: https://github.com/dliv/node-canvas
You will need to create a localhost.pem in the root directory.
openssl req -new -x509 -keyout localhost.pem -out localhost.pem -days 365 -nodes
| alias gx="git clean -fd && git reset --hard" |
| // from: http://ouicar.github.io/2016/08/08/exhaustive-switch.html | |
| // modified to use Flow comments | |
| /* :: | |
| type Empty = 'empty type' & 'nothing there'; | |
| type t = 'a' | 'b'; | |
| */ | |
| function unexpectedCase(impossible /* : Empty */) /* : void */ { | |
| reportError(`Unexpected case ${impossible}`); |
| const express = require('express'); | |
| const _ = require('lodash'); | |
| const bodyParser = require('body-parser'); | |
| const i18nApp = express.Router(); | |
| // parse application/x-www-form-urlencoded | |
| // for easier testing with Postman or plain HTML forms |
| const bcrypt = require('bcrypt'); | |
| const knex = require('knex')(require('../../../knexfile')); | |
| const bookshelf = require('bookshelf')(knex); | |
| const User = bookshelf.Model.extend({ | |
| tableName: 'users', | |
| hasTimestamps: true, |
| // Example usage: | |
| // node watch-and-touch 'src/**/*.post.css' src/styles-index.post.css | |
| // | |
| // Example will `touch` src/styles-index.post.css if any other css file | |
| // under src changes. Potential usecase: webpack hot module reloading is | |
| // working for your primary postcss file, but does not work for other | |
| // postcss files imported from the main file. | |
| // | |
| // See: https://github.com/postcss/postcss-loader/issues/122 | |
| // See: https://github.com/postcss/postcss-import/issues/233 |
http:///cgi-bin/;killall$IFS'httpd'| def yanslate(text): | |
| return " ".join(["y"+word[1:] for word in text.split()]) |
| # touch ~/.gitignore_global | |
| # git config --global core.excludesfile ~/.gitignore_global | |
| .idea | |
| .DS_Store | |
| npm-debug.log |