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
juskhe | |
merzma | |
credentials | |
cognos | |
pwd | |
apache | |
html | |
auth | |
eg |
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
# aliases | |
alias l="ls -l" | |
alias ll="ls -alh" | |
alias ..="cd .." | |
alias ...="cd ../.." | |
alias psa="ps aux" | |
alias rmr="rm -r" | |
alias cl="clear" |
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 nocompatible " must be the first line | |
filetype on | |
filetype indent on | |
filetype plugin on | |
set laststatus=2 | |
syntax on | |
set statusline=%<%f\%h%m%r%=%-20.(line=%l\ \ col=%c%V\ \ totlin=%L%)\ \ \%h%m%r%=%-40(bytval=0x%B,%n%Y%)\%P | |
set background=dark |
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
# encoding : utf-8 | |
# ... or ... | |
# -*- encoding : utf-8 -*- | |
class ApplicationController < ActionController::Base | |
GERMAN_STRING = "muß grösser sein" |
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
german_string = "muß grösser sein" | |
# to retrieve the encoding of a String | |
puts german_string.encoding.name # >> UTF-8 | |
# the character count | |
puts german_string.size # >> 16 | |
# the actual bytes of this UTF-8 string | |
puts german_string.bytesize # >> 18 |
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
file = File.open('iso-8859-1.txt', 'r:iso-8859-1') | |
puts file.external_encoding.name # >> ISO-8859-1 | |
file_content = file.read | |
puts file_content.encoding.name # >> ISO-8859-1 | |
file = File.open('iso-8859-1.txt', 'r:iso-8859-1:utf-8') | |
puts file.external_encoding.name # >> ISO-8859-1 | |
file_content = file.read | |
puts file_content.encoding.name # >> 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
input.ensure_encoding('UTF-8', :external_encoding => :sniff, :invalid_characters => :transcode) |
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
input.ensure_encoding('UTF-8', | |
:external_encoding => [::Encoding::UTF_8, ::Encoding::UTF_16LE, ::Encoding::UTF_16BE, | |
::Encoding::ISO_8859_1], | |
:invalid_characters => :transcode) |
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
{ | |
"sc7MessageCount" : "Anzahl der Nachrichten: <span data-win-bind=\"innerText:count\" ></span>", | |
"_sc7MessageCount.source" : "You have <span data-win-bind=\"innerText:count\"></span> message(s)", | |
"_sc7MessageCount.comment" : "Do not change the HTML markup.", | |
"sc9AddressLabel" : "Adresse:", | |
"_sc9AddressLabel.source" : "Address", | |
"_sc9AddressLabel.comment" : "the address of the user" | |
} |
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
lingohub resource:down --locale 'en' --directory config/locales/en --project 'lht' --all | |
lingohub resource:down --locale 'de' --directory config/locales/de --project 'lht' --all | |
lingohub resource:down --locale 'ja' --directory config/locales/ja --project 'lht' --all |
OlderNewer