Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Liang Liu liul85

Block or report user

Report or block liul85

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@liul85
liul85 / .md
Created Sep 21, 2017 — forked from Unknwon/.md
spf13-vim + vim-go
View .md
  1. Install spf13-vim
sh <(curl https://j.mp/spf13-vim3 -L)
  1. Install Go bundle
echo "let g:spf13_bundle_groups=['general', 'neocomplete', 'programming', 'ruby', 'python', 'go', 'javascript', 'html', 'misc', 'writing' ]" >> ~/.vimrc.before.local 
View gh60 hhkb
[{a:2},"Esc\n\n\n\nPower",{a:0},"!\n1\n\n\nF1","@\n2\n\n\nF2","#\n3\n\n\nF3","$\n4\n\n\nF4","%\n5\n\n\nF5","^\n6\n\n\nF6","&\n7\n\n\nF7","*\n8\n\n\nF8","(\n9\n\n\nF9",")\n0\n\n\nF10","_\n-\n\n\nF11","+\n=\n\n\nF12","|\n\\\n\n\nIns","~\n`\n\n\nDel"],
[{a:2,w:1.5},"Tab\n\n\n\nCaps",{a:4},"Q","W","E","R","T","Y","U","I\n\n\n\nPSc/SRq","O\n\n\n\nSrcLk","P\n\n\n\nPus/Brk","{\n[\n\n\n↑","}\n]",{a:2,w:1.5},"Delete\n\n\n\nBS\nClear"],
[{a:6,w:1.75},"Control",{a:4},"A\n\n\n\nVol_Dn","S\n\n\n\nVol_Up","D\n\n\n\nMute","F\n\n\n\nEject","G","H\n\n\n\n*","J\n\n\n\n/","K\n\n\n\nHome","L\n\n\n\nPgUp",":\n;\n\n\n←","\"\n'\n\n\n→",{a:2,w:2.25},"Return\n\n\n\n\nEnter"],
[{a:6,w:2.25},"Shift",{a:4},"Z","X","C","V","B","N\n\n\n\n+","M\n\n\n\n-","<\n,\n\n\nEnd",">\n.\n\n\nPgDn","?\n/\n\n\n↓",{a:6,w:1.75},"Shift","Fn"],
[{x:1.25,a:4,w:1.25},"\n\nOpt\n\n\n\nAlt",{a:7,w:1.25},"⌘",{w:6.25},"",{w:1.25},"⌘",{a:4,w:1.25},"\n\nOpt\n\n\n\nAlt"]
View liul85.zsh-theme
local current_dir='${PWD/#$HOME/~}'
YS_VCS_PROMPT_PREFIX1="%{$fg[white]%}on%{$reset_color%} "
YS_VCS_PROMPT_PREFIX2=":%{$fg[cyan]%}"
YS_VCS_PROMPT_SUFFIX="%{$reset_color%} "
YS_VCS_PROMPT_DIRTY=" %{$fg[red]%}❌"
YS_VCS_PROMPT_CLEAN=" %{$fg[green]%}✅"
local git_info='$(git_prompt_info)'
local git_last_commit='$(git log --pretty=format:"%h \"%s\"" -1 2> /dev/null)'
@liul85
liul85 / deleteAll.go
Created Dec 25, 2015
delete all objects from s3 bucket -- go
View deleteAll.go
package main
import (
"fmt"
"time"
"os"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/s3"
"github.com/aws/aws-sdk-go/aws/session"
"runtime"
View ab.rb
def test()
puts "hello"
View gist:6083114
def testforV2ex()
"Hello,World!"
end
You can’t perform that action at this time.