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
def __init__(self, *args, **kwargs): | |
print "Hello world" |
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
style "vim-background" { | |
bg[NORMAL] = "#202020" | |
} | |
widget "vim-main-window.*.GtkForm" style "vim-background" |
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
/* | |
* BOT for 10fastfingers, automatic typing with adjustable speed | |
* ================================================================ | |
* | |
* bored in my apartment and decided to hack this game: http://indonesian-speedtest.10fastfingers.com/ | |
* just start the game, when you're ready to type, DON'T TYPE ANYTHING, open up | |
* your Developer Tools in Chrome (CTRL+SHIFT+J) and click Console tab, and | |
* then paste the whole code below, then press enter, and enjoy the show. | |
* | |
* twitter.com/kecebongsoft |
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
vnoremap <silent><S-TAB> <gv | |
vnoremap <silent><TAB> >gv |
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
set dir=~/.vim/swaps//,/var/tmp//,/tmp//,. | |
set undodir=~/.vim/undos//,/var/tmp//,/tmp//,. |
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
Say you need to copy files in a folder to somewhere else, except that you have a list of files that might be exist in the source folder but you don't want them to be copied. Your text file that has this list is named list.txt: | |
------------------------ | |
exclude1.mp3 | |
dont_copy.mpeg | |
nyancat.jpg | |
------------------------ | |
$ cd source/ | |
$ cat /path/to/list.txt | tr '\n' '#' | sed 's/.$//g' | sed 's/#/\\\\|/g' | xargs -i sh -c "ls | grep -v '{}'" | xargs -i cp -v -u {} /path/to/dest/ |
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 operator | |
import csv | |
import sys | |
import re | |
source = sys.argv[1] | |
output = sys.argv[2] | |
column = sys.argv[3] | |
reader = csv.reader(open(source, 'rb'), delimiter=',', quotechar='"') |
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
<form action="vbshout.php.?{$session['sessionurl']}" method="post" name="vbshoutform" onsubmit="return postShout(this)"> | |
<input type='hidden' name='do' value='shout' /> | |
<input type='hidden' name='color' /> | |
<input type='hidden' name='fontFamily' /> | |
<input type='hidden' name='fontWeight' /> | |
<input type='hidden' name='textDecoration' /> | |
<input type='hidden' name='fontStyle' /> | |
<div id='shout_emo' style='display:none'> |
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
aisah,leadershipresources_aisah | |
alpa,leadershipresources_alpa | |
ana,leadershipresources_ana | |
anand,leadershipresources_anand | |
annie,leadershipresources_annie | |
asnija,leadershipresources_asnija | |
babu,leadershipresources_babu | |
bounces,leadershipresources_bounces | |
bugh,leadershipresources_bugh | |
chong,leadershipresources_chong |
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
b73s9c8310cb |
OlderNewer