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
env ARCHFLAGS="-arch i386" pip install | |
or | |
env ARCHFLAGS="-arch i386" easy_install |
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
nnoremap <up> <nop> | |
nnoremap <down> <nop> | |
nnoremap <left> <nop> | |
nnoremap <right> <nop> | |
inoremap <up> <nop> | |
inoremap <down> <nop> | |
inoremap <left> <nop> | |
inoremap <right> <nop> |
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
% resume.tex | |
% | |
% (c) 2002 Matthew Boedicker <[email protected]> (original author) http://mboedick.org | |
% (c) 2003 David J. Grant <[email protected]> http://www.davidgrant.ca | |
% (c) 2007 Todd C. Miller <[email protected]> http://www.courtesan.com/todd | |
% (c) 2009 Derek R. Hildreth <[email protected]> http://www.derekhildreth.com | |
% (c) 2011 Shreesh Ayachit <[email protected]> | |
%This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/1.0/ or send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA. | |
% GENERAL NOTE: There may be some notes specific to myself. If you're only interested in my LaTeX source or it doesn't make sense, please disregard it. |
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
To solve the below error: | |
global name '__str__' is not defined | |
Decode the NavigableString to str and decode to utf-8 | |
ldict['anchor'] = str(link.string).decode('utf-8') |
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 nltk | |
with open('sample.txt', 'r') as f: | |
sample = f.read() | |
sentences = nltk.sent_tokenize(sample) | |
tokenized_sentences = [nltk.word_tokenize(sentence) for sentence in sentences] | |
tagged_sentences = [nltk.pos_tag(sentence) for sentence in tokenized_sentences] | |
chunked_sentences = nltk.batch_ne_chunk(tagged_sentences, binary=True) |
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
" This uses Vundle (https://github.com/gmarik/vundle) to manage vim scripts | |
" syntax highlight | |
syntax on | |
" Mouse support | |
set mouse=a | |
" Code Header | |
autocmd bufnewfile *.py so ~/.vim/py_header.txt | |
autocmd bufnewfile *.h,*.hpp,*.c,*.cpp so ~/.vim/c_header.txt |
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
-vmargs | |
-Xms512m | |
-Xmx1024m | |
-XX:+UseParallelGC | |
-XX:PermSize=256M | |
-XX:MaxPermSize=512M |
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
""" | |
* Creation Date : 14-01-2012 | |
* Last Modified : | |
* Created By : Shreesh Ayachit ([email protected]) | |
* Description : | |
""" | |
import os | |
import sys | |
import re | |
from subprocess import call |
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
brew install md5sha1sum |
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/env bash | |
echo "Generating eclipse projects for all ROS projects in this directory" | |
for MKFILE in `find $PWD -name Makefile`; do | |
DIR=`dirname $MKFILE` | |
echo $DIR | |
cd $DIR | |
make eclipse-project | |
done |
OlderNewer