This file contains 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
#!/bin/sh | |
git clone https://github.com/tokuhirom/plenv.git $HOME/.plenv | |
echo 'export PATH="$HOME/.plenv/bin:$PATH"' >> $HOME/.bashrc | |
echo 'eval "$(plenv init -)"' >> $HOME/.bashrc | |
PATH=$HOME/.plenv/bin:$PATH | |
eval "$(plenv init -)" | |
git clone https://github.com/tokuhirom/Perl-Build.git $HOME/.plenv/plugins/perl-build/ |
This file contains 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
#!/bin/sh | |
https://downloads.typesafe.com/typesafe-activator/1.3.10/typesafe-activator-1.3.10.zip | |
unzip typesafe-activator-1.3.10.zip | |
mv typesafe-activator-1.3.10 $HOME/.activator | |
echo 'export "PATH=$PATH:$HOME/.activator/bin"' >> $HOME/.bashrc |
This file contains 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
language: node_js | |
node_js: | |
- "5" | |
- "5.1" | |
- "4" | |
- "4.2" | |
- "4.1" | |
- "4.0" | |
- "0.12" | |
- "0.11" |
This file contains 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
$ npm install vue vue-router --save |
This file contains 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
$ npm i sequelize --save |
This file contains 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
$(npm bin)/sequelize model:create \ | |
--name Article \ | |
--attributes 'user_id:number, published:bool, tag_id:number, year:number, month:number, day:number, slug:string, title:string, body_markdown:text, body_html:text' |
This file contains 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
'use strict'; | |
module.exports = function(dirname) { | |
var modules = {}; | |
require('fs').readdirSync(dirname + '/').forEach(file => { | |
if (file.match(/\.js$/) !== null && file !== 'index.js') { | |
var name = file | |
.replace('.js', '') | |
.split('-') |
This file contains 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
'use strict'; | |
var http = require('http'); | |
module.exports = class ApiClient { | |
constructor(host, port) { | |
this.host = host; | |
this.port = port; | |
} | |
setHost(host) { |
This file contains 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
if (!/^http[s]?\:\/\//.test(url)) { | |
url = 'http://' + url; | |
} |
This file contains 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
'use strict'; | |
var Middleware = require('./middleware'); | |
var path = require('path'); | |
var fs = require('fs'); | |
var _ = require('lodash'); | |
var nodemailer = require('nodemailer'); | |
var smtpPool = require('nodemailer-smtp-pool'); | |
var EmailTemplate = require('email-templates').EmailTemplate; | |
/** |
OlderNewer