Skip to content

Instantly share code, notes, and snippets.

@yoksel
yoksel / .stylelintrc
Last active February 24, 2020 23:04
Конфиг для CSS-линтера
{
"rules": {
"at-rule-empty-line-before": [
"always",
{
except: ["blockless-group", "first-nested"],
message: "Ожидается пустая строка перед @-правилом"
}
],
"at-rule-semicolon-newline-after": [
@yoksel
yoksel / script.js
Created April 6, 2016 15:20
Userscript for pixel perfect testing
// ==UserScript==
// @name Test makets
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author yoksel
// @match http://localhost:3001/*
// @grant none
// ==/UserScript==
/* jshint -W097 */
@yoksel
yoksel / maket-checker.css
Last active April 6, 2016 15:21
Maket checker
BODY:after {
content: "";
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
min-height: 4000px;
@yoksel
yoksel / telegram_channel.md
Created April 1, 2016 09:17 — forked from gladkih/telegram_channel.md
Список каналов в telegram на которые подписан.

https://telegram.me/zavtracast Официальный канал Завтракаста - подкаста об играх, медиа, технологиях

https://telegram.me/webstandards_ru Ежедневные новости фронтенда от «Веб-стандартов»

https://telegram.me/addmeto филиал addmeto.сс на земле

https://telegram.me/techsparks Аннотированные ссылки на интересные, полезные и удивительные новости хайтека (ведет @asebrant)

https://telegram.me/bestarticles Ссылки на интересные статьи на русском одним сообщением в день. Сайт проекта: bestarticles.co

// ==UserScript==
// @name Test makets
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author yoksel
// @match http://localhost:3001/*
// @grant none
// ==/UserScript==
/* jshint -W097 */
@yoksel
yoksel / gist:8d7fe2f97e4ddf46a8f0
Created March 19, 2016 14:42
EntryPage::print_comment()
function EntryPage::print_comment (Comment c) {
var Page p = get_page();
var string comment_class = "j-c";
var string c_id = "id=\"$c.dom_id\"";
if ($c.full) {
$comment_class = $comment_class + " j-c-full";
} else {
// ==UserScript==
// @name HTMLEditor
// @namespace http://yoksel.ru/
// @description HTMLEditor
// @include *
// @require https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// @grant GM_getValue
// @grant GM_setValue
// @grant GM_listValues
// @grant GM_addStyle
@yoksel
yoksel / hexToRgb.js
Last active February 9, 2016 14:02
hexToRgb and back
function hexToRgb( color ) {
console.log('Input: ' + color );
color = color.replace('#','');
var rgb = '';
var rgbList = [];
var colorList = [
color.substr(0,2),
color.substr(2,2),
color.substr(4,2)
];
// ==UserScript==
// @name Add ruler for button in adaptive Chameleons
// @namespace http://use.i.E.your.homepage/
// @version 0.1
// @description Tool for visial testing
// @downloadURL https://gist.githubusercontent.com/yoksel/6cf7db8d931dea5f8016/raw/657ebbe89f25e532cefdb751701b334d998934ab/Ruler%2520for%2520button%2520in%2520adaptive%2520Chameleons
// @match http://*/*
// @copyright 2015+, Me
// @grant GM_addStyle
// ==/UserScript==
@yoksel
yoksel / gist:a7c973da0756519085eb
Last active August 29, 2015 14:24
Most used layers list on customize page (livejournal)
// ==UserScript==
// @name Layers list on customize page
// @namespace http://yoksel.ru/
// @version 0.1
// @description Add customize button to new LJ navigation
// @author You
// @include *livejournal.com/customize/*
// @include *livejournal.ru/customize/*
// @grant none
// ==/UserScript==