Skip to content

Instantly share code, notes, and snippets.

@yoksel
yoksel / gist:d77462331026de454672
Last active August 29, 2015 14:22
Add customize button to new LJ navigation
// ==UserScript==
// @name Customize button in new nav
// @namespace http://yoksel.ru/
// @version 0.1
// @description Add customize button to new LJ navigation
// @author You
// @include *livejournal.com*
// @include *livejournal.ru*
// @grant none
// ==/UserScript==
@yoksel
yoksel / gist:2daa45b7fd4f5c0662af
Created May 30, 2015 08:39
Add folder to project in ST
[
{ "keys": ["alt+super+shift+a"], "command": "prompt_add_folder" }
]
@yoksel
yoksel / gist:38015447c5e82c5f74bc
Created November 8, 2014 07:49
Sublime Settings
{
"draw_white_space": "all",
"font_face": "Droid Sans Mono for Powerline",
"font_size": 15,
"hayaku_CSS_prefixes_disable": true,
"ignored_packages":
[
"Vintage"
],
"save_on_focus_lost": true,
@yoksel
yoksel / github.css
Last active August 29, 2015 14:08
Make GitHub responsive and more readable on small screens
@media (max-width: 800px){
body,
.header {
min-width: 0;
}
.site-search {
width: calc(100% - 38px);
margin-bottom: 1em;
@yoksel
yoksel / gist:738082fb67e6a3ec2dd3
Created October 5, 2014 15:52
Mixin for gradient star
@mixin star($rays: 6){
$gradients: null;
$angle: 360/$rays;
@for $item from 1 through $rays/2 {
$gradItem: linear-gradient(#{$angle * $item}deg,
$transp 49.5%,
black 49.5%, black 50.5%,
$transp 50.5%);
$gradients: append($gradients, $gradItem, comma);
javascript:void(function(){[].forEach.call(document.querySelectorAll("*"),function(a){a.style.outline="1px solid #"+(~~(Math.random()*(1<<24))).toString(16)}) })();
@yoksel
yoksel / gist:229cc29a79cb704463ae
Last active August 29, 2015 14:06
CSScomb.sublime-settings
{
// Full list of supported options and acceptable values can be found here:
// https://github.com/csscomb/csscomb.js/blob/master/doc/options.md
"config": {
"always-semicolon": true,
"color-case": "upper",
"block-indent": " ",
"color-shorthand": true,
"element-case": "upper",
"eof-newline": true,
@yoksel
yoksel / gist:a8e9d3a9f740bb9e149f
Last active May 9, 2024 15:39
SVG Symbols Shower Bookmarklet
javascript:void(function(){
var doc = document;
var body = doc.querySelector("body");
var head = doc.querySelector("head");
var icons = "";
var resultElem = doc.querySelector("#icons-shower");
if ( !resultElem ) {
@yoksel
yoksel / lj-dev-stuff.js
Last active August 29, 2015 14:02
Some Developers Stuff for Livejournal.com backup from userscripts
// ==UserScript==
// @name Some Developers Stuff for Livejournal.com
// @namespace http://yoksel.ru/
// @description The script adds titles on the journal style settings pages and link to customize your journal style
// @include *livejournal.com*
// @include *livejournal.ru*
// @grant GM_getValue
// @grant GM_setValue
// @grant GM_listValues
// @grant GM_addStyle