Skip to content

Instantly share code, notes, and snippets.

View renshao's full-sized avatar

Ren Shao renshao

View GitHub Profile
@renshao
renshao / web-font-weights-mapping
Created June 20, 2014 06:34
Web font weights mapping
# http://www.webtype.com/info/articles/fonts-weights/
100 Extra Light or Ultra Light
200 Light or Thin
300 Book or Demi
400 Normal or Regular
500 Medium
600 Semibold, Demibold
700 Bold
800 Black, Extra Bold or Heavy
/**
* A "deeper" indented text effect with the :before pseudo-element.
*/
html, body {
height: 100%;
}
body {
margin: 0;
.inner {
color: rgba(252, 195, 67, 0.8);
font-size: 48px;
text-shadow: 1px 2px 3px #fff, 0 0 0 #000;
}
/*
This sets the opacity of the text to 80%, and then creates two shadows:
The first is a white shadow (assuming the text is on a white background) offset 1px from the left and 2px from the top, blurred 3px.
@renshao
renshao / gist:6385306
Last active December 21, 2015 23:49
Ruby and Passanger lib dependencies
wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p448.tar.gz
yum -y install gcc gcc-c++ kernel-devel zlib zlib-devel libxml2 libxml2-devel libxslt libxslt-devel readline readline-devel openssl-devel libyaml libyaml-devel curl-devel apr-devel apr-util-devel httpd-devel
@renshao
renshao / curl-post.sh
Created September 13, 2012 23:02
curl POST form
curl --data-urlencode "name=I am Daniel" http://www.example.com