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
#!/bin/bash | |
FROM=iso-8859-2 | |
TO=UTF-8 | |
FILES=("desky.tex" "fitthesis.cls" "literatura.bib" "obsah.tex" "prilohy.tex" "projekt.tex") | |
for i in "${FILES[@]}" | |
do | |
iconv -f $FROM -t $TO $i > tmp | |
sed 's/latin2/utf8/g' tmp > tmp2 |
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/ruby | |
require "benchmark" | |
DEBUG = false | |
# kontrola zda je mocnina dvojky | |
def is_pow?(x) | |
true if (x != 0) && ((x & (x - 1)) == 0); | |
end |
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
# enviroment variables | |
export BASH_SILENCE_DEPRECATION_WARNING=1 | |
export CLICOLOR=1 | |
export EDITOR='vim' | |
export LANG=en_US.UTF-8 | |
export LC_ALL=en_US.UTF-8 | |
export PATH=/usr/local/bin:$PATH:$HOME/.bin | |
export MATCH_PASSWORD=Ab22112011 | |
# beware if not escaping these values right, it will broke the output |
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
syntax on | |
set number | |
set smarttab | |
set paste | |
filetype plugin on | |
set shiftwidth=4 | |
colorscheme desert | |
set fileencodings=utf-8,cp1250,iso8859-2 |
NewerOlder