Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View S-ed's full-sized avatar

Alexey Mak S-ed

View GitHub Profile
@S-ed
S-ed / DataGameViewportClient.cpp
Created November 29, 2019 21:26 — forked from sfider/DataGameViewportClient.cpp
UE4 Pixel Perfect GameViewportClient
#include "DataGameViewportClient.h"
#include "Engine.h"
#include "Engine/LocalPlayer.h"
#include "SceneView.h"
constexpr int RENDER_WIDTH = 320;
constexpr int RENDER_HEIGHT = 180;
UDataGameViewportClient::UDataGameViewportClient(FVTableHelper& Helper)
: Super(Helper)
/* ==UserStyle==
@name Web - UnrealForums Dark Theme
@namespace github.com/openstyles/stylus
@version 1.5.1
@description Dark theme for UnrealForums
@author Alexey Mak (S-ed, Sedokun)
@license CCBY
@preprocessor stylus
@var color linkColor "Link color" #09F
{"ToolbarShow":true,"ColorsSet":{"button_background":"#272727","button_hover_background":"#2d2d2d","button_icons":"#c8c8c8","button_icons_hover":"#ffffff","toolbar_background":"#272727","filter_box_font":"#c9c9c9","filter_box_border":"#3f3f3f","button_border":"#272727","button_hover_border":"#2d2d2d","toolbar_border_bottom":"#3c3c3c","attention_background":"#2d2d2d","attention_border":"#2d2d2d","pin_list_border_bottom":"#3c3c3c","pin_list_background":"#272727","tabs_menu_hover_background":"#3c3c3c","tabs_menu_font":"#cecece","tabs_menu_background":"#272727","tabs_menu_separator":"#383838","tabs_menu_border":"#2e2e2e","tabs_menu_hover_border":"#272727","tab_list_background":"#272727","group_list_button_hover_background":"#272727","group_list_background":"#191919","group_list_borders":"#424242","scrollbar_track":"#272727","scrollbar_thumb_hover":"#272727","scrollbar_thumb":"#272727","tab_header_border_radius":"0px","children_padding_left":"7px","tab_border":"#2d2d2d","tab_background":"#2d2d2d","tab_hover_border
@S-ed
S-ed / userChrome.css
Created December 7, 2017 13:45
WIP dark theme for Firefox 57+ (Quantum)
scrollbar,
scrollbar scrollbarbutton,
scrollbar slider,
scrollbar thumb {
-moz-appearance: none;
}
scrollbar scrollbarbutton {
visibility: collapse;
}
@S-ed
S-ed / SimpleGeo.cs
Created July 27, 2016 23:24 — forked from phosphoer/SimpleGeo.cs
Simple Geometry Painter for Unity
// The MIT License (MIT)
// Copyright (c) 2016 David Evans @phosphoer
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
@S-ed
S-ed / .md
Last active June 8, 2016 23:22 — forked from iAdramelk/.md
Длинная телега про Бутстрап

Английская версия: https://evilmartians.com/chronicles/bootstrap-an-intervention

Вводная часть

У CSS есть несколько базовых проблем, которые позволяют очень быстро отстрелить себе ногу при неправильном использовании:

  1. Глобальный неймспейс – в серверном программировании все что написано в файле, в файле и остается. Все же что написано в css и js засирает глобальное пространство имен со всеми вытекающими. В JS эту проблему сейчас побороли всякими модульными системами, а вот с css сложнее. В идеальном мире это должен починить Shadow DOM и настоящие Web Components, но пока их нет единственный способ с этим бороться – следовать какой-то системе именований селекторов, которая по возможности уменьшает и исключает возможные конфликты.

  2. Каскадность – если на один элемент может сработать несколько правил, то они все и сработают последовательно. Если есть элемент h1.title, на него сработают все правила для тегов h1 и все правила для класса .title. Так как весь html состоит из тегов, то правил которые п

// ==UserScript==
// @name Google Translate Tooltip
// @namespace steely.wing
// @version 1.10
// @description Translates selected text into a tooltip.
// @license GPL version 3 or any later version; http://www.gnu.org/copyleft/gpl.html
// @copyright 2014, Wing Leong (http://steelywing.iblogger.org/)
// @include *
// @require http://code.jquery.com/jquery-2.1.0.min.js
// @grant GM_getValue