- 1
 - 2
 - 3
 
SetPixel (GetPixel (GetPixel (GetPixel (GetPixel (GetPixel ((COLORREF) rand(), (int) rand(), (int) rand());
#define SetPixel(GetPixel(GetPixel(GetPixel(GetPixel(GetPixel((COLORREF)rand(),(int)rand(),(int)rand());
                                    Нашли или выдавили из себя код, который нельзя назвать нормальным, на который без улыбки не взглянешь? Не торопитесь его удалять или рефакторить, — запостите его на говнокод.ру, посмеёмся вместе!
+148
SetPixel (GetPixel (GetPixel (GetPixel (GetPixel (GetPixel ((COLORREF) rand(), (int) rand(), (int) rand());
#define SetPixel(GetPixel(GetPixel(GetPixel(GetPixel(GetPixel((COLORREF)rand(),(int)rand(),(int)rand());
                                    
            GetPixel возвращает преведущее значение пикселя.
Так что этот код павильный, и ничего не делает.
А 3 строчка защищает от таких ошибок!
        
+148
try
{
   fIn = fopen(cszFileName, "rb");
   if (fIn == 0)
   {
       throw (std::string("Can not open file: ") + cszFileName);
       if (!ParseFile(fIn, pLookup))
           throw (std::string("Bad file format. File: ") + cszFileName);
        
        throw std::string("");
    }
}
catch (std::string& e)
{
   if (fIn != 0)
   {
      fclose(fIn);
      fIn = NULL;
   }
   if (e.length() != 0)
   {
      throw std::exception(e.c_str());
   }
}
                                    Просто говнокод
+148
if ($_POST['name']!='') {
	$name=post_check($_POST['name'],10);
}else {
	unset($_POST);
	$_SESSION['error']='Не введено имя';
	header("location: index.php?mode=registration");
	exit;
}
                                    Проверка данных
+148
if($_SESSION['login'])
	{
/*$topics=mysql_query("SELECT * FROM shviewstopic") or die ("Ошибка: Не могу выбрать таблицу для просмотра тем");
while($topic=mysql_fetch_array($topics))
	{
			echo "Пусто";
	}  */
		$timestamp=time();
		$ip = getenv("REMOTE_ADDR");	
		mysql_query("UPDATE shsession SET user='".$_SESSION['login']."', timestamp='".$timestamp."', id='".$_SESSION['id']."' WHERE ip='".$ip."'") or die (mysql_error());
	}
                                    сам не знаю, чего пытался сделать:)
+148
class AccessorThirteen implements ArrayAccess
{
    protected $data;
    public function __construct($data) { $this->data = $data; }
    public function offsetGet($key) { return $this->data[$key]; }
    public function offsetSet($key, $value) { $this->data[$key] = $value; }
    public function offsetExists($key) { return array_key_exists($key, $this->data); }
    public function offsetUnset($key) { unset($this->data[$key]); }
    public function __get($key) { return $this[$key]; }
    public function __set($key, $value) { $this[$key] = $value; }
}
                                    
+148
<table cellspacing="0" cellpadding="0" role="alert" class="cf ve">
 <tbody>
  <tr>
   <td class="vj"></td>
   <td class="vi"></td>
   <td class="vk"></td>
  </tr>
  <tr>
   <td class="vi"></td>
   <td class="vh">Firebug замедляет работу Gmail, если не настроен правильно.</td>
   <td class="vi"></td>
  </tr>
  <tr>
   <td class="vf"></td>
   <td class="vi"></td>
   <td class="vg"></td>
 </tr>
 </tbody>
</table>
                                    
            как реализованы закругленные углы у GMail в html верстке
страшновато, зато кросбраузерность проходит
        
+148
25/07 21:53]Л@мEp 
// $file - array 
$b = array(); 
$b[0] = $file[2]; 
$b[1] = $file[3]; 
$file[2] = $b[1]; и тд. Такая глупость взбрела . Файлы сакс аще
                                    Вот такое вот заменение части масива
+148
# /etc/fstab: static file system information.
#
# Use 'vol_id --uuid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# / was on /dev/sda1 during installation
UUID=12179970-74dc-4673-a865-cf8af384eb4b /               ext4    relatime,errors=remount-ro 0       1
# swap was on /dev/sda6 during installation
UUID=059ff3fe-4866-4f54-b796-54d4a265f660 none            swap    sw              0       0
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0       0
                                    fstab
+148
if (row[0]["IsAdmin"].ToString() == "True")
{
    return true;
}
else
{
    return false;
}
                                    
+148
<xsl:template name="a">
    <xsl:for-each select="//item">
      <megaitem>
        <xsl:value-of select="node()"/>
      </megaitem>
    </xsl:for-each>
  </xsl:template>