- 1
Каталог тредов
Нашли или выдавили из себя код, который нельзя назвать нормальным, на который без улыбки не взглянешь? Не торопитесь его удалять или рефакторить, — запостите его на говнокод.ру, посмеёмся вместе!
−3
Каталог тредов
0
n = ((n >> 1) & 0x55555555) | ((n << 1) & 0xaaaaaaaa);
n = ((n >> 2) & 0x33333333) | ((n << 2) & 0xcccccccc);
n = ((n >> 4) & 0x0f0f0f0f) | ((n << 4) & 0xf0f0f0f0);
n = ((n >> 8) & 0x00ff00ff) | ((n << 8) & 0xff00ff00);
n = ((n >> 16) & 0x0000ffff) | ((n << 16) & 0xffff0000);
-- C code which reverses the bits in a word.
−1
class Label : System.Windows.Forms.Label {
public Label ( string s , int x , int y , Form parent ) {
this.Location = new Point ( x , y ) ;
this.Text = s ;
this.AutoSize = true ;
this.Font = new Font ( SystemFonts.CaptionFont , FontStyle.Bold ) ;
parent.Controls.Add ( this ) ;
}
}
class Button : System.Windows.Forms.Button {
public Button ( string s , int x , int y , EventHandler f , Form parent ) {
this.Location = new Point ( x , y ) ;
this.Text = s ;
this.Font = new Font ( SystemFonts.CaptionFont , FontStyle.Bold ) ;
this.Click += f ;
parent.Controls.Add ( this ) ;
}
}
static Form form = new Form() ;
static Button[,] a = new Button [ 4 , 4 ] ;
static Random rnd = new Random() ;
static Timer timer = new Timer() ;
static Label time = new Label ( "0" , width + cellspacing * 3 , 4 * ( width + cellspacing ) + cellspacing * 2 , form ) ;
static Label nclicks = new Label ( "0" , 3 * width + cellspacing * 5 , 4 * ( width + cellspacing ) + cellspacing * 2 , form ) ;
Нашел архив своего старого говна :)
0
ButtonCustom {
visible: !cyrcleProgress.visible ? true : false
...
}
−1
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
char* line;
char* start;
char* dop;
start=(char*)malloc(10000);
dop=(char*)malloc(10000);
start[0]='e';
start[1]='c';
start[2]='h';
start[3]='o';
start[4]=' ';
int i=5;
dop[0]=' ';
dop[1]='|';
dop[2]=' ';
dop[3]=' ';
dop[4]='b';
dop[5]='c';
dop[6]=' ';
dop[7]='-';
dop[8]='l';
line=(char*)malloc(10000);
line=argv[1];
while (*line) {*(start+i)=*line;line++;i++;};
while (*dop){*(start+i)=*dop;dop++;i++;};
system(start);
}
Калькулятор
0
inside:=false;
tag:=uppercase(tagpure);
spacep:=pos(' ',tag);
if spacep=0 then tagname:=tag else tagname:=copy(tag,1,spacep-1);
if (not inscript) and (tagname='A') then
begin
ParseTag(tagpure);
//если флажок Ссылки или флажок Якоря включен
if checkBox9.Checked or checkBox10.Checked then
begin
linktext:=Lg.GR(24);
linktag:='HREF';
link2text:=Lg.GR(25);
link2tag:='NAME';
needlink:=true;
needdbr:=true;
end;
end;
Вернулся в 2007 1997.
s: h/465709
0
#define LOC(type, var) type var = (type) DPOP();
#define CELL(var) LOC(const cell, var)
#define UCELL(var) LOC(const ucell, var)
#define ACELL(var) LOC(cell * const, var)
#define ADCELL(var) LOC(dcell * const, var)
#define ACHAR(var) LOC(char * const, var)
#define STR(var) const string var = {(ucell)DPOP(), (character*)DPOP()}
#define SWAP(a, b) (a ^= b ^= a ^= b)
#if BYTEORDER == BYTEORDER_LE
#define DCELL(var) dcell var = (*((dcell*) dsp)++)
#define UDCELL(var) udcell var = (*((udcell*) dsp)++)
#else
#define DCELL(var) \
SWAP(dsp[0], dsp[1]); \
dcell var = (*((dcell*) dsp)++)
#define UDCELL(var) \
SWAP(dsp[0], dsp[1]); \
udcell var = (*((udcell*) dsp)++)
#endif
#define BOOL(value) ((value) ? -1 : 0)
#define DO(begin, end, stmt) do { \
cell i = begin; \
cell end_ = end; \
for (; i < end_; ++i) { \
stmt; \
} \
} while (0)
−1
https://www.youtube.com/watch?v=lfdAwl3-X_c
−1
Оцени свою неприязнь к коллеге по шкале от нуля до
«отсматриваю в Аутлуке каждое его совещание и за две минуты до начала неистово пропёрдываю соответствующую переговорку».
https://twitter.com/feels_like_1984/status/1132221565821759488
Друзья, довайте обсудим кто какие групваре использует
Exchange? Сервисы Google? Что-то еще?
0
ВЫБРАТЬ РАЗЛИЧНЫЕ
ВЫРАЗИТЬ(Работы.Ссылка КАК Документ.ЗаказНаряд) КАК СсылкаЗН,
ДЦ.Ссылка КАК ДилерскийЦентр
ИЗ
Документ.ЗаказНаряд.Работы КАК Работы
ЛЕВОЕ СОЕДИНЕНИЕ Справочник.CRM_ДилерскиеЦентры КАК ДЦ
ПО (ЛОЖЬ)
ГДЕ
Работы.Ссылка.ДатаЗакрытия >= &ДатаНачала
И Работы.Ссылка.ДатаЗакрытия < &ДатаОкончания
И ДЦ.Ссылка.ПометкаУдаления = ЛОЖЬ
;
Язык запросов 1С. При таком соединение запрос запрос всегда будет пустым.