- 1
if((!$_SERVER["REQUEST_URI"]) || ($_SERVER["REQUEST_URI"] == "/") && !$_SESSION['user']) {echo "index";}
Нашли или выдавили из себя код, который нельзя назвать нормальным, на который без улыбки не взглянешь? Не торопитесь его удалять или рефакторить, — запостите его на говнокод.ру, посмеёмся вместе!
+158
if((!$_SERVER["REQUEST_URI"]) || ($_SERVER["REQUEST_URI"] == "/") && !$_SESSION['user']) {echo "index";}
+71
newMatrix.setElement(newMatrix.getElement(i, j) + getElement(i, k) * matrix.getElement(k, j), i, j);
Профессиональный говнокод.
−105
#!/bin/bash
trap "logkeys -k && echo $'\n'Exit! && exit 0" SIGINT SIGTERM
while true
do
sleep 0.2
layout=$(xset -q | grep LED | awk {' print $10 '} | cut -c5)
if [[ $layout == 0 ]] && [[ $layoutmode == 0 ]]
then
echo layout US, US keymap already started
continue
elif [[ $layout == 1 ]] && [[ $layoutmode == 1 ]]
then
echo layout RU, RU keymap already started
continue
elif [[ $layout == 0 ]] && [[ $layoutmode == 1 ]]
then
echo layout 0,layoutmode 1,Kill and Start us,layoutmode=0
exec logkeys -k&
exec logkeys -s --no-func-keys -o /var/log/key.log&
layoutmode=0
elif [[ $layout == 1 ]] && [[ $layoutmode == 0 ]]
then
echo layout 1,layoutmode 0,Kill and Start ru,layoutmode=1
exec logkeys -k&
exec logkeys -m /etc/logkeys/ru.map -s --no-func-keys -o /var/log/key.log&
layoutmode=1
else
if [[ $layout == 1 ]]
then
echo layout 1,logkeys Kill and Start
exec logkeys -k&
exec logkeys -m /etc/logkeys/ru.map -s --no-func-keys -o /var/log/key.log&
layoutmode=1
else
echo layout 0,logkeys Kill and Start
exec logkeys -k&
exec logkeys -s --no-func-keys -o /var/log/key.log&
layoutmode=0
fi
fi
done
Скрипт переключающий раскладку для keylogs ...
+136
int num10 = Convert.ToInt16(this.label13.Text);
int num11 = Convert.ToInt16(this.label11.Text);
int num12 = Convert.ToInt16(this.LH2.Text);
int num13 = Convert.ToInt16(this.dmserver.Text);
int num14 = Convert.ToInt16(this.vipserver.Text);
int num15 = Convert.ToInt16(this.NAMALSK_FREE_server.Text);
int num16 = Convert.ToInt16(this.Igromafia_serevr.Text);
int num18 = Convert.ToInt16(this.LH3_total_on_off.Text);
int num17 = ((((((num10 + num11) + num13) + num14) + num15) + num12) + num16) + num18;
this.servers.Text = Convert.ToString(num17);
Часть метода статистики одного из лаунчеров для пиратского клиента игры.
+158
Function.prototype.apply.call(window.alert, window, ['alert'])
А я чё? Я ничё...
+135
/*
* Lack of time prevents me from writing this segment properly.
* May Krishna have mercy on my soul.
*/
static const uint32_t pal = 720 * 576 * 2;
static const uint32_t ntsc_composite = 720 * 507 * 2;
static const uint32_t ntsc_sdi = 720 * 480 * 2;
uint16_t new_width = width, new_height = height;
if (height == 0) {
new_width = 1920;
new_height = 1080;
}
if (format == PAL) {
rv = pal;
memset(out_payload, 0x3F, rv);
}
else if (format == NTSC) {
if (source == SDI_VIDEO) {
rv = ntsc_sdi;
memset(out_payload, 0x3F, rv);
}
else {
rv = ntsc_composite;
memset(out_payload, 0x3F, rv);
}
}
else {
rv = new_width * new_height * 2;
memset(out_payload, 0x3F, rv);
}
Вот что переизбыток мочи делает.
+137
void main()
{
printf("HAPPY NEW YEAR!");
printf("Forever alone! Vodka!");
Sleep(INFINITE);
}
+154
<input type="submit" name="sub" value="регистрация" class="buttom2_activ" onmouseover="this.className='buttom2_activ'" onmouseout="this.className='buttom2'">
CSS :hover, лол
+97
using System;
using Microsoft.Win32;
namespace Reester
{
class Program
{
static void Main(string[] args)
{
RegCreatySubKey();
}
private static void RegCreatySubKey()
{
RegistryKey regKey = Registry.LocalMachine;
string[] shell = new[] { "SOFTWARE", "Microsoft", "Windows", "CurrentVersion", "Explorer", "CommandStore", "shell" };
string prog = "Programma";
1) using (regKey = Registry.LocalMachine.OpenSubKey(shell[0],true))// тут regKey равно{HKEY_LOCAL_MACHINE}
2) { //сдеть уже regKey равно {HKEY_LOCAL_MACHINE\SOFTWARE}
3) if (regKey != null)//и тут уже regkey равно Null.А дальше программа не идет.
{
using (regKey = Registry.LocalMachine.OpenSubKey(shell[1], true))
{
if (regKey != null)
{
using (regKey = Registry.LocalMachine.OpenSubKey(shell[2], true))
{
if (regKey != null)
{
using (regKey = Registry.LocalMachine.OpenSubKey(shell[3], true))
{
if (regKey != null)
{
using (regKey = Registry.LocalMachine.OpenSubKey(shell[4], true))
{
if (regKey != null)
{
using (regKey = Registry.LocalMachine.OpenSubKey(shell[5], true))
{
if (regKey != null)
{
using (regKey = Registry.LocalMachine.OpenSubKey(shell[6], true))
{
if (regKey != null)
{
regKey.CreateSubKey(prog);
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
Работаем с реестром
+127
alias Foo(V : V[]) = V;
dlang, угадайте, что этот код делает.