- 1
- 2
Китайский код:
https://govnokod.ru/26076
Нашли или выдавили из себя код, который нельзя назвать нормальным, на который без улыбки не взглянешь? Не торопитесь его удалять или рефакторить, — запостите его на говнокод.ру, посмеёмся вместе!
+1
Китайский код:
https://govnokod.ru/26076
+1
https://www.youtube.com/watch?v=7OCecU7hwbQ
https://www.youtube.com/watch?v=TDWOifwGpKY
+1
> 10,000 Domino Computer (4-bit Full Adder) Remade in Unreal Engine 4
https://www.youtube.com/watch?v=4KTfH1Gyn9g
Надо запилить компилятор из Verilog в домино
+1
setTimeout(function(){
document.getElementById('message').innerHTML = 'Это окно браузера закончило свою работу и может быть закрыто.' +
'<br>' +
'<button onclick="window.close()">Закрыть окно</button>';
},3000);
function objectValues(obj) {
var res = [];
for (var i = 0; i < obj.length; i++) {
if (obj.hasOwnProperty(i)) {
res.push(obj[i]);
}
}
return res;
}
sendMessage = function () {
var args = objectValues(arguments),
func = args.splice(1,1);
if (typeof window.postMessage !== 'undefined') {
window.opener.postMessage({
mine: 'uLogin',
func: func,
args: args
}, '*');
} else {
sendMessage = function () {
window.opener[func].apply(null, args);
};
}
};
if(/fill.php/.test("'ffdfdssdffsdfewfewfewfwf','redirect','https://dfssfd/login.php'")) {
try{
if(typeof window.opener.fill !== 'undefined') {
window.opener.fill('869becd1b998ec0add011915c7f4022e','redirect','https://asdasd/login.php');
} else {
sendMessage('869becd1b998ec0add011915c7f4022e','redirect','https://biglike.org/login.php');
}
} catch(e){
sendMessage('869becd1b998ec0add011915c7f4022e','redirect','https://asdas/login.php');
}
} else {
sendMessage('869becd1b998ec0add011915c7f4022e','redirect','https://sfdsfd/login.php');
}
window.close();
ulogin которым пользуются миллионы
+1
h1{color: #b60000; font-size: <?php if( $dop_for_evm==1 ){echo '3.5vw;';} else {echo '30px;';}?> line-height: 1.1;padding-right: 5%; padding-left: 5%; text-align: center;}
h2{font-size:<?php if( $dop_for_evm==1 ){echo '2.8vw;';} else {echo '30px;';}?>padding-right: 5%; padding-left: 5%; text-align: center;}
.h2{font-size: <?php if( $dop_for_evm==1 ){echo '2.2vw;';} else {echo '28px;';}?>padding-right: 5%; padding-left: 5%; text-align: center;}
h3{font-size: <?php if( $dop_for_evm==1 ){echo '2.6vw;';} else {echo '29px;';}?>padding-right: 5%; padding-left: 5%; text-align: center;}
h4{font-size: <?php if( $dop_for_evm==1 ){echo '2.6vw;';} else {echo '29px;';}?>padding-right: 5%; padding-left: 5%; text-align: center;}
h5{font-size: <?php if( $dop_for_evm==1 ){echo '2.6vw;';} else {echo '29px;';}?>padding-right: 5%; padding-left: 5%; text-align: center;}
h6{font-size: <?php if( $dop_for_evm==1 ){echo '2.6vw;';} else {echo '29px;';}?>padding-right: 5%; padding-left: 5%; text-align: center;}
+1
<?php
$img = imagecreatefromgif('http://web.archive.org/web/20070419044913im_/upyachka.ru/img/kot/16.gif');
$w = imagesx($img);
$h = imagesy($img);
$symbols = array(' ', '▀', '▄', '█');
for($y = 0; $y < floor($w/2); ++$y) {
for($x = 0; $x < $w; ++$x) {
$color1 = imagecolorat($img, $x, 2*$y);
$color2 = imagecolorat($img, $x, 2*$y+1);
$bit1 = intval(($color1 & 0xff) > 0x80);
$bit2 = intval(($color2 & 0xff) > 0x80);
echo $symbols[$bit1 + ($bit2 << 1)];
}
echo PHP_EOL;
}
+1
Segmentation fault
Я против «неинформативных ошибок».
+1
using System;
using System.Drawing;
using System.Windows.Forms;
class HTMLCheapRedactor
{
[STAThread]
static void Main(string[] args)
{
Application.EnableVisualStyles();
Form a = new Form() { Text = "HTML Doc" },
b = new Form() { Text = "HTML Code" };
var web = new WebBrowser() { Dock = DockStyle.Fill };
var txt = new TextBox()
{
Multiline = true,
Dock = DockStyle.Fill,
ScrollBars = ScrollBars.Both,
Font = new Font("Consolas", 12f),
WordWrap = false,
AcceptsTab = true
};
web.DataBindings.Add(new Binding("DocumentText", txt, "Text"));
a.Controls.Add(web);
b.Controls.Add(txt);
b.Show();
b.AddOwnedForm(a);
txt.Text = @"<html>
<head>
<title>Hello World!</title>
</head>
<body>
Hello World!
</body>
</html>";
Application.Run(a);
}
}
+1
private Map<Iterable<ItemStack>, Predicate<ItemStack>> getSubInventories(Map<Iterable<ItemStack>, Predicate<ItemStack>> subInventories, EntityPlayer player) {
InventoryPlayer inv = player.inventory;
ItemStack heldItem = inv.getCurrentItem();
int wireless = tile.getNetwork().getSetting(NetworkSettings.NETWORK_WIRELESS);
if((wireless >> 1 & 1) == 1) {
subInventories.put(Lists.newArrayList(heldItem), NOT_EMPTY);
}
if((wireless >> 2 & 1) == 1) {
subInventories.put(inv.offHandInventory, NOT_EMPTY);
}
if((wireless >> 3 & 1) == 1) {
subInventories.put(inv.mainInventory.subList(0, 9), stack -> !stack.isEmpty() && (heldItem.isEmpty() || heldItem != stack));
}
if((wireless >> 4 & 1) == 1) {
subInventories.put(inv.armorInventory, NOT_EMPTY);
}
if((wireless >> 5 & 1) == 1) {
if(FluxNetworks.proxy.baublesLoaded) {
if(player.hasCapability(BaublesCapabilities.CAPABILITY_BAUBLES, null)){
IItemHandler handler = player.getCapability(BaublesCapabilities.CAPABILITY_BAUBLES, null);
subInventories.put(() -> new ItemHandlerIterator(handler), NOT_EMPTY);
}
}
}
return subInventories;
}
+1
.server-config
.component
.title(translate) protsessor
.value(ng-if="!server.custom")
| {{ server.cpu || '—' }}
.value(ng-if="server.custom")
span(ng-if="server.custom.cpu && server.custom.cpu.length && server.custom.cpu[0].count > 1")
| {{ server.custom.cpu[0].count + ' x ' }}
span(ng-if="server.custom.cpu && server.custom.cpu.length")
| {{ server.custom.cpu[0].name }}
span(ng-if="!server.custom.cpu || !server.custom.cpu.length")
| —
.component
.title(translate) pamyat
.value(ng-if="!server.custom")
| {{ server.memory || '—' }}
.value(ng-if="server.custom")
span(ng-if="server.custom.ram && server.custom.ram.length")
span(ng-if="server.custom.ram[0].count > 1")
| {{ +server.custom.ram[0].name.split(' ')[0].replace('GB', '') * server.custom.ram[0].count + ' GB — ' }}
span(ng-if="server.custom.ram[0].count > 1")
| {{ server.custom.ram[0].count + ' x ' }}
span
| {{ server.custom.ram[0].name }}
span(ng-if="!server.custom.ram || !server.custom.ram.length")
| —
.component
.title(translate) disk
.value(ng-if="!server.custom")
| {{ server.hdd || '—' }}
.value(ng-if="server.custom.disk && server.custom.disk.length")
.line(ng-repeat="hdd in server.custom.disk")
span(ng-if="hdd.count > 1") {{ hdd.count + ' x ' }}
span {{ hdd.name }}
.value(ng-if="server.custom && (!server.custom.disk || !server.custom.disk.length)")
| —
.component(ng-if="server.custom")
.title(translate) Platform
.value(ng-if="server.custom.case && server.custom.case.length")
| {{ server.custom.case[0].name }}
.value(ng-if="server.custom && (!server.custom.case || !server.custom.case.length)")
| —
.component(ng-if="server.custom")
.title(translate) Motherboard
.value(ng-if="server.custom.motherboard && server.custom.motherboard.length")
| {{ server.custom.motherboard[0].name }}
.value(ng-if="server.custom && (!server.custom.motherboard || !server.custom.motherboard.length)")
| —
.component(ng-if="server.custom.pcie && server.custom.pcie.length")
.title(translate) pcie
.value
.line(ng-repeat="pcie in server.custom.pcie")
span(ng-if="pcie.count > 1") {{ pcie.count + ' x ' }}
span {{ pcie.name }}
Код написан на Pug, представляет из себя фрагмент шаблона AngularJS, предназначенный для отображения конфигурации сервера. Данный код, через копирование-вставку, был заботливо размещен в нескольких файлах, иногда претерпевая незначительные изменения. Здесь публикую отчищенный от всего лишнего и сильно отформатированный вариант, дабы проще было насладиться полетом фантазии автора, в исходном виде весь этот код - одно сплошное месиво.