Skip to content

Instantly share code, notes, and snippets.

View gongpeione's full-sized avatar

Geeku gongpeione

View GitHub Profile
@gongpeione
gongpeione / theme-color
Created June 29, 2015 09:06
THEME COLOR IN CHROME 39 (ANDROID LOLLIPOP)
<meta name="theme-color" content="#db5945">
@gongpeione
gongpeione / IEImageResize
Created June 25, 2015 02:03
IE image resize
img { -ms-interpolation-mode: bicubic; }
@gongpeione
gongpeione / pathinfo
Created June 24, 2015 06:01
solve codeigniter 404 error in Nginx
##########################################pathinfo 模式
set $path_info "";
set $real_script_name $fastcgi_script_name;
if ($fastcgi_script_name ~ "^(.+?\.php)(/.+)$"){
set $real_script_name $1;
set $path_info $2;
}
include fastcgi.conf;
fastcgi_param SCRIPT_FILENAME $document_root$real_script_name;
fastcgi_param SCRIPT_NAME $real_script_name;
@gongpeione
gongpeione / brokenImg
Created June 24, 2015 01:02
Replace a broken image with pure HTML/CSS
<object data="error.img" type="image/png">
<img src="http://www.computerweekly.com/blogs/cwdn/2011/01/25/Human%20error.png" />
</object>