- 1
Анальные утехи - населению
Нашли или выдавили из себя код, который нельзя назвать нормальным, на который без улыбки не взглянешь? Не торопитесь его удалять или рефакторить, — запостите его на говнокод.ру, посмеёмся вместе!
−109
Анальные утехи - населению
https://img09.rl0.ru/a089d483411795d19aa2712afde93c8c/c592x444/pbs.twimg.com/media/CIcTC_dWoAAUPnE.jpg
+2
$this->db->query("UPDATE " . DB_PREFIX . "manufacturer SET name = '" . $this->db->escape((string)$data['name']) . "', sort_order = '" . (int)$data['sort_order'] . "' WHERE manufacturer_id = '" . (int)$manufacturer_id . "'");
if (isset($data['image'])) {
$this->db->query("UPDATE " . DB_PREFIX . "manufacturer SET image = '" . $this->db->escape((string)$data['image']) . "' WHERE manufacturer_id = '" . (int)$manufacturer_id . "'");
}
Opencart https://github.com/opencart/opencart/blob/master/upload/admin/model/catalog/manufacturer.php#L35-L39
+3
return query instanceof RegExp ?
(function () {
fn.each(function (id) {
if (id.match(query)) {
seatSet.push(id, this);
}
});
return seatSet;
})() :
(query.length == 1 ?
(function (character) {
//user searches just for a particual character
fn.each(function () {
if (this.char() == character) {
seatSet.push(this.settings.id, this);
}
});
return seatSet;
})(query) :
(function () {
//user runs a more sophisticated query, so let's see if there's a dot
return query.indexOf('.') > -1 ?
(function () {
//there's a dot which separates character and the status
var parts = query.split('.');
fn.each(function (seatId) {
if (this.char() == parts[0] && this.status() == parts[1]) {
seatSet.push(this.settings.id, this);
}
});
return seatSet;
})() :
(function () {
fn.each(function () {
if (this.status() == query) {
seatSet.push(this.settings.id, this);
}
});
return seatSet;
})();
})()
);
https://github.com/mateuszmarkowski/jQuery-Seat-Charts -- отсюда, заставила нелегкая использовать на одном мелком проекте. в пост запилил самый блистательный и ароматный кусок
0
procedure ustbet;
begin
if (200*GCtrl.CurLines>coins.realBalance) then begin
if (150*GCtrl.CurLines>coins.realBalance) then begin
if (100*GCtrl.CurLines>coins.realBalance) then begin
if (50*GCtrl.CurLines>coins.realBalance) then begin
if (40*GCtrl.CurLines>coins.realBalance) then begin
if (30*GCtrl.CurLines>coins.realBalance) then begin
if (20*GCtrl.CurLines>coins.realBalance) then begin
if (15*GCtrl.CurLines>coins.realBalance) then begin
if (10*GCtrl.CurLines>coins.realBalance) then begin
if (5*GCtrl.CurLines>coins.realBalance) then begin
if (4*GCtrl.CurLines>coins.realBalance) then begin
if (3*GCtrl.CurLines>coins.realBalance) then begin
if (2*GCtrl.CurLines>coins.realBalance) then begin
if (1*GCtrl.CurLines>coins.realBalance) then begin
end else Coins.CurBet:=1
end else Coins.CurBet:=2;
end else Coins.CurBet:=3;
end else Coins.CurBet:=4;
end else Coins.CurBet:=5;
end else Coins.CurBet:=10;
end else Coins.CurBet:=15;
end else Coins.CurBet:=20;
end else Coins.CurBet:=30;
end else Coins.CurBet:=40;
end else Coins.CurBet:=50;
end else Coins.CurBet:=100;
end else Coins.CurBet:=150;
end else Coins.CurBet:=200;
coins.AllBet:=Coins.CurBet*gctrl.curlines;
end;
Предположительно, установка текущей ставки в слотовой игре. Но это ещё далеко не самый трэш в этом говнопроекте.
−1
if (typeof _dragon_pic_shift[el]['did'] === typeof undefined || typeof _dragon_pic_shift[el]['pic_id'] === typeof undefined ) {
continue;
}
if (_dragon_pic_shift[el]['did'].indexOf(active_dragon_id) >= 0
&& _dragon_pic_shift[el]['pic_id'].indexOf(active_dragon_lvl) >= 0
&& _dragon_pic_shift[el]['place'] == this_place) {
css_shift_class = _dragon_pic_shift[el]['css_shift'];
break;
}
это какой то новый уровень построения условий в js
−101
Шалом, сученьки. Не ждали?
Пишу на C++/PHP, программирую микроконтроллеры, пью чёрную воду, ебусь в зад, принимаю за гланды
−2
Будем честны - все мои мысли исключительно о моём анусе и о моём члене. Круглосуточно. Я восхищаюсь тем, как за семнадцать лет беспрерывной
дрочки головка члена сохранила всё ту же первозданную коралловую красоту; беспрестанно поигрываю со своей крайней плотью, иногда протягивая
её через всю промежность и засовывая её прямо в свой чистый, узенький анус.
−2
Ваш код никому в хуй не упёрся. Давайте лучше излагать свои эротические фантазии - это будет честнее, чем выкладывать неинтересный даже самому себе код в надежде снискать плюсы.
−2
Ваш анус розовый или светло-коричневый?
0
public List<SpecialtyToCollege> SpecialtyToCollegeForKcp(int collegeID)
{
List<SpecialtyToCollege> result = new List<SpecialtyToCollege>();
var allKcp = _dataContext.fkcKcp.Where(el => el.CollegeId == collegeID && el.Deleted == null && el.Year == 18 && el.Count != 0 && el.OrgId != 1382).ToList();
var lisitems = _dataContext.fkcListItems.ToList();
foreach (fkcKcp t in allKcp)
{
var LevelIds = _dataContext.fkcSpecialties.SingleOrDefault(el => el.id == t.SpecId).LevelID;
string FormTitle = "";
if (t.FormId == 7)
{
FormTitle = _dataContext.fkcListItems.SingleOrDefault(el => el.id == 8).Title;
}
else if (t.FormId == 8)
{
FormTitle = _dataContext.fkcListItems.SingleOrDefault(el => el.id == 7).Title;
}
else
{
FormTitle = _dataContext.fkcListItems.SingleOrDefault(el => el.id == t.FormId).Title;
}
fkcSpecialty spec = _dataContext.fkcSpecialties.SingleOrDefault(el => el.id == t.SpecId);
fkcOrganisation org = _dataContext.fkcOrganisation.SingleOrDefault(el => el.id == t.OrgId);
if (spec != null && org != null)
{
string LevelTitle = lisitems.SingleOrDefault(el => el.id == LevelIds).Title;
int? Region = _dataContext.fkcOrganisation.SingleOrDefault(el => el.id == t.OrgId).SubRegionID;
string OrgRegion = lisitems.SingleOrDefault(el => el.id == Region).Title;
result.Add(new SpecialtyToCollege(
t,
LevelIds,
LevelTitle,
spec.Code,
spec.Title,
org.Title,
org.lCity,
OrgRegion,
FormTitle
)
);
}
}
return result;
}
public List<SpecialtyAndFormKcp> SpecialtyFormKcp()
{
List<SpecialtyAndFormKcp> result = new List<SpecialtyAndFormKcp>();
var allKcp = _dataContext.fkcKcp.Where(el => el.Deleted == null && el.Year == 18 && el.Count != 0 && el.OrgId != 1382).ToList();
var lisitems = _dataContext.fkcListItems.ToList();
foreach (fkcKcp t in allKcp)
{
var LevelIds = _dataContext.fkcSpecialties.SingleOrDefault(el => el.id == t.SpecId).LevelID;
string LevelTitle = "";
string Code = "";
string SpecTitle = "";
string FormTitle = "";
int FormId;
int SpecId;
if (t.FormId == 7)
{
FormTitle = _dataContext.fkcListItems.SingleOrDefault(el => el.id == 8).Title;
}
else if (t.FormId == 8)
{
FormTitle = _dataContext.fkcListItems.SingleOrDefault(el => el.id == 7).Title;
}
else
{
FormTitle = _dataContext.fkcListItems.SingleOrDefault(el => el.id == t.FormId).Title;
}
FormId = t.FormId;
LevelTitle = lisitems.SingleOrDefault(el => el.id == LevelIds).Title;
Code = _dataContext.fkcSpecialties.SingleOrDefault(el => el.id == t.SpecId).Code;
SpecId = _dataContext.fkcSpecialties.SingleOrDefault(el => el.id == t.SpecId).id;
SpecTitle = _dataContext.fkcSpecialties.SingleOrDefault(el => el.id == t.SpecId).Title;
if (result.SingleOrDefault(el => el.SpecId == SpecId && el.FormTitle == FormTitle) == null)
{
result.Add(new SpecialtyAndFormKcp(SpecId, FormId, LevelTitle, Code, SpecTitle, FormTitle));
}
}
return result;
}
public List<KcpSpecOrgCollege> KcpSpecOrgCollege(int specID, int formID)
{
List<KcpSpecOrgCollege> result = new List<KcpSpecOrgCollege>();
var allKcp = _dataContext.fkcKcp
.Where(el => el.SpecId == specID && el.FormId == formID && el.Deleted == null && el.Year == 18 && el.Count != 0 && el.OrgId != 1382).ToList();
var lisitems = _dataContext.fkcListItems.ToList();
foreach (fkcKcp t in allKcp)
{
var SpecID = _dataContext.fkcSpecialties.SingleOrDefault(el => el.id == t.SpecId).id;
var CollegeRegionID = _dataContext.fkcCollege.SingleOrDefault(el => el.id == t.CollegeId).RegionID;
string CollegeTitle = "";