- 1
- 2
- 3
//...
ret.value(_val != "" ? _val : "");
//...
Нашли или выдавили из себя код, который нельзя назвать нормальным, на который без улыбки не взглянешь? Не торопитесь его удалять или рефакторить, — запостите его на говнокод.ру, посмеёмся вместе!
+16
//...
ret.value(_val != "" ? _val : "");
//...
+157
<SCRIPT language=JavaScript> <!--#### Подпрограммы (скрипты) для вывода фотографий составных частей ПК #### -->
function picture1(){
window.open("P4P800.jpg", "newwindow01", config="width=460, height=515, toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=0, resizable=0");
}
function picture2(){
window.open("CPU.jpg", "newwindow02", config="width=355, height=380, toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=0, resizable=0");
}
function picture3(){
window.open("Video.jpg", "newwindow03", config="width=475, height=380, toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=0, resizable=0");
}
function picture4(){
window.open("Syst.jpg", "newwindow04", config="width=220, height=220, toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=0, resizable=0");
}
function picture5(){
window.open("audio.jpg", "newwindow05", config="width=315, height=200, toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=0, resizable=0");
}
function picture6(){
window.open("Seti.jpg", "newwindow06", config="width=190, height=120, toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=0, resizable=0");
}
function picture7(){
window.open("hdd.jpg", "newwindow07", config="width=725, height=425, toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=0, resizable=0");
}
function picture8(){
window.open("dvd.jpg", "newwindow08", config="width=520, height=205, toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=0, resizable=0");
}
function picture9(){
window.open("korpus.jpg", "newwindow09", config="width=820, height=435, toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=0, resizable=0");
}
function picture10(){
window.open("monitor.jpg", "newwindow10", config="width=320, height=320, toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=0, resizable=0");
}
function picture11(){
window.open("Klava.jpg", "newwindow11", config="width=510, height=250, toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=0, resizable=0");
}
function picture12(){
window.open("Mouse.jpg", "newwindow12", config="width=340, height=285, toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=0, resizable=0");
}
function picture13(){
window.open("print.jpg", "newwindow13", config="width=467, height=295, toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=0, resizable=0");
}
function picture14(){
window.open("RAM.jpg", "newwindow14", config="width=530, height=135, toolbar=0, location=0, directories=0, status=0, menubar=0, scrollbars=0, resizable=0");
}
</script> <!--#### Конец скриптов ####-->
+83
if ((decoded.length() > 40) && (el != null))
el.addMsg("Info: Decoded More Characters Than Is Specified By The Track 2 ANSI/ISO Standards");
else if ((decoded.length() > 107) && (el != null)) {
el.addMsg("Info: Decoded More Characters Than Is Specified By The Track 3 ANSI/ISO Standards");
}
Декодинг содержимого магнитной полосы карты в софте одного банка.
+135
int index = 0;
this.item[index].SetDefaults("Mining Helmet");
index++;
this.item[index].SetDefaults("Piggy Bank");
index++;
this.item[index].SetDefaults("Iron Anvil");
index++;
this.item[index].SetDefaults("Copper Pickaxe");
index++;
this.item[index].SetDefaults("Copper Axe");
index++;
this.item[index].SetDefaults("Torch");
index++;
this.item[index].SetDefaults("Lesser Healing Potion");
index++;
...
+94
String s="a, b, c, d,,,";
String[] spl=s.split ( "," );
o.println(spl.length);
for (String s1: spl)
o.print(s1+";");
//4
//a; b; c; d;
StringTokenizer st=new StringTokenizer(s);
o.println("\n"+st.countTokens ());
while (st.hasMoreElements ()){
o.print(
st.nextToken ()+";"
);
}
//4
//a,;b,;c,;d,,,;
st=new StringTokenizer(s,",");
o.println("\n"+st.countTokens ());
while (st.hasMoreElements ()){
o.print(
st.nextToken ()+";"
);
}
//4
//a; b; c; d;
http://ideone.com/zh0paB
Очередной сюжет из серии JavaGovno.
+20
void __fastcall TfРѕrm1::SpeedButton1Click(TobjРµct *Sender)
{
SpeedButton1->Enabled=false;
SpeedButton1->Caption=Edit1->Text;
if(Edit1->Text=="X")
Edit1->Text="0";
else
Edit1->Text="X";
if(SpeedButton1->Caption=="X" && SpeedButton2->Caption=="X" && SpeedButton3->Caption=="X" ||
SpeedButton4->Caption=="X" && SpeedButton5->Caption=="X" && SpeedButton6->Caption=="X" ||
SpeedButton7->Caption=="X" && SpeedButton8->Caption=="X" && SpeedButton9->Caption=="X" ||
SpeedButton1->Caption=="X" && SpeedButton4->Caption=="X" && SpeedButton7->Caption=="X" ||
SpeedButton2->Caption=="X" && SpeedButton5->Caption=="X" && SpeedButton8->Caption=="X" ||
SpeedButton3->Caption=="X" && SpeedButton6->Caption=="X" && SpeedButton9->Caption=="X" ||
SpeedButton1->Caption=="X" && SpeedButton5->Caption=="X" && SpeedButton9->Caption=="X" ||
SpeedButton3->Caption=="X" && SpeedButton5->Caption=="X" && SpeedButton7->Caption=="X")
ShowMessage("Ea?a caeii?aia, e?anoeee auea?aee");
else
if(SpeedButton1->Caption=="0" && SpeedButton2->Caption=="0" && SpeedButton3->Caption=="0" ||
SpeedButton4->Caption=="0" && SpeedButton5->Caption=="0" && SpeedButton6->Caption=="0" ||
SpeedButton7->Caption=="0" && SpeedButton8->Caption=="0" && SpeedButton9->Caption=="0" ||
SpeedButton1->Caption=="0" && SpeedButton4->Caption=="0" && SpeedButton7->Caption=="0" ||
SpeedButton2->Caption=="0" && SpeedButton5->Caption=="0" && SpeedButton8->Caption=="0" ||
SpeedButton3->Caption=="0" && SpeedButton6->Caption=="0" && SpeedButton9->Caption=="0" ||
SpeedButton1->Caption=="0" && SpeedButton5->Caption=="0" && SpeedButton9->Caption=="0" ||
SpeedButton3->Caption=="0" && SpeedButton5->Caption=="0" && SpeedButton7->Caption=="0")
ShowMessage("Ea?a caeii?aia, iieeee auea?aee");
}
+136
revision = String.Format("{0}{1:d2}{2:d2}",
DateTime.Now.Year.ToString().Substring(2),
DateTime.Today.Month,
DateTime.Today.Day);
видно автор хотел сделать
revision = DateTime.Today.ToString("yyMMdd");
http://www.codeproject.com/Articles/272551/Custom-Assembly-Versioning-with-VS-2010-and-MSBUIL
+129
arr <- return $ map (2*) lst
Я тут читал раздел на одном форуме по решению задач для школьников и наткнулся на такое говно.
- let?
- Не, не слышал.
Подозреваю, что автор не понял, что let нужно писать без in в монадах, чтобы скомпилировалось.
+50
$submit = $_REQUEST['submit'];
if(isset($submit))
{
$first_name = $_REQUEST['first_name'];
$last_name = $_REQUEST['last_name'];
$address = $_REQUEST['address'];
$city = $_REQUEST['city'];
$country = $_REQUEST['country'];
$state = $_REQUEST['state'];
$zipcode = $_REQUEST['zipcode'];
$phone = $_REQUEST['phone'];
$email = $_REQUEST['email'];
$_SESSION['first_name'] = $first_name;
$_SESSION['last_name'] = $last_name;
$_SESSION['address'] = $address;
$_SESSION['city'] = $city;
$_SESSION['country'] = $country;
$_SESSION['state'] = $state;
$_SESSION['zipcode'] = $zipcode;
$_SESSION['phone'] = $phone;
$_SESSION['email'] = $email;
?>
<meta http-equiv="refresh" content="0;url=https://www.site.com/development1/billing_info.php"/>
<?
exit();
оригинальная обработка сабмита формы и редиректа
+139
switch (!_data.Provider)
{
case true: _currentState = states.DT2F; break;
case false: _currentState = states.DT2P; break;
}
Проверка двух условий