Skip to content

Instantly share code, notes, and snippets.

View Suvitruf's full-sized avatar
😔
There aint no one coming forth to carry us home

Andrei Apanasik Suvitruf

😔
There aint no one coming forth to carry us home
View GitHub Profile
@MidSpike
MidSpike / readme.md
Last active February 5, 2024 18:09
CVE-2022-23812 | RIAEvangelist/node-ipc is malware / protest-ware
@raysan5
raysan5 / custom_game_engines_small_study.md
Last active April 23, 2024 13:41
A small state-of-the-art study on custom engines

CUSTOM GAME ENGINES: A Small Study

a_plague_tale

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

// ==UserScript==
// @name dtf лента hider
// @namespace http://tampermonkey.net/
// @version 0.1
// @description hehe
// @author Suvitruf
// @match https://dtf.ru/*
// @match http://dtf.ru/*
// @grant none
// ==/UserScript==
@MSDN-WhiteKnight
MSDN-WhiteKnight / DeletedMessages.md
Last active January 14, 2020 03:51
Messages deleted from ru.stackoverflow.com meta

Удалённый ответ AK (https://ru.meta.stackoverflow.com/a/8654/15479)

TL;DR проскроллируйте в конец поста если вам нужна краткая выжимка из ответа.

Не бывает верного или неверного понимания, зачем нужны отзывы на StackOverflow, потому что у каждого конкретного участника есть своё понимание.

Возможно, кроме мнения конкретных участников есть некое "официальное мнение администрации StackOverflow", но там наверняка (если что — я не видел, а в исходном посте нет ссылки) будут написаны настолько общие прекраснодушные слова, под которым не подпишется разве что только кровавый душегуб.

Как мы помним, именно администрация решает, чем является тот или иной поступок — дружеским напоминанием о незавершенной инициативе или пассивной агрессией, поэтому нужно понимать, что данный опрос "как вы определяете разницу между дружеским напоминанием о незавершенной инициативе или пассивной агрессией" имеет статус не более чем "спасибо за ваше мнение". Будем реалистами: принцип останется тот же: если начальник не прав — смот

Сегодня, когда администрация подписалась в собственном бессилии и удалила основной чат Ru.SO (да, удалила, это не шутка), хочется поностальгировать о светлых временах, когда чат служил средоточением жизни и местом встречи активных участников, и большинство споров сводилось с противостоянию "открывашек" и "закрывашек". Сразу после переезда на новый движок многие участники активизировались: кто-то отвечал на вопросы, соревнуясь с другими, кто успеет первым; кто-то проводил время в чистке старых вопросов и меток, осаждая очереди проверок.

Интересно то, что Ru.SO по графикам растёт, однако в вопросах по .NET, где я наиболее активен, ответа можно не дождаться и через день, хотя раньше зачастую уже через пять минут появлялось два ответа, а очередь проверки на закрытие стабильно буксует. Может быть, мы смот

@paulirish
paulirish / what-forces-layout.md
Last active April 25, 2024 21:49
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.

Element APIs

Getting box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
@bryanhunter
bryanhunter / build-erlang-17.0.sh
Last active May 22, 2022 12:02
Build Erlang 17.0 on a fresh Ubuntu box (tested on 12.04 and 14.04)
#!/bin/bash
# Pull this file down, make it executable and run it with sudo
# wget https://gist.githubusercontent.com/bryanhunter/10380945/raw/build-erlang-17.0.sh
# chmod u+x build-erlang-17.0.sh
# sudo ./build-erlang-17.0.sh
if [ $(id -u) != "0" ]; then
echo "You must be the superuser to run this script" >&2
exit 1
fi
@cyakimov
cyakimov / gist:1139981
Created August 11, 2011 15:49
Decode Facebook signed_request with NodeJS
//npm install b64url
//A signed_request for testing:
//WGvK-mUKB_Utg0l8gSPvf6smzacp46977pTtcRx0puE.eyJhbGdvcml0aG0iOiJITUFDLVNIQTI1NiIsImV4cGlyZXMiOjEyOTI4MjEyMDAsImlzc3VlZF9hdCI6MTI5MjgxNDgyMCwib2F1dGhfdG9rZW4iOiIxNTI1NDk2ODQ3NzczMDJ8Mi5ZV2NxV2k2T0k0U0h4Y2JwTWJRaDdBX18uMzYwMC4xMjkyODIxMjAwLTcyMTU5OTQ3NnxQaDRmb2t6S1IyamozQWlxVldqNXp2cTBmeFEiLCJ1c2VyIjp7ImxvY2FsZSI6ImVuX0dCIiwiY291bnRyeSI6ImF1In0sInVzZXJfaWQiOiI3MjE1OTk0NzYifQ
function parse_signed_request(signed_request, secret) {
encoded_data = signed_request.split('.',2);
// decode the data
sig = encoded_data[0];
json = base64url.decode(encoded_data[1]);
data = JSON.parse(json); // ERROR Occurs Here!