-
Delete all containers
$ docker ps -q -a | xargs docker rm
-q prints only the container IDs -a prints all containers
Notice that it uses xargs to issue a remove container command for each container ID
- Delete all untagged images
{ | |
// http://eslint.org/docs/rules/ | |
"ecmaFeatures": { | |
"binaryLiterals": false, // enable binary literals | |
"blockBindings": false, // enable let and const (aka block bindings) | |
"defaultParams": false, // enable default function parameters | |
"forOf": false, // enable for-of loops | |
"generators": false, // enable generators | |
"objectLiteralComputedProperties": false, // enable computed object literal property names |
'use strict'; | |
class DepClass { | |
constructor (arg) { | |
console.log(arg); | |
} | |
say (word) { | |
console.log(word); | |
} |
<?php | |
abstract class Database | |
{ | |
public function __construct() | |
{ | |
$this->connect(); | |
} | |
abstract public function connect(); |
Delete all containers
$ docker ps -q -a | xargs docker rm
-q prints only the container IDs -a prints all containers
Notice that it uses xargs to issue a remove container command for each container ID
@版本 2.0.0
譯注:此翻譯版,主要給不能流利的讀英文的人看,相關專有名詞還是保留原文。翻譯不好地方請協助pull request.
此repository包含了一些前端開發的面試問題,來審查一個有潛力的面試者。這並不是建議你對同一個面試者問上所有的問 (那會花費好幾小時)。從列表中挑幾個題目,應該就夠幫助你審查面試者是否擁有你需要的技能。
Rebecca Murphey 的 Baseline For Front-End Developers 也是一篇很棒且值得讀的文章在你開始面試之前。
<?php | |
use Illuminate\Foundation\Testing\DatabaseMigrations; | |
use Illuminate\Foundation\Testing\DatabaseTransactions; | |
use Illuminate\Support\Facades\Auth; | |
class ExampleTest extends TestCase | |
{ | |
/** | |
* DatabaseTransactions :在測試其間對資料庫的所有操作會在測試完成後被滾回 |
#!/bin/bash | |
CUR_PATH=`pwd` | |
CI_PATH=${CUR_PATH}/PHPCI | |
LOG_PATH=${CUR_PATH}/.log | |
mkdir -p $LOG_PATH | |
if ps -ef | grep -v grep | grep "phpci:run-builds"; then | |
exit 0 | |
else |