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
{ | |
"editor.accessibilitySupport": "off", | |
"latex-workshop.view.pdf.viewer": "tab", | |
"editor.wordWrap": "on", | |
"workbench.colorTheme": "Monokai", | |
"editor.fontSize": 14, | |
"files.exclude": { | |
"**/*.aux": true, | |
"**/*.log": true | |
}, |
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
function getBase64() { | |
return new Promise(function(resolve, reject) { | |
axios | |
.get(url, { | |
responseType: 'arraybuffer' | |
}) | |
.then(response => | |
resolve(new Buffer(response.data, 'binary').toString('base64')) | |
); | |
}); |
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
function isCorrectSchema(req, res, next) { | |
const ajv = new require('ajv')(); | |
const valid = ajv.validate(schema, req.body); | |
if (!valid) { | |
res.status(400).send('Bad Request: ${ajv.errors}'); | |
} | |
return next(); | |
} |
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
const schema = { | |
properties: { | |
smaller: { | |
type: 'number', | |
}, | |
larger: { | |
type: 'number', | |
}, | |
}, | |
}; |
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
const mongoose = require('mongoose'); | |
const UserSchema = new mongoose.Schema({ | |
userid: { | |
type: String, | |
required: true, | |
}, | |
password: { | |
type: String, | |
requird: true, | |
}, |
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
FROM mhart/alpine-node:7.7.4 | |
ENV HOME=/home/i | |
ENV APP=starter-app | |
RUN adduser -D -s /bin/false i | |
COPY package.json $HOME/$APP/ | |
RUN chown -R i:i $HOME/* |
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
# | |
# _ | |
# ___ _ _ _ __| | | |
# / __| | | | '__| | | |
# | (__| |_| | | | | | |
# \___|\__,_|_| |_| | |
# | |
# Enable redirect | |
-L |
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
[{ | |
"link": "http://www.tv-tokyo.co.jp/pirameki/gallery/maya/216.html", | |
"title": "その108♥まあやお姉さんの衣装が大好きな君(横からver.)07.03" | |
}, { | |
"link": "http://www.tv-tokyo.co.jp/pirameki/gallery/maya/215.html", | |
"title": "その108♥まあやお姉さんの衣装が大好きな君(前からver.)07.03" | |
}, { | |
"link": "http://www.tv-tokyo.co.jp/pirameki/gallery/maya/214.html", | |
"title": "その107♥【お便り】変身ポーズ&決めゼリフ!(横からver.)06.27" | |
}, { |
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
rules: | |
# headerの階層チェック | |
incremental-headers: true | |
# 冗長な表現を禁止 | |
ja-no-redundant-expression: true | |
# リンクが有効か確認 | |
no-dead-link: true | |
# JTF日本語標準スタイルガイド | |
preset-jtf-style: true | |
# tech word checking for web engineer |
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
#!/usr/bin/env sh | |
# To update node and npm with nodebrew. | |
# Run this file with `sudo`. | |
# Be sure to installed npm | |
echo "Type latest node version : " | |
read NODE_VAR | |
echo Installing node $NODE_VAR |
NewerOlder