Treat git log as a book, exec git next
or git prev
to checkout the next or the previous commit.
Please check hutusi/git-paging for updates.
# Cluster management tools. | |
# See https://github.com/grampelberg/k8s-clusters for updates and documentation. | |
export CLUSTER_NAME ?= $(shell cat tmp/current 2>/dev/null || echo $$(whoami)-dev) | |
export MACHINE_TYPE ?= n1-standard-2 | |
export DISK_SIZE ?= 100 | |
export MAX_NODES ?= 10 | |
export NETWORK ?= dev | |
export PROJECT ?= foobar | |
export VERSION ?= latest |
Treat git log as a book, exec git next
or git prev
to checkout the next or the previous commit.
Please check hutusi/git-paging for updates.
// Save the file to ~/.vim/coc-extensions | |
// Usage: xmap <silent> <TAB> <Plug>(coc-repl-sendtext) | |
const {commands, workspace} = require('coc.nvim') | |
exports.activate = context => { | |
let {nvim} = workspace | |
let terminal | |
context.subscriptions.push(commands.registerCommand('repl.openTerminal', async () => { | |
let filetype = await nvim.eval('&filetype') | |
let prog = '' |
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
FOREWORDS
I don't mean the snippet at the bottom of this gist to be a generic plug-n-play solution to your search needs. It is very likely to not work for you or even break things, and it certainly is not as extensively tested and genericised as your regular third-party plugin.
My goal, here and in most of my posts, is to show how Vim's features can be leveraged to build your own high-level, low-maintenance, workflows without systematically jumping on the plugins bandwagon or twisting Vim's arm.
{ | |
"_id": "amazon_reviews", | |
"startUrl": [ | |
"https://www.amazon.com/Screen-Protector-SPARIN-Tempered-Glass/product-reviews/B013JZCAZK/ref=cm_cr_dp_d_show_all_btm?ie=UTF8&reviewerType=all_reviews" | |
], | |
"selectors": [ | |
{ | |
"id": "review", | |
"type": "SelectorElement", | |
"parentSelectors": [ |
function! s:format_coc_diagnostic(item) abort | |
return (has_key(a:item,'file') ? bufname(a:item.file) : '') | |
\ . '|' . (a:item.lnum ? a:item.lnum : '') | |
\ . (a:item.col ? ' col ' . a:item.col : '') | |
\ . '| ' . a:item.severity | |
\ . ': ' . a:item.message | |
endfunction | |
function! s:get_current_diagnostics() abort | |
" Remove entries not belonging to the current file. |
#!/bin/sh | |
# Install brew | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
# Apple hides old versions of stuff at https://developer.apple.com/download/more/ | |
# Install the latest XCode (8.0). | |
# We used to install the XCode Command Line Tools 7.3 here, but that would just upset the most recent versions of brew. | |
# So we're going to install all our brew dependencies first, and then downgrade the tools. You can switch back after | |
# you have installed caffe. | |
# Install CUDA toolkit 8.0 release candidate | |
# Register and download from https://developer.nvidia.com/cuda-release-candidate-download |
import java.io.ByteArrayOutputStream; | |
import java.io.File; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.nio.charset.Charset; | |
import java.nio.file.Files; | |
import java.nio.file.Paths; |
// Package main is a sample macOS-app-bundling program to demonstrate how to | |
// automate the process described in this tutorial: | |
// | |
// https://medium.com/@mattholt/packaging-a-go-application-for-macos-f7084b00f6b5 | |
// | |
// Bundling the .app is the first thing it does, and creating the DMG is the | |
// second. Making the DMG is optional, and is only done if you provide | |
// the template DMG file, which you have to create beforehand. | |
// | |
// Example use: |