*italic* **bold**
_italic_ __bold__
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Author: http://stuffandnonsense.co.uk/blog/about/hardboiled_css3_media_queries/ | |
*/ | |
/* Smartphones (portrait and landscape) ----------- */ | |
@media only screen | |
and (min-device-width : 320px) | |
and (max-device-width : 480px) { | |
/* Styles */ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.section { | |
border: 4px solid #fff; | |
margin: 100px; | |
padding: 10px 20px; | |
overflow: hidden; | |
width: 310px; | |
background-image: -moz-linear-gradient(top, #f6f2ec, #e2dbce); /* FF3.6 */ | |
background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0, #f6f2ec),color-stop(1, #e2dbce)); /* Saf4+, Chrome */ | |
filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#f6f2ec', EndColorStr='#e2dbce'); /* IE6,IE7 */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///*---------------------------------------------------------------------*/ | |
@mixin border-radius($topleft:5px,$topright:null,$bottomright:null,$bottomleft:null) { | |
@if $topright != null and $bottomright != null and $bottomleft != null { | |
border-top-left-radius: $topleft; | |
border-top-right-radius: $topright; | |
border-bottom-right-radius: $bottomright; | |
border-bottom-left-radius: $bottomleft; | |
-moz-border-radius-topleft: $topleft; | |
-moz-border-radius-topright: $topright; | |
-moz-border-radius-bottomright: $bottomright; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@font-face { | |
font-family: 'OpenSans-Bold'; | |
src: url('../fonts/OpenSans-Bold.ttf'); | |
font-weight: normal; | |
font-style: normal; | |
} | |
.fonts (@the-font:"OpenSans-CondLight",@size:14px) { | |
font-weight: normal; | |
font-style: normal; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.css3_gradient(@from, @to, @fallback: @to) { | |
background-color:@fallback; | |
background-image:-webkit-gradient(linear, left top, left bottom, from(@from), to(@to)); | |
background-image:-webkit-linear-gradient(top, @from, @to); | |
background-image:-moz-linear-gradient(top, @from, @to); | |
background-image:-ms-linear-gradient(top, @from, @to); | |
background-image:-o-linear-gradient(top, @from, @to); | |
background:linear-gradient(to left bottom, @from, @to); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.box-shadow(@x: 0, @y: 1px, @blur: 1px, @color: #000) { | |
box-shadow: @x @y @blur @color; | |
-moz-box-shadow: @x @y @blur @color; | |
-webkit-box-shadow: @x @y @blur @color; | |
} | |
.inset-box-shadow(@x: 0, @y: 1px, @blur: 1px, @color: #000) { | |
box-shadow: inset @x @y @blur @color; | |
-moz-box-shadow: inset @x @y @blur @color; | |
-webkit-box-shadow: inset @x @y @blur @color; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Markdown Syntax: | |
1.Phrase Emphasis 斜体与加粗 | |
*italic* **bold** | |
_italic_ __bold__ | |
2.Links 超链接 |
#Vim Cheat Sheet
gqip
- Reformats paragraph to textwidthgq
- Reformats selection:Tab /=
- Equally spaces based on the = symbol (requires Tabular vim plugin):setf language
- Changes current language:set language=language
- Changes current language<C-a>
- Increments the number under the cursor<C-x>
- Decrements the number under the cursor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RVM home page: http://rvm.beginrescueend.com | |
Install RVM | |
------------ | |
See http://rvm.beginrescueend.com/rvm/install/ | |
bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer) | |
Install rvm for all users |