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
/* Global styles and overrides */ | |
body { | |
font-family: Graphik, Helvetica, Arial, sans-serif; | |
-webkit-font-smoothing: antialiased; | |
background-image: url('https://d2x2losda9vsjs.cloudfront.net/docs/assets/2019/docs-brush-top.png'), url('https://d2x2losda9vsjs.cloudfront.net/docs/assets/2019/docs-brush-bottom.png'); | |
background-repeat: no-repeat, no-repeat; | |
background-position: 0 700px, 100% 90%; | |
background-size: 350px 350px, 350px 350px; | |
background-color: #FAFAFA; |
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
Document.all.each do |doc| | |
processor = FulltextProcessor.where(:document_id => doc.id, :status => Processor::StatusHelper::PROCESSED).last | |
if processor.present? && processor.get_data.present? | |
#puts "Doc #{doc.id} ma fulltext #{processor.get_data}" | |
stemmed = Text::TextProcessor.stem_text(processor.get_data).join(' ') | |
l = stemmed.scan(/and/).length | |
if l<0 | |
puts "#{processor.get_data}" | |
puts "-----------------------------------------------" | |
puts "------ ma #{l} vyskytov -and-" |
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
alias l="ls -la" | |
alias ..="cd ../" | |
alias c="clear" | |
# Sexy Bash Prompt, inspired by "Extravagant Zsh Prompt" | |
# Screenshot: http://i.imgur.com/uAQSa.png | |
# A big thanks to \amethyst on Freenode | |
if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then TERM=gnome-256color; fi | |
if [[ $(tput colors) -ge 256 ]] 2>/dev/null; then |
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
for rails 3.2.12: | |
I just checked the source and the dependencies are like this now: | |
db:create creates the database for the current env | |
db:create:all creates the databases for all envs | |
db:drop drops the database for the current env | |
db:drop:all drops the databases for all envs | |
db:migrate runs migrations for the current env that have not run yet | |
db:migrate:up runs one specific migration |
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 python3 | |
curl -O http://python-distribute.org/distribute_setup.py | |
sudo python3 distribute_setup.py | |
curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py | |
sudo python3 get-pip.py | |
# .bash_profile | |
export PATH=/Library/Frameworks/Python.framework/Versions/3.3/bin:$PATH |