- ubuntu 16.04
- php 7.1
- apache 2.4
- mysql 5.7
- git & composer
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
app.post('/img',function(req, res){ | |
var decodedImage = new Buffer(req.body.base64Image, 'base64'); | |
fs.writeFile('image_decoded.jpg', decodedImage, function(err) { | |
if(err) throw err; | |
res.send('success'); | |
}); | |
} |
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
var readline = require('readline'); | |
var rl = readline.createInterface({ | |
input: process.stdin, | |
output: process.stdout | |
}); | |
var readlineClass = function () { | |
this.monkKeyboard = function (robot,importString) { | |
rl.on('pause', function () { |
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
# 實戰 TDD:實作訂單狀態 | |
## 前言 | |
經常苦惱於spec如何轉換成code? | |
對於程式是否真的完成心裡沒有底? | |
經常發生別人把你的code改壞在那邊爭吵? | |
疲於應付spec的快速修改? | |
今天我們將藉由TDD以及laravel演示如何快速開發一個簡單的訂單狀態流程,讓你可以在一定程度上應付這些問題。 |
git branch -r --merged | egrep -v "(^*|master|dev|qa|release)" | sed 's/origin//:/' | xargs -n 1 git push origin
OlderNewer