Skip to content

Instantly share code, notes, and snippets.

View yoko's full-sized avatar
🍐
I like pear

yksk yoko

🍐
I like pear
View GitHub Profile
@yoko
yoko / css_splitter.rake
Created March 27, 2012 12:35 — forked from ChristianPeters/css_splitter.rake
Split CSS files so that there are no more than a given number of selectors in one style sheet. This is a tool to cope with Internet Explorer's limitation of max. 4095 selectors per stylesheet.
require 'rake'
require 'css_splitter'
desc 'split css files'
namespace :css do
task :split do
infile = ENV['infile'] || raise("missing infile")
outdir = ENV['outdir'] || File.dirname(infile)
max_selectors = ENV['max_selectors'] || 4095
// ==UserScript==
// @name Endless Summer on dsbd
// @namespace http://www.tumblr.com/
// @description random next link on tumblr dashboard
// @include http://www.tumblr.com/dashboard/1*
// @include http://www.tumblr.com/show/*/1*
// @require http://gist.github.com/3242.txt
// @require http://gist.github.com/198443.txt
// @require http://gist.github.com/34615.txt
// @version 0.0.4.0.2
@yoko
yoko / random-color.user.js
Created May 7, 2010 14:49 — forked from hitode909/random-color.user.js
WebKitでも動くようにした
// ==UserScript==
// @name random-color
// @namespace http://www.hatena.ne.jp/hitode909
// @include *
// ==/UserScript==
var randomColor = function() {
return 'rgb(' + (Math.random() > 0.5 ? 255 : 0) + ', ' + (Math.random() > 0.5 ? 255 : 0) + ', ' + (Math.random() > 0.5 ? 255 : 0) + ')';
};