只要在 Terminal 中輸入以下指令,就安裝完成了
curl -L https://raw.github.com/emin/WebPQuickLook/master/install.sh | sh
成果:
參考:
precedence ::ffff:0:0/96 100
<b-table bordered striped hover
:items="environments"
:fields="fields"
:current-page="currentPage"
:per-page="perPage"
:filter="filter"
v-model="shownItems"
@row-clicked="myRowClickHandler"
>
<template slot="actions" scope="environment">
<b-btn size="sm" @click="log(environment.item)">Details</b-btn>
</template>
</b-table>
methods: {
myRowClickHandler(record, index) {
// 'record' will be the row data from items
// `index` will be the visible row number (available in the v-model 'shownItems')
log(record); // This will be the item data for the row
}
}
https://github.com/bootstrap-vue/bootstrap-vue/issues/774
https://bootstrap-vue.js.org/docs/components/table#component-reference
[ {'name':'James', 'books':["Python", "Java", "Golang", "C++"]}, {'name':'Amy', 'books':["Node.js", "C"]}, {'name':'Danny', 'books':["Perl", "JavaScript"]} ]這時候可以先用 for 迴圈將所有 books 元素拉出來再計算 books 元素的長度,最後加總起來就可以了
sum = 0 for x in list: sum += len(x['books']) print(sum)我喜歡用一行寫法,簡潔快速
print(sum([len(x['books']) for x in list]))
docker-compose up -d --no-deps --build svc1
參考文章:https://stackoverflow.com/questions/27500861/whats-the-proper-way-to-go-get-a-private-repository 原文是用 gitlab.company.com 當範例,這邊改成一般帳號...