Skip to content

Instantly share code, notes, and snippets.

-- 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.
; 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)
@leafgray
leafgray / weibocss.css
Last active December 17, 2015 03:58
weibo.com clean 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==
@leafgray
leafgray / gist:5432090
Created April 22, 2013 02:40
gray the web page
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 / jcfv
Created February 28, 2013 07:50
java class file version
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
------------