- rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org (external link)
- rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm (external link)
- yum install nvidia-detect.x86_64
- yum install $(nvidia-detect) -y
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import glob | |
skipped_files = [ | |
] | |
def find_and_insert_header(string): | |
line = 0; | |
is_in_headers = True | |
strings = string.splitlines() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "imageformats/pngloader.h" | |
#define TAR7Z_SADDY | |
#include "3rdparty/tar7z/include/tar.h" | |
#define STBI_ONLY_PNG | |
#define STB_IMAGE_IMPLEMENTATION | |
#include "3rdparty/stb/stb_image.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// пусть 1 - красный, 2 - желтый, 0 - пустота, 3 - синий, 4 - светолосиний, 5 - зелёный, 6 - белый, 7 - розовый | |
// пусть в массиве индекс идёт по часовой стрелке 0 - 12 часов, 1 - 1, 2 - 2 - 3 часа, 3 - 3, 4 - 6 часов, 5 -5, 6 - 9 часов, 7 - 7 | |
// тогда q - сдвиг влево на 2, e - сдвиг вправо на 2 | |
// switch (S) - циклический сдвиг внизу 3, 4, 5 | |
#include <string> | |
#include <cstdlib> | |
#include <iostream> | |
#include <unordered_set> | |
#include <unordered_map> |
A couple of weeks ago I played (and finished) A Plague Tale, a game by Asobo Studio. I was really captivated by the game, not only by the beautiful graphics but also by the story and the locations in the game. I decided to investigate a bit about the game tech and I was surprised to see it was developed with a custom engine by a relatively small studio. I know there are some companies using custom engines but it's very difficult to find a detailed market study with that kind of information curated and updated. So this article.
Nowadays lots of companies choose engines like Unreal or Unity for their games (or that's what lot of people think) because d
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\CModule::IncludeModule('intervolga.mybox'); | |
\CModule::IncludeModule('sale'); | |
$fuserId = \CSaleBasket::GetBasketUserID(); | |
$arBasketRequest = \Intervolga\Mybox\Tool\Basket::getBasketForRequest($fuserId); | |
$arData = \Intervolga\Mybox\Tool\Front\RealTime::xmlEncode($arBasketRequest); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Обновляет координаты склада, если они не заданы, но известен адрес. | |
* | |
* @param int $id | |
* @param bool $forceUpdate принудительно обновить координаты склада | |
*/ | |
public static function updateGpsGeocode($id, $forceUpdate = false) | |
{ | |
$arStore = self::getGeoData($id); | |
$shouldUpdate = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
namespace Intervolga\Mybox\Tool\Front\Sku; | |
use Intervolga\Mybox\Main; | |
use PhpAmqpLib\Channel\AMQPChannel; | |
use PhpAmqpLib\Connection\AMQPStreamConnection; | |
use PhpAmqpLib\Exception\AMQPRuntimeException; | |
use PhpAmqpLib\Message\AMQPMessage; | |
use PhpAmqpLib\Wire\AMQPTable; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<skus name=”sku-14.06.2018-16-54-00”> | |
<sku> | |
<store>6d38791d-8213-4810-b3f4-ece5e8734098</store> | |
<item>43fd919a-9a7a-40cb-849b-fb7778df00a0</item> | |
<menuId>416</menuId> | |
<active>Y</active> | |
<benefit>64.000</benefit> | |
<price>64.000</price> | |
<menuStart>2018-06-13T00:00:00</menuStart> | |
<menuEnd>9999-12-31T00:00:00</menuEnd> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Автор: Бурым | |
* Описание: вспомогательный класс для работы с датой и временем | |
*/ | |
class CC_DateTime | |
{ | |
/** | |
* Номер первого месяца в году | |
*/ |
NewerOlder