- 1
- 2
- 3
- 4
function reclstr($txt1) {//утилизировать текст
$util = sha1( $txt1 . rand(0,54424456));
return $util;
}
Нашли или выдавили из себя код, который нельзя назвать нормальным, на который без улыбки не взглянешь? Не торопитесь его удалять или рефакторить, — запостите его на говнокод.ру, посмеёмся вместе!
+5
function reclstr($txt1) {//утилизировать текст
$util = sha1( $txt1 . rand(0,54424456));
return $util;
}
−1
Вас заметили
капча pa9e
Part of the challenge of programming (and for some people, the reason why programming is fun in the first place) is looking at the building blocks provided to you and deciding how to assemble them to build something new. After all, if everything you wanted a program to do already existed ready-made, it wouldn't be called programming any more. It would be called shopping.
>> Is there an API or a quick way to find out which window the mouse is in?
I replied, "The LEGO Group does not make a piece for every possible object. Sometimes you just have to take two LEGO blocks and click them together. Here are some interesting blocks: GetCursorPos, WindowFromPoint."
>> Thanks for your reply. But WindowFromPoint gives me the window of the object at the location of the cursor. But I'm looking for the top level window containing the cursor.
Fine, then use a different block.
I wonder how it is these people manage to write programs at all. I get the impression they write code by asking a million tiny questions and cutting and pasting together all the replies.
No wait, pasting together the replies counts as snapping blocks together. Maybe they just ask for completed programs.
0
let randomHexColor = (g = () => (a => (a < 16 ? '0' : '') + a.toString(16))(~~(Math.random() * 255)))() + g() + g();
0
Ворециометр зашкаливает
Охладите трахание.
Как будто вернулся в 2015, когда не понимал о чём тут пишут.
−1
сука блядь ебучий фрорнтенд блядь гори сука в аду, JS, HTML, CSS и прочая хуета, это ебаное исчадь ада
еuо создали настоящие мрази, ебучие серийные программисты, сколько жизней уже отобрала эта хуйня?
ПРЕДСТАВЬТЕ ПРОСТО СКОЛЬКО ЛЮДЕЙ В СУММЕ ПОТРАТИЛИ ВРЕМЕНИ НА ОТЛАДКУ ВСЕЙ ЭТО КРИВОЙ ХУЕТЫ
КОТОРАЯ БЫЛА СОЗДАНА C ОДНОЙ ЕБАНОЙ ЦЕЛЬЮ -- ДЛЯ ТОГО ЧТОБЫ УБИВАТЬ ЛЮДЕЙ, ДЕТЕЙ НА ДОНБАССЕ СУКА, ГИБНУТ!!!
МОЙ АНУС МИРОТОЧИК ПЫЛЬЮ ГАЛАКТИК ДОСТИГНУВШИХ КОЛЛАПСА
0
public static long NextTimestamp()
{
if (initTimestamp == null)
{
lock (syncRoot)
{
if (initTimestamp == null)
{
initTimestamp = false;
var sessionProvider = Locator.GetServiceNotNull<ISessionProvider>();
TimestampService.GetTimestamp();
sessionProvider.CloseSession("");
initTimestamp = true;
}
}
}
return initTimestamp.Value ? TimestampService.GetTimestamp() : 0;
}
Нельзя просто взять и вызвать TimestampService.GetTimestamp() - StackOverflowException получишь. Вот как надо!
+1
private static string GetServerHostFromUrl(string url)
{
char[] delimiterChars = { '/', ':' };
var urlParser = url.Split(delimiterChars);
if (urlParser[0] == "http" || urlParser[0] == "https")
return urlParser[3];
else
return string.Empty;
}
Когда ты умеешь решать все поставленные задачи
−102
Тест.
+1
<?php
function php2js ($var) {
if (is_array($var)) {
$res = "[";
$array = array();
foreach ($var as $a_var) {
$array[] = php2js($a_var);
}
//return "[" . join(",", $array) . "]";
return "" . join(",", $array) . "";
}
elseif (is_bool($var)) {
return $var ? "true" : "false";
}
elseif (is_int($var) || is_integer($var) || is_double($var) || is_float($var)) {
return $var;
}
elseif (is_string($var)) {
//return "\"" . addslashes(stripslashes($var)) . "\"";
return "" . addslashes(stripslashes($var)) . "";
}
return FALSE;
}
+3
namespace
{
struct list {
type pole1;
list *pole2;
}
stack;
}
Пример описания стека