Skip to content

Instantly share code, notes, and snippets.

View liul85's full-sized avatar
🎯
Focusing

Liang Liu liul85

🎯
Focusing
View GitHub Profile
def testforV2ex()
"Hello,World!"
end
def hello()
puts "hello, world!"
end
@liul85
liul85 / ab.rb
Created September 26, 2015 02:28
def test()
puts "hello"
def abc():
print "Test"
@liul85
liul85 / deleteAll.go
Created December 25, 2015 04:14
delete all objects from s3 bucket -- 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"
@liul85
liul85 / liul85.zsh-theme
Created August 23, 2016 11:53
oh-my-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)'
[{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"]
@liul85
liul85 / .md
Created September 21, 2017 14:53
spf13-vim + vim-go
  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