Skip to content

Instantly share code, notes, and snippets.

@pupca
pupca / gist:5313992
Last active December 15, 2015 19:49
# coding: utf-8
def kamenicky_to_utf(string)
out = ""
highchars = "üéďäĎŤčěĚĹÍľĺÄÁÉžŽôöÓůÚýÖÜŠĽÝŘťáíóúňŇŮÔšřŕŔ¼§«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■"
string.each_byte do |byte|
if byte < 128
out += byte.chr
else
out += highchars[byte-129]
end
"Jele\x87kov\xA0 Drahom\xA1ra"
#<Encoding:UTF-8>
"Jele\u0087kov  Drahom¡ra"
#<Encoding:ISO-8859-1>
"Jele\u0087kov  DrahomĄra"
#<Encoding:ISO-8859-2>
"Jele\u0087kov  DrahomĦra"
#<Encoding:ISO-8859-3>
"Jele\u0087kov  DrahomĄra"
#<Encoding:ISO-8859-4>
3:24:01 PM pupca: http://www.polarion.com/downloads/alm.php
3:24:18 PM pupca: tohle je soucastny stav. kdyz si stahnes ten linux tak uvidis ze je tam nejaky install.sh
3:24:35 PM pupca: a potreboval bych aby to fungovalo na nasledujicim
3:24:36 PM pupca: - CentOS 6.x (6.3)
- Debian 6.x (6.0.6)
- Ubuntu Server 12.04 LTS
def generate_expire_at(time = Time.now)
#patek od 5 az nedele pulnoc
if time.wday == 0 || time.wday == 6 || (time.wday == 5 && time.hour > 15)
return Chronic.parse('this monday 10:00AM').strftime("%Y-%m-%dT%H:%M")
end
# po 4te hodine
if time.hour > 15
return Chronic.parse('tommorow 10:00AM').strftime("%Y-%m-%dT%H:%M")
end
# pred 8mou
{parameter:id=sprint|type=timePoint|value=@current|query=time:[20101029 TO 30000000]|sortby=~time}
#set($timepoint = $pageParameters.sprint)
For the Integration part is most likely used proof of concept solution. There is assigned a manager of this POC and his responsibilities are:
[ciselny seznam]
If needed create team of developers that are going to implement POC
Assign (if needed) testers that are going to test the POC
Define API that Polarion is going to use and how it's going to use it
Implementing POC according agreement with PM
Ensuring that technology integration is fully tested with unit tests. That there is not risk in future development
Demonstrating POC to PM (developers, stakeholders, etc.)
Concluding if the technology might be used in future Polarion development
@@available_settings = YAML::load(File.open("#{RAILS_ROOT}/config/settings.yml"))
@@available_settings.each do |name, params|
src = <<-END_SRC
def self.#{name}
self[:#{name}]
end
def self.#{name}?
self[:#{name}].to_i > 0
end
#set($user_name = "popelakm")
#set($query = '(type:userstory AND CUSTOM_FIELDS:productbl AND assignee.id:${user_name} AND CUSTOM_FIELDS:prepareForEstimation) AND (status:open OR (resolution:######NULL AND NOT CUSTOM_FIELDS:storyPoints)) AND (project.id:PolarionSVN)')
$query
function publishHeight() {
if (window.location.hash.length == 0) return;
var frameId = getFrameId();
if (frameId == '') return;
var actualHeight = getBodyHeight();
var currentHeight = getViewPortHeight();
Position Senior Software Engineer - Java
Location Prague, Czech Republic
Description
Professional requirements:
Expert level knowledge of OOP (Java)
Knowledge of object modeling principles
3+ years experience in full lifecycle development (requirements, design, development, testing)
3+ years of Java server side experience, including but not limited to JSP, Servlets and XML
Desire to grow yourself and others in a strong team-driven environment
Adherence to agile development practices