- 1
if (tableOfVariables[i].Name == "replace".ToUpper())Нашли или выдавили из себя код, который нельзя назвать нормальным, на который без улыбки не взглянешь? Не торопитесь его удалять или рефакторить, — запостите его на говнокод.ру, посмеёмся вместе!
+1
if (tableOfVariables[i].Name == "replace".ToUpper()))))00
0
Зачем "\r", если достаточно "\n"?
0
Я забыл теорию графов, но вот недавно читал про магазинный автомат, а вы?
0
if (!isset($this->parent->parent->CONFIG['DIR'])) {
                $this->parent->parent->CONFIG['DIR'] = $this->parent->CONFIG['DIR'];
                $this->parent->parent->CONFIG['fqdn'] = $this->parent->CONFIG['fqdn'];
}посадил дед репку...
−10
https://i.imgur.com/2GTA40l.png
−1
#include <stdio.h>
#include <math.h>
char s[6];
main(){
	puts(gets(s)[2]==45&8u>*s-65&8u>s[1]-49&8u>s[3]-65&8u>s[4]-49?abs((*s-s[3])*(s[1]-s[4]))-2?"NO":"YES":"ERROR");
}
+3
#!/bin/sh
while true; do
    date "+Time is %H %M. Stop lurking and get the fuck to work" | say
    sleep 1800
doneЯ наконец нашёл применение встроенному в OS X TTS-движку.
+2
public do(action: 'un' | 're'): void {
    const result = (<any>this._appApi.app.documentManager.current)[action + 'do']();
    if (!result.success) this._toastService.error(result.errorMessage, `Ошибка ${action}do`);
}
 <button (click)="do('un')" title="Отменить"><i class="material-icons md-36">undo</i></button>
 <button (click)="do('re')" title="Повторить"><i class="material-icons md-36">redo</i></button>
+2
switch (a) {
	case 12345:
		return 0;
	case 14523:
		return 1;
	case 102543:
		return 2;
	case 104325:
		return 3;
	case 243051:
		return 4;
	case 245130:
		return 5;
	case 350214:
		return 6;
	case 351402:
		return 7;
	case 423150:
		return 8;
	case 425031:
		return 9;
	case 530412:
		return 10;
	case 531204:
		return 11;
	}
	return -1;
−160
ALTER TABLE db.table ADD CONSTRAINT cu_contents UNIQUE (contents(128));
ALTER TABLE db.table DROP INDEX cu_contents;Создал констрейнт, удал индекс. Загадки Майсиквела.