- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
"ВЫБРАТЬ
| Вопросы.Ссылка,
| Вопросы.Вопрос,
| Вопросы1.Код
|ИЗ
| Справочник.Вопросы КАК Вопросы
| ЛЕВОЕ СОЕДИНЕНИЕ Справочник.Вопросы КАК Вопросы1
| ПО Вопросы.Ссылка = Вопросы1.Ссылка"
Нашли или выдавили из себя код, который нельзя назвать нормальным, на который без улыбки не взглянешь? Не торопитесь его удалять или рефакторить, — запостите его на говнокод.ру, посмеёмся вместе!
−102
"ВЫБРАТЬ
| Вопросы.Ссылка,
| Вопросы.Вопрос,
| Вопросы1.Код
|ИЗ
| Справочник.Вопросы КАК Вопросы
| ЛЕВОЕ СОЕДИНЕНИЕ Справочник.Вопросы КАК Вопросы1
| ПО Вопросы.Ссылка = Вопросы1.Ссылка"
Запросец из обработки, которую толкают (и её даже покупают) за 2к
+167
var pic_jpg = /(\.jpg)$/ig;
var pic_jpeg = /(\.jpeg)$/ig;
var pic_png = /(\.png)$/ig;
var pic_bmp = /(\.bmp)$/ig;
var a = $("a");
$.each(a, function (i, val) {
var src = $(val).attr("href");
if (src !== undefined) {
if (src.match(pic_jpg)) {
AppendImage(i, src, 'a');
}
if (src.match(pic_jpeg)) {
AppendImage(i, src, 'a');
}
if (src.match(pic_png)) {
AppendImage(i, src, 'a');
}
if (src.match(pic_bmp)) {
AppendImage(i, src, 'a');
}
}
});
−35
#ifndef _PERSISTENT_COLLECTION_CPP
#define _PERSISTENT_COLLECTION_CPP
////// BASE_CLASS
#include "Persistent/ObjectP.cpp"
////// Support
#include "Persistent/UInt.cpp"
////// Persistent Level 1
#include "Persistent/StringP.cpp"
#include "Persistent/UIntP.cpp"
#include "Persistent/TimeP.cpp"
#include "Persistent/StringArrayP.cpp"
#include "Persistent/BoolP.cpp"
#include "Persistent/Int64P.cpp"
#include "Persistent/BinaryP.cpp"
////// Persistent Level 2
#include "Persistent/MapStringToObjectPPtr.cpp"
#include "Persistent/ObjectPArrayPtr.cpp"
#include "Persistent/ObjectPListPtr.cpp"
////// Persistent Level 3
#include "Persistent/PropertySet.cpp"
#endif
Лолшто? Include cpp? 0_o
+158
<span class="header-search-icon" onclick="document.forms['search-form'].submit();"></span>
Выдержка из стандартного шаблона компонента 1С-Битрикс.
и что помешало поставить <button type=submit>?
+126
http://piratepad.net/OOYgV8E8HL
возможно, не все увидели... высказывайтесь, плиз
+72
Long count = ((Long) q.getSingleResult()).longValue();
int pages = ((Long) (count / rowsPerPage)).intValue();
конвертировали-конвертировали, и выконвертировали
+127
if(!menu_font||!oboima_text||!info||!infoR||!infoD||!infoBR||
!oblaka1_tex||!fon1_tex||!fon2_tex||!fon3_tex||
!galka_tex||!galka_menu_tex||!strelka_menu_tex||!strelka_menu_D_tex||
!znak_myasnik_tex||!znak_strelok_tex||!znak_razrushitel_tex||!znak_tehnik_tex||
!status_opit_tex||!status_udar_tex||!status_status_tex||!opit_okno_vibora_tex||
!okno_lvl_progress_tex||!okno_lvl_progress_red_tex||!okno_lvl_progress_green_tex||!okno_lvl_polzunok_tex||
!snd||!ak_reload1||!ak_reload2||!pm_fire||!pm_reload1||!pm_reload2||
!pp19_fire||!pp19_reload1||!pp19_reload2||!fn_f2000_fire||!tt_fire||
!mac_fire||!mac_reload1||!mac_reload2||!webley_fire||!webley_reload1||!webley_reload2||!milkor_fire||
!fn_five_seven_fire||!winch_fire||!drob_reload1||!drob_pompa||!vzriv_grena1||
!rocket_fire||!rocket2_fire||!rocket_polet||!rocket2_polet||
!myaso_upalo1||!myaso_upalo2||!myaso_upalo3||!myaso_upalo4||!myaso_upalo5||!myaso_upalo6||!myaso_upalo7||
!myaso_upalo8||
!myaso_razriv_user1||!myaso_razriv_user2||
!menu_sound||!menu_choose||
!shot1||!headshot1||!headshot2||!headshot3||!headshot4||!headshot5||!headshot6||!headshot7||!headshot8||
!ssik1||!ssik2||!ssik3|!ssik4||
!ptenec_death1||
!ak||!ak2||!ak_upgraded||!ak2_upgraded||!w_pm_tex||!w_pp19_vityaz_tex||!w_fn_f2000_tex||!w_fn_f2000_upgraded_tex||
!w_tt_tex||!w_rpk_tex||!w_mac_tex||
!w_winchester_tex||!w_winchester_anime_tex||!w_rpk47_tex||!w_glok_tex||!w_glok2_tex||!w_rgd5_tex||!w_milkor_tex||
!w_panzer_tex||!w_panzer_out_tex||!w_webley_tex||!w_fn_five_seven_tex||!w_granata_podstvol_tex||!w_granata_panzer_tex||
!w_qlz87_pushka_tex||!w_qlz87_trenoga_tex||!katana_udar_sleva_tex||
!blood1_tex||!blood2_tex||!blood3_tex||!blood_shot1_tex||
!blood_plyam1_tex||!blood_plyam2_tex||!blood_plyam3_tex||!blood_luzha1_tex||
!blood_myaso1_tex||!blood_myaso2_tex||!blood_myaso3_tex||!blood_myaso4_tex||!blood_myaso5_tex||
!blood_zayac_noga1_tex||!blood_zayac_noga2_tex||!blood_zayac_noga3_tex||!blood_zayac_noga4_tex||
!blood_zayac_rebra1_tex||!blood_zayac_rebra2_tex||
!blood_vzriv1_a_tex||!blood_vzriv1_b_tex||!blood_vzriv1_c_tex||!blood_vzriv1_d_tex||!blood_vzriv1_e_tex||
!blood_vzriv1_e2_tex||
!player1_myasnik_gogranata_ruka1_tex||!player1_myasnik_gogranata_ruka2_tex||
!player1_strelok_gogranata_ruka1_tex||!player1_strelok_gogranata_ruka2_tex||
!player1_razrushitel_gogranata_ruka1_tex||!player1_razrushitel_gogranata_ruka2_tex||
!player1_tehnik_gogranata_ruka1_tex||!player1_tehnik_gogranata_ruka2_tex||
!player1_myasnik_tex||!player1_strelok_tex||!player1_razrushitel_tex||!player1_tehnik_tex||
!player1_myasnik_ruka1_udar_sleva_tex||!player1_strelok_ruka1_udar_sleva_tex||
!player1_razrushitel_ruka1_udar_sleva_tex||!player1_tehnik_ruka1_udar_sleva_tex||
!player1_myasnik_ruka1_pistol_tex||!player1_strelok_ruka1_pistol_tex||
!player1_razrushitel_ruka1_pistol_tex||!player1_tehnik_ruka1_pistol_tex||
!player1_myasnik_ruka1_vintovka_tex||!player1_strelok_ruka1_vintovka_tex||
!player1_razrushitel_ruka1_vintovka_tex||!player1_tehnik_ruka1_vintovka_tex||
!player1_myasnik_ruka1_winch_tex||!player1_strelok_ruka1_winch_tex||
!player1_razrushitel_ruka1_winch_tex||!player1_tehnik_ruka1_winch_tex||
!player2_strelok_tex||!player2_gogranata_ruka1_tex||!player2_gogranata_ruka2_tex||
!player2_strelok_ruka1_udar_sleva_tex||!player2_strelok_ruka1_vintovka_tex||!player2_strelok_ruka1_pistol_tex||
!zayac_go_tex||!zayac_uhi_k_tex||!zayac_uhi_s_tex||!zayac_uhi_tex||
!zayac_boshka_tex||!zayac_boshka_bezuh_tex||
!volk_go_tex||!volk_trup1_a_tex||!volk_trup1_b_tex||!volk_trup1_c_tex||
!medved_go_tex||!medved_boshka1_tex||
!medved_trup1_a_tex||!medved_trup1_b_tex||!medved_trup1_c_tex||!medved_trup1_d_tex||!medved_trup1_e_tex||!medved_trup1_f_tex||
!medved_trup1_a_bezboshki_tex||!medved_trup1_b_bezboshki_tex||!medved_trup1_c_bezboshki_tex||
!medved_trup1_d_bezboshki_tex||!medved_trup1_e_bezboshki_tex||!medved_trup1_f_bezboshki_tex||
!ptenec_go_tex||!ptenec_wait_tex||!ptenec_vpolete_tex||!ptenec_vpolete_reverse_tex||!ptenec_trup1_tex||
!ptenec_boshka_vzriv1_a_tex||!ptenec_boshka_vzriv1_b_tex||!ptenec_boshka_vzriv1_c_tex||
!ptenec_boshka_vzriv1_d_tex||!ptenec_boshka_vzriv1_e_tex||
!RPG_healer_tex||!RPG_illusionist_tex||!RPG_teleporter_tex||
!bonus_shilo_tex||!bonus_this_tex||
!bonus_shilo_text_tex||!bonus_this_text_tex||!bonus_daun_text_tex||!bonus_ulitka_text_tex||!bonus_umnik_text_tex||
!bonus_shilo_status_tex||!bonus_daun_status_tex||!bonus_ulitka_status_tex||!bonus_umnik_status_tex||
!zayac_trup1_a_tex||!zayac_trup1_b_tex||!zayac_trup1_c_tex||!zayac_trup1_d_tex||
!zayac_trup1_a_bezuh_tex||!zayac_trup1_b_bezuh_tex||!zayac_trup1_c_bezuh_tex||!zayac_trup1_d_bezuh_tex||
!zayac_trup1_a_bezboshki_tex||!zayac_trup1_b_bezboshki_tex||!zayac_trup1_c_bezboshki_tex||
!zayac_trup1_d_bezboshki_tex||
!zayac_go_bezuh_tex||!ogon1||
!blood_ssit_tex||!RPG_healing_tex||!vzriv_grena_tex||!vzriv_ogon_grena_tex||
!alkash1_tex||!derevo1_tex||!penek1_tex||
!znak_polputi_tex||!polosa_finish_tex)
Название проекта: ЩИ!!!Симулятор жестокости
http://www.gamedev.ru/projects/forum/?id=160897
Уверен, название выбиралось не только исходя из геймплея, но и из кода игры.
+155
function createLinks(abys_id)
{
//get current year
var cur_year = parseInt($("#abys_id"+abys_id).children("span").text());
/*
* create links hrefs
*/
var ml_block = $("#ab_month_grid > .abmg_line");
ml_block.each(function(num,elem)
{
var month;
var anchors = elem.getElementsByTagName("a");
for(var n=0;n<anchors.length;n++)
{
month = (n==0)?12:(n==1)?3:(n==2)?6:9;
(num == 1)
?
(month == 12)
?
month = 1
:
month++
:
(num == 2)
?
(month == 12)
?
month = 2
:
month+=2
:
"--empty--"
;
anchors[n].href = "http://some_site/archive/news/all/"+cur_year+"/"+month+"/";
}
});
}
Вот люблю я инлайновые условия и все тут=)
Это callback для заполнения href у ссылок календаря архива новостей.
+72
if (style == null || (style != null && !style.isEnabled())) {
throw new IllegalStateException();
}
if (style != null) {
do something . . .
}
−30
BOOL CIniFile::LoadIniFile()
{
CString csBuff;
CFile oIniFile;
if (oIniFile.Open(csIniFileName, CFile::modeRead))
{
ULONGLONG lenReal = oIniFile.GetLength();
DWORD dwLen = (DWORD) lenReal;
if (lenReal > UINT_MAX)
{
dwLen = UINT_MAX;
TRACE("ERROR: CIniFile::LoadIniFile(); CFIle::GetLength() > UINT_MAX\n;");
ASSERT(0);
}
if (!dwLen)
return FALSE;
boost::scoped_array <char> cBuffer(new char[dwLen]);
oIniFile.Read(cBuffer.get(), dwLen);
LoadIniFromBuffer(cBuffer.get(), dwLen);
oIniFile.Close();
if (GetCountRecords())
return TRUE;
}
return FALSE;
}
boost::scoped_array... nuff said =(