Skip to content

Instantly share code, notes, and snippets.

@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,
javascript:void(function(){[].forEach.call(document.querySelectorAll("*"),function(a){a.style.outline="1px solid #"+(~~(Math.random()*(1<<24))).toString(16)}) })();
@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);
@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: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 / 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: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: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==
// ==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 / 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)
];