- 1
- 2
- 3
int min = 100000;
for(int i=0; i<N; (i++)+1 )
if(A[ i ] < min) min := a{ i ];
Нашли или выдавили из себя код, который нельзя назвать нормальным, на который без улыбки не взглянешь? Не торопитесь его удалять или рефакторить, — запостите его на говнокод.ру, посмеёмся вместе!
+145
int min = 100000;
for(int i=0; i<N; (i++)+1 )
if(A[ i ] < min) min := a{ i ];
+158
while ($iii<$_POST["nnn"])
{
$Klass = takeYearKlass($Klass,$_POST["vipl_".$iii."ygod"]);
print ("<br>За ".$iii."-й год было ".$_POST["vipl_".$iii."ygod"]." выплат и класс стал ".$Klass);
$iii++;
}
print ("<br><b>Итоговый класс:</b> $Klass");
В добавок к чудному явасрипту (http://govnokod.ru/4929) мне достался и сам код на php....
В прочем там такого добра хватает))) можно и html, и css выложить)))
Как говориться, буду писать еще))
+133
#inputtext {opacity:0};
Скрытие поля ввода. Цели оставить пространство не было.
display:none - не по-джедайски!
+266
code segment para
assume cs:code,ds:code
org 0100h
start:
mov dx,offset years_old
mov cx,dx
fuck:
mov dx,offset message ;назойливая мысль
mov ah,09h ;отпечаток на жизни
int 21h ;вызвать желание
dec cx
loop fuck
mov ax,4c00h ;згинуть на**й
int 21h
message db 'Hociu trahnutsya s etim novenykim simpotich'nym parnem!',13,10,'$'
years_old dw 67
end start
взломал ломиком, черепную коробку одной обычной женской особи..)) добравшись до головного процессора - вот что удалось обнаружить )) ... прошивку бл***и :) хорошо что в эту прошивку не встроен ескплой эксплуатирующий уязвимость RPC MS03-026 (передача через назойливый поток информации передаваемый свистулькой посредством насвистывания...(позже техника была названа НЛП - нейро-лингвистическое программирование) :)
+145
if (OnCreated != null)
{foreach (EventHandler<CreatedEventArgs> handler in OnCreated.GetInvocationList())
{
handler(this, args);
}
}
+161
$(document).ready(function () {
$("#GridView1 INPUT[type='checkbox']").click(
function () {
var colIndex = $(this).parent().parent().prevAll().length;
$('.' + $(this).parent().attr("class") + ' input[type="checkbox"]').each(function () {
if ($(this).parent().parent().prevAll().length == colIndex)
$(this).attr('checked', false);
});
$(this).attr('checked', true);
});
});
взаимоисключающие чекбоксы в колонках таблицы
+163
function GetPath(path){
return path;
}
Коротко и ясно! Единственный метод в модуле.
+84
http://svn.codehaus.org/groovy/trunk/groovy/groovy-core/src/main/org/codehaus/groovy/runtime/ArrayUtil.java
/*
* Copyright 2003-2009 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.codehaus.groovy.runtime;
public class ArrayUtil {
private static final Object[] EMPTY = new Object[0]
;
public static Object[] createArray() {
return EMPTY;
}
public static Object[] createArray(Object arg0) {
return new Object[]{
arg0};
}
public static Object[] createArray(Object arg0, Object arg1) {
return new Object[]{
arg0, arg1};
}
public static Object[] createArray(Object arg0, Object arg1, Object arg2) {
return new Object[]{
arg0, arg1, arg2};
}
public static Object[] createArray(Object arg0, Object arg1, Object arg2, Object arg3) {
return new Object[]{
arg0, arg1, arg2, arg3};
}
public static Object[] createArray(Object arg0, Object arg1, Object arg2, Object arg3, Object arg4) {
return new Object[]{
arg0, arg1, arg2, arg3, arg4};
}
public static Object[] createArray(Object arg0, Object arg1, Object arg2, Object arg3, Object arg4, Object arg5) {
return new Object[]{
arg0, arg1, arg2, arg3, arg4, arg5};
}
public static Object[] createArray(Object arg0, Object arg1, Object arg2, Object arg3, Object arg4, Object arg5, Object arg6) {
return new Object[]{
arg0, arg1, arg2, arg3, arg4, arg5, arg6};
}
............
+78
public static String toWritten(int i) {
return Integer.parseInt(String.valueOf(i).substring(String.valueOf(i).length()-1)) > 4 ?
"объектов" :
Integer.parseInt(String.valueOf(i).substring(String.valueOf(i).length()-1)) > 1 ?
"объекта" :
Integer.parseInt(String.valueOf(i).substring(String.valueOf(i).length()-1)) == 1 ?
"объект":
"объектов";
}
функция для вывода подобного:
1 объект
156 оъектов
итд.
+158
function checkboxHandler(e) {
var el = e.target;
if(el.className == "checked") {
el.className = "unchecked";
showThumbs(el, false);
}
else {
el.className = "checked";
showThumbs(el, true);
}
}
function showThumbs(el, stat) {
if(stat)
addThumbs(el.id);
else
removeThumbs(el.id);
}