Check size of a repository.
$ du -hs .git/objects
If repository has more than 50 packfile or 7000 objets, you can run gc
.
function! s:echo_err(msg) abort | |
echohl ErrorMsg | |
echom '[code2img]' a:msg | |
echohl None | |
endfunction | |
function! s:on_err_vim(ch, msg) abort | |
call s:echo_err(a:msg) | |
endfunction |
package main | |
import ( | |
"log" | |
"os" | |
) | |
func main() { | |
if len(os.Args) < 2 { | |
return |
function! s:comment(obj, timer) abort | |
let winid = popup_create(a:obj.text, #{ | |
\ col: &columns - 40, | |
\ line: rand(srand()) % &lines, | |
\ minwidth: strlen(a:obj.text), | |
\ maxwidth: 40, | |
\ tabpage: -1, | |
\ zindex: 300, | |
\ }) |
package main | |
import ( | |
"fmt" | |
"log" | |
"golang.org/x/sys/unix" | |
) | |
func main() { |
const app = new Vue({ | |
el: '#app', | |
data: { | |
}, | |
methods: { | |
get(file_name) { | |
req = window.indexedDB.open("mycache", 1) | |
req.onsuccess = event => { | |
const db = event.target.result | |
const idx = db.transaction("mycache", "readwrite").objectStore("mycache").index("file_name") |
document.getElementById('gorilla').addEventListener("paste", e => { | |
e.clipboardData.files[0].arrayBuffer().then(b => { | |
fs.writeFile(path.join(__dirname, "gorilla.png"), new Buffer(b), err => { | |
if (err) { | |
console.log(err) | |
} else { | |
console.log("ウホウホ") | |
} | |
}) | |
}) |
あとは全部 push。git tag vX.X.X したらクロスコンパイルされたバイナリが GitHub Release にアップロードされる。 https://github.com/itchyny/mmv/blob/master/Makefile
手元では 123ci.bat というバッチコマンドを用意しています。