Skip to content

Instantly share code, notes, and snippets.

View chuanxshi's full-sized avatar
🎯
Focusing

Chuan Shi chuanxshi

🎯
Focusing
View GitHub Profile
@chuanxshi
chuanxshi / devise.zh-CN.yml
Created September 23, 2012 03:47
Simplified Chinese Translation for Devise 2.1
# Additional translations at https://github.com/plataformatec/devise/wiki/I18n
zh-CN:
errors:
messages:
expired: "您已过期,请重新申请"
not_found: "没有找到"
already_confirmed: "已经激活,请重新登录."
not_locked: "未锁定"
not_saved:
@chuanxshi
chuanxshi / style.css
Created June 18, 2011 10:49 — forked from necolas/style.css
HTML5 Boilerplate a la normalize.css
/* =============================================================================
HTML5 element display
========================================================================== */
article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; }
/* =============================================================================
Base
========================================================================== */
@chuanxshi
chuanxshi / style.css
Created April 26, 2011 18:32
css descriptions
/**
* HTML5 ✰ Boilerplate
*
* style.css contains a reset, font normalization and some base styles.
*
* Credit is left where credit is due.
* Much inspiration was taken from these projects:
* - yui.yahooapis.com/2.8.1/build/base/base.css
* - camendesign.com/design/
* - praegnanz.de/weblog/htmlcssjs-kickstart
@chuanxshi
chuanxshi / mobile body
Created April 19, 2011 17:55
html tags and attributes for your mobile body
// Mail Links
<a href="mailto:frank@wwdcdemo.example.com">John Frank</a>
// Phone Links
<a href="tel:1-408-555-5555">1-408-555-5555</a>
// Text Links
<a href="sms:1-408-555-1212">New SMS Message</a>
// Map Links
@chuanxshi
chuanxshi / mobile tags for your '<head>'
Created March 1, 2011 14:56
mobile tags for your '<head>'
<!doctype html>
<!-- Helpful things to keep in your <head/>
// Shi Chuan, https://github.com/shichuan/mobile-html5-boilerplate
-->
<head>
<!-- consider using below meta tags if you want to disable format detection by default -->
<meta name="format-detection" content="telephone=no"/>
<meta name="format-detection" content="address=no"/>
<!-- consider using below link tag if the page is duplicate content of a desktop version -->