Mistři v programování na #hovnokod

Brigádníci mají smůlu, aneb když chcete do systému zavést výjimku během telefonického hovoru s klientem.

{if $user->firstname !== 'Brigáda'}
	{include __CONTROL__ . '/alerts/AlertsDialog.latte'}
{/if}

Zbyněk Rybička,

SO Thread: https://stackoverflow.com/questions/44484229/how-should-i-make-this-code-shorter To nechceš :D :D :D

@IBAction func startButton(_ sender: UIButton, forEvent event: UIEvent) {
if isPlaying == false {
sender.alpha = 0
difficulty.alpha = 0
if difficulty.selectedSegmentIndex == 0 {
currentTask.text = "Starting \nE In"
timeLabel.text = "3"
delay(1) {
self.timeLabel.text = "2"
self.delay(1) {
self.timeLabel.text = "1"
self.delay(1) {
self.currentTask.text = "E"
self.timeLabel.text = "1"
self.delay(1) {
self.timeLabel.text = "2"
self.delay(1) {
self.timeLabel.text = "3"
self.delay(1) {
self.timeLabel.text = "4"
self.delay(1) {
self.timeLabel.text = "5"
self.delay(1) {
self.timeLabel.text = "6"
self.delay(1) {
self.timeLabel.text = "7"
self.delay(1) {
self.timeLabel.text = "8"
self.delay(1) {
self.timeLabel.text = "9"
self.delay(1) {
self.timeLabel.text = "10"
self.delay(1) {
self.currentTask.text = "Starting \nF In"
self.timeLabel.text = "3"
self.delay(1) {
self.timeLabel.text = "2"
self.delay(1) {
self.timeLabel.text = "1"
self.delay(1) {
self.currentTask.text = "F"
self.timeLabel.text = "1"
self.delay(1) {
self.timeLabel.text = "2"
self.delay(1) {
self.timeLabel.text = "3"
self.delay(1) {
self.timeLabel.text = "4"
self.delay(1) {
self.timeLabel.text = "5"
self.delay(1) {
self.timeLabel.text = "6"
self.delay(1) {
self.timeLabel.text = "7"
self.delay(1) {
self.timeLabel.text = "8"
self.delay(1) {
self.timeLabel.text = "9"
self.delay(1) {
self.timeLabel.text = "10"
self.delay(1) {
self.currentTask.text = "Starting \nG In"
self.timeLabel.text = "3"
self.delay(1) {
self.timeLabel.text = "2"
self.delay(1) {
self.timeLabel.text = "1"
self.delay(1) {
self.currentTask.text = "G"
self.timeLabel.text = "1"
self.delay(1) {
self.timeLabel.text = "2"
self.delay(1) {
self.timeLabel.text = "3"
self.delay(1) {
self.timeLabel.text = "4"
self.delay(1) {
self.timeLabel.text = "5"
self.delay(1) {
self.timeLabel.text = "6"
self.delay(1) {
self.timeLabel.text = "7"
self.delay(1) {
self.timeLabel.text = "8"
self.delay(1) {
self.timeLabel.text = "9"
self.delay(1) {
self.timeLabel.text = "10"
self.delay(1) {
self.currentTask.text = "Starting \nA In"
self.timeLabel.text = "3"
self.delay(1) {
self.timeLabel.text = "2"
self.delay(1) {
self.timeLabel.text = "1"
self.delay(1) {
self.currentTask.text = "A"
self.timeLabel.text = "1"
self.delay(1) {
self.timeLabel.text = "2"
self.delay(1) {
self.timeLabel.text = "3"
self.delay(1) {
self.timeLabel.text = "4"
self.delay(1) {
self.timeLabel.text = "5"
self.delay(1) {
self.timeLabel.text = "6"
self.delay(1) {
self.timeLabel.text = "7"
self.delay(1) {
self.timeLabel.text = "8"
self.delay(1) {
self.timeLabel.text = "9"
self.delay(1) {
self.timeLabel.text = "10"
self.delay(1) {
self.currentTask.text = "Starting \nB In"
self.timeLabel.text = "3"
self.delay(1) {
self.timeLabel.text = "2"
self.delay(1) {
self.timeLabel.text = "1"
self.delay(1) {
self.currentTask.text = "B"
self.timeLabel.text = "1"
self.delay(1) {
self.timeLabel.text = "2"
self.delay(1) {
self.timeLabel.text = "3"
self.delay(1) {
self.timeLabel.text = "4"
self.delay(1) {
self.timeLabel.text = "5"
self.delay(1) {
self.timeLabel.text = "6"
self.delay(1) {
self.timeLabel.text = "7"
self.delay(1) {
self.timeLabel.text = "8"
self.delay(1) {
self.timeLabel.text = "9"
self.delay(1) {
self.timeLabel.text = "10"
self.delay(1) {
self.currentTask.text = "Starting \nC In"
self.timeLabel.text = "3"
self.delay(1) {
self.timeLabel.text = "2"
self.delay(1) {
self.timeLabel.text = "1"
self.delay(1) {
self.currentTask.text = "C"
self.timeLabel.text = "1"
self.delay(1) {
self.timeLabel.text = "2"
self.delay(1) {
self.timeLabel.text = "3"
self.delay(1) {
self.timeLabel.text = "4"
self.delay(1) {
self.timeLabel.text = "5"
self.delay(1) {
self.timeLabel.text = "6"
self.delay(1) {
self.timeLabel.text = "7"
self.delay(1) {
self.timeLabel.text = "8"
self.delay(1) {
self.timeLabel.text = "9"
self.delay(1) {
self.timeLabel.text = "10"
self.delay(1) {
self.currentTask.text = "Starting \nB In"
self.timeLabel.text = "3"
self.delay(1) {
self.timeLabel.text = "2"
self.delay(1) {
self.timeLabel.text = "1"
self.delay(1) {
self.currentTask.text = "B"
self.timeLabel.text = "1"
self.delay(1) {
self.timeLabel.text = "2"
self.delay(1) {
self.timeLabel.text = "3"
self.delay(1) {
self.timeLabel.text = "4"
self.delay(1) {
self.timeLabel.text = "5"
self.delay(1) {
self.timeLabel.text = "6"
self.delay(1) {
self.timeLabel.text = "7"
self.delay(1) {
self.timeLabel.text = "8"
self.delay(1) {
self.timeLabel.text = "9"
self.delay(1) {
self.timeLabel.text = "10"
self.delay(1) {
self.currentTask.text = "Starting \nA In"
self.timeLabel.text = "3"
self.delay(1) {
self.timeLabel.text = "2"
self.delay(1) {
self.timeLabel.text = "1"
self.delay(1) {
self.currentTask.text = "A"
self.timeLabel.text = "1"
self.delay(1) {
self.timeLabel.text = "2"
self.delay(1) {
self

Anonymous,

if lover

if (common.checkContains('INSTALL', 'kvm')) {
    saltPort = 6969
} else {
    saltPort = 6969
}

Anonymous,

Extension se ještě ke všemu nachazí mimo soubor kde je definovana class LogInViewController. Prostě frajeřina.

extension LogInViewController: GIDSignInUIDelegate {
    
    override open func viewDidLoad() {
        super.viewDidLoad()
        GIDSignIn.sharedInstance().uiDelegate = self
    }

}

Anonymous,

Rozkaz zněl jasně...v response musí být tel.číslo s '+' na začátku. Tenhle zákazník číslo v DB vyplněné bohužel neměl..

<ns:source msisdn="+null"/>

Anonymous,