Skip to content

Instantly share code, notes, and snippets.

leafgray

Block or report user

Report or block leafgray

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@leafgray
leafgray / jcfv
Created Feb 28, 2013
java class file version
View jcfv
major minor Java platform version
45 3 1.0
45 3 1.1
46 0 1.2
47 0 1.3
48 0 1.4
49 0 1.5
50 0 1.6
51 0 1.7
------------
@leafgray
leafgray / gist:5432090
Created Apr 22, 2013
gray the web page
View gist:5432090
img.grayscale {
filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale"); /* Firefox 10+, Firefox on Android */
filter: gray; /* IE6-9 */
-webkit-filter: grayscale(100%); /* Chrome 19+, Safari 6+, Safari 6+ iOS */
}
---
from
http://www.karlhorky.com/2012/06/cross-browser-image-grayscale-with-css.html
@leafgray
leafgray / weibocss.css
Last active Dec 17, 2015
weibo.com clean css
View weibocss.css
// ==UserScript==
// @name myweibo
// @author leafgray
// @version 1.0
// @grant GM_addStyle
// @include http://*weibo.com/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js
// ==/UserScript==
View test.clj
; Comments start with semicolons.
; Clojure is written in "forms", which are just
; lists of things inside parentheses, separated by whitespace.
;
; The clojure reader assumes that the first thing is a
; function or macro to call, and the rest are arguments.
;
; Here's a function that sets the current namespace:
(ns test)
View learn-lua
-- Two dashes start a one-line comment.
-- http://tylerneylon.com/a/learn-lua/
--[[
Adding two ['s and ]'s makes it a
multi-line comment.
--]]
----------------------------------------------------
-- 1. Variables and flow control.
You can’t perform that action at this time.