View install_plenv.sh
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/ |
View install_activator.sh
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 |
View .travis.yml
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" |
View file0.txt
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 |
View file0.txt
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 |
View article-model-create.sh
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' |
View load-dir-as-PascalCase.js
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('-') |
View api-client.js
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) { |
View http-schema-completion.js
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; | |
} |
View mailer-middleware.js
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