- 1
Console.WriteLine(Math.Sin(long.MaxValue));
Нашли или выдавили из себя код, который нельзя назвать нормальным, на который без улыбки не взглянешь? Не торопитесь его удалять или рефакторить, — запостите его на говнокод.ру, посмеёмся вместе!
+122
Console.WriteLine(Math.Sin(long.MaxValue));
Выведет 9,22337203685478E+18
+163
THTTPServer::TDynamicResponse::~TDynamicResponse( void )
{
if(typeid(*this)==typeid(TDynamicResponse))//Борьба с pure virtual function call.
this->flush();
};
Проект поменьше.
+126
uses
crt;
var
chasov,
minutov,
sekundov :byte;
tekushchiy_sekund:word;
begin
clrscr;
write(' chasov ');
read( chasov);
if chasov=9
then
begin
clrscr;
halt;
end;
write(' minutov ');
read( minutov);
write(' sekundov ');
read( sekundov);
clrscr;
for tekushchiy_sekund:=1
to sekundov+60*minutov+3600*chasov do
begin
if keypressed then
if readkey=#27
then halt;
delay(50000);
end;
sound(300);
readkey;
nosound;
end.
УГАДАЙТЕ
+158
if(typeof n!="number"&&(k==Number||!(n instanceof Number))||p.round(n)!=n||n==NaN||n==Infinity)return!1;
http://www.google-analytics.com/ga.js
Инженеры в Гугле знают толк в JavaScript'e.
+167
String ExelCol(int col)
{
static const char c[] = { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z' };
String str;
if( !col ) return str;
while( true )
{
str.Insert( c[(col-1) % sizeof(c)], 1 );
if( ! ((col-1) / sizeof(c)) ) break;
col /= sizeof(c);
}
return str;
}
+151
$(".selection a").click(function(event){
if(this==event.target) {
$(this).toggleClass("m1active")
sel1="0"; sel2="0"; sel3="0"; sel4="0"; sel5="0"; onb="0"; sel6="0"; sel7="0"; sel8="0"; sel9="0"; sel10="0"; sel11="0"; sel12="0";
if($("#sel1").hasClass("m1active")) { sel1="1"; }
if($("#sel2").hasClass("m1active")) { sel2="1"; }
if($("#sel3").hasClass("m1active")) { sel3="1"; }
if($("#sel4").hasClass("m1active")) { sel4="1"; }
if($("#sel5").hasClass("m1active")) { sel5="1"; }
if($("#sel6").hasClass("m1active")) { sel6="1"; }
if($("#sel7").hasClass("m1active")) { sel7="1"; }
if($("#sel8").hasClass("m1active")) { sel8="1"; }
if($("#sel9").hasClass("m1active")) { sel9="1"; }
if($("#sel10").hasClass("m1active")) { sel10="1"; }
if($("#sel11").hasClass("m1active")) { sel11="1"; }
if($("#sel12").hasClass("m1active")) { sel12="1"; }
if($("#onb").hasClass("m1active")) { onb="1"; }
// var txff="eddm.php?sel1=".sel1;
$("#content-ajax").load("eddm.php",{ sel1: sel1, sel2: sel2, sel3: sel3, sel4: sel4, sel5: sel5, sel6: sel6, sel7: sel7, sel8: sel8, sel9: sel9, sel10: sel10, sel11: sel11, sel12: sel12, onb: onb }, function() {
$(".editus tr:nth-child(even)").css('background-color','#ffeedd');
});
Ребята, прошу покритиковать сайт web-school.su и предложить правильные решения
+153
$cif = range(0, 9);
$mal = range('a', 'z');
$bol = range('A', 'Z');
$ob = array_merge($cif, $mal, $bol);
shuffle($ob);
$ar = array_slice($ob,0, 5);
$vivod = implode("", $ar);
Очередной генератор капчи/пароля.
Вдруг кому пригодится ;)
+165
char *ptr1;
char *ptr2;
//...
try {
throw ptr2 - ptr1;
}
catch (int e) {
std::cout << "exception addr dif" << e << std::endl;
}
0
// Since styled-components allows you to use arbitrary input as interpolations, you must be careful to sanitize that input.
// Using user input as styles can lead to any CSS being evaluated in the user's browser that an attacker can place in your application.
// This example shows how bad user input can even lead to API endpoints being called on a user's behalf.
// Oh no! The user has given us a bad URL!
const userInput = '/api/withdraw-funds'
const ArbitraryComponent = styled.div`
background: url(${userInput});
/* More styles here... */
`
в процессе многолетнего пересоздания ruby on rails с нуля фронтендеры умудрились accidentally a bottle of injections
https://styled-components.com/docs/advanced#security
0
<section class="vacansies">
<div class="mk_container">
<h3>На временную работу с высокой зарплатой требуются:</h3>
<div style="width:100%;overflow-x:auto;">
<table border="0">
<thead>
<tr>
<th width="60%">Направление</th>
<!--<th width="55%">Смены</th>-->
<!--<th width="25%">Стоимость 1 смены (24 часа)</th>-->
<!--<th width="40%">Заработная плата (около)</th>-->
</tr>
</thead>
</table>
</div>
</div>
<div class="table-bg-dark">
<div class="mk_container">
<div style="width:100%;overflow-x:auto;">
<table>
<tr>
<td width="60%">Заведующий инфекционным отделением</td>
<!--<td width="25%">по 12 ч. ежедневно с 1 выходным </td>-->
<!--<td width="25%"></td>-->
<!--<td width="40%"></td>-->
</tr>
</table>
</div>
</div>
</div>
<div>
<div class="mk_container">
<div style="width:100%;overflow-x:auto;">
<table>
<tr>
<td width="60%">Заведующий отделением анестезиологии-реаниматологии</td>
<!--<td width="25%">по 12 ч. ежедневно с 1 выходным </td>-->
<!--<td width="25%"></td>-->
<!--<td width="40%"></td>-->
</tr>
</table>
</div>
</div>
</div>
<div class="table-bg-dark">
<div class="mk_container">
<div style="width:100%;overflow-x:auto;">
<table>
<tr>
<td width="60%">Врач (врач-инфекционист)</td>
<!--<td width="25%">сутки через сутки (минимум - 15 смен) </td>-->
<!--<td width="25%">25 000 руб</td>-->
<!--<td width="40%"></td>-->
</tr>
</table>
</div>
</div>
</div>
<div>
<div class="mk_container">
<div style="width:100%;overflow-x:auto;">
<table>
<tr>
<td width="60%">Врач анестезиолог-реаниматолог</td>
<!--<td width="25%">сутки через сутки (минимум - 15 смен) </td>-->
<!--<td width="25%">30 000 руб</td>-->
<!--<td width="40%"></td>-->
</tr>
</table>
</div>
</div>
</div>
<div class="table-bg-dark">
<div class="mk_container">
<div style="width:100%;overflow-x:auto;">
<table>
<tr>
<td width="60%">Медицинская сестра приемного отделения, центрального стерилизационного отделения, палатная, операционная, медицинская сестра-анестезист, медицинский лабораторный техник</td>
<!--<td width="25%">сутки через сутки (минимум - 15 смен) </td>-->
<!--<td width="25%">17 000 руб</td>-->
<!--<td width="40%"></td>-->
</tr>
</table>
</div>
</div>
</div>
<div>
<div class="mk_container">
<div style="width:100%;overflow-x:auto;">
<table>
<tr>
<td width="60%">Санитар</td>
<!--<td width="25%">сутки через сутки (минимум - 15 смен) </td>-->
<!--<td width="25%">8 700 руб</td>-->
<!--<td width="40%"></td>-->
</tr>
</table>
</div>
</div>
</div>
2020-й год. Комментирование данных в HTML-коде.