- 1
- 2
<a href="#" onclick="window.open('/img/size/size_charts.jpg', '', config='height=457,width=924')"
<a href="/img/size/size_charts.jpg" title = 'Размерная таблица женской одежды (в новом окне)' >женская одежда</a>
Нашли или выдавили из себя код, который нельзя назвать нормальным, на который без улыбки не взглянешь? Не торопитесь его удалять или рефакторить, — запостите его на говнокод.ру, посмеёмся вместе!
+127
<a href="#" onclick="window.open('/img/size/size_charts.jpg', '', config='height=457,width=924')"
<a href="/img/size/size_charts.jpg" title = 'Размерная таблица женской одежды (в новом окне)' >женская одежда</a>
И ведь работает...
−95
Ждем нового раздела под язык Swift. Ожидается наплыв.
https://developer.apple.com/swift/
http://habrastorage.org/getpro/habr/comment_images/f80/9bd/f07/f809bdf079e06818109355db44e9430b.png
http://habrastorage.org/getpro/habr/comment_images/45a/feb/cfe/45afebcfe01065e7bdb2b618ea045f18.png
http://habrastorage.org/getpro/habr/comment_images/32e/c47/ae5/32ec47ae5be2bb4f540e318764c8f2ab.png
http://habrastorage.org/getpro/habr/comment_images/d21/480/e59/d21480e59827fc1c6b93150c91fdcf90.png
http://habrastorage.org/getpro/habr/comment_images/b30/513/b4f/b30513b4f3345b51b18565a235b6ab6a.png
+154
$data_move = date("d.m.Y", mktime(0, 0, 0, (int)date("m",time()), (int)date("d",time()), (int)date("Y",time())));
Вишенка даже не в том, что афтар - кармический индус, а в том, что теоретически возможна ситуация, при которой date("m",time()) выполняется в последнюю миллисекунду предыдущего месяца, а date("d",time()) - в первую следующего.
−169
SELECT Status_ID FROM User,UserStatus,Status WHERE User_ID=UserStatus_UserID AND UserStatus_StatusID=Status_ID GROUP BY Status_ID
+133
//checks if the string is a hex stream e.g. "31 32 33 6A F8"
private bool _IsHexStream(string sValue)
{
sValue = sValue.Trim();
if (sValue.Length < 2)
{
return false;
}
for (int i = 0; i < sValue.Length; i++)
{
if(_IsHexChar(Convert.ToChar(sValue.Substring(i,1))) == false)
{
return false;
}
}
//every third char must be a space, only possible in case of two bytes
if (sValue.Length > 3)
{
for (int i = 2; i < sValue.Length; i += 3)
{
string sBuffer = sValue.Substring(i, 1);
if (sBuffer.Equals(" ") == false)
{
return false;
}
}
}
//string is a hex stream
return true;
}
+134
TestScriptResult Test_method( ... )
{
TestScriptResult result = new TestScriptResult();
object obj = null;
///...
obj = foo.Set(...);
if (obj.GetType() == typeof(Exception))
{
result.SetResult(TestScriptResult.eTestResult.FAIL_SET_REQUEST, ((Exception)obj).Message);
_LogTestMethodEnd(result);
return result;
}
else
{
}
}
public Object Set(...)
{
//...
if(CheckForErrors(res) == true)
{
//create error description
string sErrorDescription = string.Format("Error during ...."));
//create exception object and return this
Exception ex = new Exception(sErrorDescription);
//error logging
m_logger.Error(sErrorDescription);
return ex;
}
else
{
}
}
Ну нах так жыть, котаны???
+8
#define FOR_INCLUSION (iostream) (studio.h) (stdlib.h) (boost/phoenix.hpp) (my_drugs_library.h)
#include <include_and_disable_some_warnings>
+96
var m = map[int]string { 1: "one", 2: "two", 3: "three", }
if val, ok := m[3]; ok { fmt.Printf("Yes! %s\n",val) } else { fmt.Println("No!") }
Почему в Go первое присваивание надо писать через =
А то что в if через :=
http://ideone.com/cPf2cw
http://ideone.com/fork/cPf2cw
+150
<?php
$subjects = array (
0 =>
array (
'title' => 'ОС Unix',
'teacher' => 'Вася',
'mark' => '3'),
1 =>
array (
'title' => 'Компьютерные сети',
'teacher' => 'Петя',
'mark' =>'4'),
2 =>
array (
'title' => 'Алгоритмы',
'teacher' => 'Коля',
'mark' => '4'),
);?>
<table>
<? foreach ($subjects as $key=>$subject) :
$number = $key+1;
?>
<tr>
<td><?echo $number;?></td>
<td><?echo $subject['title'];?></td>
<td><?echo $subject['teacher'];?></td>
<td><?echo $subject['mark'];?></td>
</tr>
<? endforeach; ?>
</table>
<? var_dump($subject)?>
+73
int a = 1;
int b = 2;
int c = 2;
String d = " ";
System.out.print(a+d);
System.out.print(b+d);
System.out.print(b+a+d);
System.out.print(4+d);
System.out.print(5+d);
System.out.print(6+d);
System.out.print(7+d);
System.out.print(8+d);
System.out.print(9+d);
System.out.println(10+d);
System.out.print(2+d);
System.out.print(4+d);
System.out.print(6+d);
System.out.print(8+d);
System.out.print(10+d);
System.out.print(12+d);
System.out.print(14+d);
System.out.print(16+d);
System.out.print(18+d);
System.out.println(20+d);
System.out.print(3+d);
System.out.print(6+d);
System.out.print(9+d);
System.out.print(12+d);
System.out.print(15+d);
System.out.print(18+d);
System.out.print(21+d);
System.out.print(24+d);
System.out.print(27+d);
System.out.println(30+d);
System.out.print(4+d);
System.out.print(8+d);
System.out.print(12+d);
System.out.print(16+d);
System.out.print(20+d);
System.out.print(24+d);
System.out.print(28+d);
System.out.print(32+d);
System.out.print(36+d);
System.out.println(40+d);
System.out.print(5+d);
System.out.print(10+d);
System.out.print(15+d);
System.out.print(20+d);
System.out.print(25);
System.out.print(30+d);
System.out.print(35+d);
System.out.print(40+d);
System.out.print(45+d);
System.out.println(50+d);
System.out.print(6+d);
System.out.print(12+d);
System.out.print(18+d);
System.out.print(24+d);
System.out.print(30+d);
System.out.print(36+d);
System.out.print(42+d);
System.out.print(48+d);
System.out.print(54+d);
System.out.println(60+d);
System.out.print(7+d);
System.out.print(14+d);
System.out.print(21+d);
System.out.print(28+d);
System.out.print(35+d);
System.out.print(42+d);
System.out.print(49+d);
System.out.print(56+d);
System.out.print(63+d);
System.out.println(70+d);
System.out.print(8+d);
System.out.print(16+d);
System.out.print(24+d);
System.out.print(32+d);
System.out.print(40+d);
System.out.print(48+d);
System.out.print(56+d);
System.out.print(64+d);
System.out.print(72+d);
System.out.println(80+d);
System.out.print(9+d);
System.out.print(18+d);
System.out.print(27+d);
System.out.print(36+d);
System.out.print(45+d);
System.out.print(54+d);
System.out.print(63+d);
System.out.print(72+d);
System.out.print(81+d);
System.out.println(90+d);
System.out.print(10+d);
System.out.print(20+d);
System.out.print(30+d);
System.out.print(40+d);
System.out.print(50+d);
System.out.print(60+d);
Пытался таблицу умножения сделать в детстве...