This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -type f -iname "makefile" -exec basename '{}' \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SUBDIRS = foo bar baz | |
subdirs: | |
for dir in $(SUBDIRS); do \ | |
$(MAKE) -C $$dir; \ | |
done | |
SUBDIRS = foo bar baz | |
.PHONY: subdirs $(SUBDIRS) | |
subdirs: $(SUBDIRS) | |
$(SUBDIRS): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:r! sed -n 147,227p /path/to/foo/foo.c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# new option only supported in version >=7.3 | |
set wildignorecase | |
set wildmenu | |
set wildmode=list:longest,full |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vert sbN | |
# sbN, split window horizontally by default | |
vsp | bN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git show branch:path_to_file > newFile | |
git show HEAD:path_to_file > newFile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
H: put cursor in the top of window | |
M: put cursor in the middle of window | |
L: put cursor in the bottom of window | |
zz: | |
z. | |
zt: | |
z<CR> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git rm -r --cached . | |
# change the .gitignore file | |
git add . | |
git commit -am "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import urllib2 | |
import json | |
user = "lirenlin" | |
url = "https://api.github.com/users/%s/gists" | |
HTML_header = ''' <!DOCTYPE html> | |
<html> | |
<head> | |
<title>Gist from Li Renlin</title> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import QtQuick 1.1 | |
import com.nokia.meego 1.1 | |
Page { | |
TabGroup { | |
id: tabGroup | |
currentTab: tab1 | |
Page { | |
id: tab1 |
OlderNewer