- 1
- 2
https://thestreetjournal.org/2021/04/chinese-authorities-seize-7221-human-penises-on-cargo-ship-from-nigeria/
7221 камерунских шоколадных зайцев пострадало.
Нашли или выдавили из себя код, который нельзя назвать нормальным, на который без улыбки не взглянешь? Не торопитесь его удалять или рефакторить, — запостите его на говнокод.ру, посмеёмся вместе!
−1
https://thestreetjournal.org/2021/04/chinese-authorities-seize-7221-human-penises-on-cargo-ship-from-nigeria/
7221 камерунских шоколадных зайцев пострадало.
+1
def ForQueryInAddr(query, addr):
global listed, primalsource
print("Searcing in: "+addr)
html = requests.get(addr,proxies=proxies).text
if (query.lower() in html.lower()):
print("==============================================")
print("Query found in: "+addr)
print("==============================================")
if ("<html>" in html or "<head>" in html):
data = PyQuery(html)
links = data('a')
for link in links:
ahref = link.attrib['href']
#print("Found: "+ahref)
if (ahref not in listed):
if (ahref[0].lower() == "h"):
if (primalsource in ahref):
if (ahref[-3:].lower() not in filetypes and ahref[-4:].lower() not in filetypes and ahref[-5:].lower() not in filetypes):
listed.append(ahref)
ForQueryInAddr(query, ahref)
https://github.com/Dev1lroot/OnionSearch/blob/master/main.py
+1
declare @NL table
(ARTICLE_ID int primary key,
M int,
DS datetime,
DD datetime,
RAS money,
REST money,
NWS money,
NWA money,
LD_AMOUNT money,
LD_DATE datetime,
IS_NL bit,
SCC_ID int,
IS_NOT_MARKDOWN bit)
Double Side,Single Density / Double Side, Double Density — это понятно. Но почему datetime?
0
Тест потерянных комментариев
+1
if(object)
if(object->isSolid)
event.isCancelled = true;
;else //<
throw NullEventArgumentException("object == nullptr");
Новый токен в C++ про который знает только 0.6% говнокодеров
0
$dump = preg_replace_callback(
'/
(?<utf8>
[\x09\x0A\x0D\x20-\x7E]
| [\xC2-\xDF][\x80-\xBF]
| \xE0[\xA0-\xBF][\x80-\xBF]
| [\xE1-\xEC\xEE\xEF][\x80-\xBF]{2}
| \xED[\x80-\x9F][\x80-\xBF]
| \xF0[\x90-\xBF][\x80-\xBF]{2}
| [\xF1-\xF3][\x80-\xBF]{3}
| \xF4[\x80-\x8F][\x80-\xBF]{2}
)
|
(?<trash>.)
/xs',
function (array $match) {
if (isset($match['utf8']) && strlen($match['utf8']) > 0) {
$char = $match['utf8'];
if (strlen($char) === 1 && ord($char) < 31) {
return '\x' . bin2hex($char);
} else {
return $char;
}
} else {
return '\x' . bin2hex($match['trash']);
}
},
hex2bin('2cd2d948cfaf4b1097530f7c74fb6737')
);
var_dump($dump);
https://phpclub.ru/talk/threads/bytes-fromhex-в-php.86568/
Матёрые пхпшники переводят «Python» на «PHP».
+1
> 10,000 Domino Computer (4-bit Full Adder) Remade in Unreal Engine 4
https://www.youtube.com/watch?v=4KTfH1Gyn9g
Надо запилить компилятор из Verilog в домино
−1
with open("test.bmp","w+b") as f:
f.write(b'BM')#ID field (42h, 4Dh)
f.write((154).to_bytes(4,byteorder="little"))#154 bytes (122+32) Size of the BMP file
f.write((0).to_bytes(2,byteorder="little"))#Unused
f.write((0).to_bytes(2,byteorder="little"))#Unused
f.write((122).to_bytes(4,byteorder="little"))#122 bytes (14+108) Offset where the pixel array (bitmap data) can be found
f.write((108).to_bytes(4,byteorder="little"))#108 bytes Number of bytes in the DIB header (from this point)
f.write((4).to_bytes(4,byteorder="little"))#4 pixels (left to right order) Width of the bitmap in pixels
f.write((2).to_bytes(4,byteorder="little"))#2 pixels (bottom to top order) Height of the bitmap in pixels
f.write((1).to_bytes(2,byteorder="little"))#1 plane Number of color planes being used
f.write((32).to_bytes(2,byteorder="little"))#32 bits Number of bits per pixel
f.write((3).to_bytes(4,byteorder="little"))#3 BI_BITFIELDS, no pixel array compression used
f.write((32).to_bytes(4,byteorder="little"))#32 bytes Size of the raw bitmap data (including padding)
f.write((2835).to_bytes(4,byteorder="little"))#2835 pixels/metre horizontal Print resolution of the image,
f.write((2835).to_bytes(4,byteorder="little"))#2835 pixels/metre vertical 72 DPI × 39.3701 inches per metre yields 2834.6472
f.write((0).to_bytes(4,byteorder="little"))#0 colors Number of colors in the palette
f.write((0).to_bytes(4,byteorder="little"))#0 important colors 0 means all colors are important
f.write(b'\x00\x00\xFF\x00')#00FF0000 in big-endian Red channel bit mask (valid because BI_BITFIELDS is specified)
f.write(b'\x00\xFF\x00\x00')#0000FF00 in big-endian Green channel bit mask (valid because BI_BITFIELDS is specified)
f.write(b'\xFF\x00\x00\x00')#000000FF in big-endian Blue channel bit mask (valid because BI_BITFIELDS is specified)
f.write(b'\x00\x00\x00\xFF')#FF000000 in big-endian Alpha channel bit mask
f.write(b' niW')#little-endian "Win " LCS_WINDOWS_COLOR_SPACE
f.write((0).to_bytes(36,byteorder="little"))#CIEXYZTRIPLE Color Space endpoints Unused for LCS "Win " or "sRGB"
f.write((0).to_bytes(4,byteorder="little"))#0 Red Gamma Unused for LCS "Win " or "sRGB"
f.write((0).to_bytes(4,byteorder="little"))#0 Green Gamma Unused for LCS "Win " or "sRGB"
f.write((0).to_bytes(4,byteorder="little"))#0 Blue Gamma Unused for LCS "Win " or "sRGB"
f.write(b'\xFF\x00\x00\x7F')#255 0 0 127 Blue (Alpha: 127), Pixel (1,0)
f.write(b'\x00\xFF\x00\x7F')#0 255 0 127 Green (Alpha: 127), Pixel (1,1)
f.write(b'\x00\x00\xFF\x7F')#0 0 255 127 Red (Alpha: 127), Pixel (1,2)
f.write(b'\xFF\xFF\xFF\x7F')#255 255 255 127 White (Alpha: 127), Pixel (1,3)
f.write(b'\xFF\x00\x00\xFF')#255 0 0 255 Blue (Alpha: 255), Pixel (0,0)
f.write(b'\x00\xFF\x00\xFF')#0 255 0 255 Green (Alpha: 255), Pixel (0,1)
f.write(b'\x00\x00\xFF\xFF')#0 0 255 255 Red (Alpha: 255), Pixel (0,2)
f.write(b'\xFF\xFF\xFF\xFF')#255 255 255 255 White (Alpha: 255), Pixel (0,3)
f.close()
https://habr.com/ru/sandbox/125382/
+2
// https://habr.com/ru/company/jugru/blog/469465/
// Инициализация в современном C++
// ...
//Есть примеры ещё более странного поведения этого синтаксиса:
std::string s(48, 'a'); // "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
std::string s{48, 'a'}; // "0a"
> В первой строке создаётся строка из 48 символов «а», а во второй строка «0а». Это происходит потому, что конструктор string принимает на вход initializer_list из символов. 48 является целочисленным значением, поэтому оно преобразуется в символ. В ASCII число 48 — код символа «0». Это очень странно, потому что есть конструктор, принимающий именно такие аргументы, int и char. Но вместо вызова этого конструктора происходит совершенно неочевидное преобразование. В итоге получается код, который чаще всего ведёт себя не так, как мы ожидаем.
КАК? Как можно было столько хуйни наворотить для такой простой вещи, как инициализация переменной? Чем они вообще думают?
Не перестаю удивляться долбоебизму крестостандартизаторов
−2
<?php echo strrev("PHP");
Я "PHP" переверну, и снова "PHP" я получу