- [dealing with many buffers: ibuffer] (http://emacs-fu.blogspot.com/2010/02/dealing-with-many-buffers-ibuffer.html)
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
/* | |
=============================================================================== | |
Crc32 is a JavaScript function for computing the CRC32 of a string | |
............................................................................... | |
Version: 1.2 - 2006/11 - http://noteslog.com/category/javascript/ | |
------------------------------------------------------------------------------- | |
Copyright (c) 2006 Andrea Ercolino | |
http://www.opensource.org/licenses/mit-license.php |
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
" auto reload nginx & apache | |
function! Reload() | |
let output = system(&ft == 'nginx' ? 'service nginx configtest && service nginx reload' : 'service apache2 reload') | |
if v:shell_error | |
echohl WarningMsg | echo output | |
endif | |
endfunction | |
autocmd! BufWritePost */nginx*conf,*/apache*conf call Reload() |
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
/** | |
* Css icons | |
*/ | |
body { font: 14px/1.5 "Lucida Grande", "Lucida Sans Unicode", Lucida, Arial, Helvetica, sans-serif; } | |
a {color: #4183c4; text-decoration: none; } | |
a:hover { text-decoration: underline; } | |
.prev-entry:before, .next-entry:after { border: solid 4px transparent; border-width: 5px 4px; content: ""; width: 0; height: 0; display: inline-block; } | |
.prev-entry:before { border-right-color: #999; margin-right: 3px; } | |
.next-entry:after { border-left-color: #999; margin-left: 3px; } |
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
server { | |
root /home/brook/Public/$host; | |
location / { | |
# default_server | |
if (!-d /home/brook/Public/$host) { | |
proxy_pass http://localhost; | |
break; | |
} |
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
/** | |
* Pseudo-classes and HTML5 Forms - Learning CSS3 | |
* http://html5doctor.com/css3-pseudo-classes-and-html5-forms/ | |
*/ | |
body { font: 14px/1.5 Verdana,Microsoft YaHei,Ubuntu; } | |
textarea, input[type=text], input[type=email], input[type=number] { font-size: 13px; border: solid 1px #ABADB3; border-radius: 2px; } | |
input[type=number] { width: 40px; } | |
textarea { line-height: 1.3; pading: 5px; } | |
input { margin: 0 5px; } |
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
/** | |
* multi-column layouts - Learning Css3 | |
* http://www.w3.org/TR/css3-multicol/ | |
*/ | |
body { font: 14px/1.5 "Lucida Grande", "Lucida Sans Unicode", Lucida, Arial, Helvetica, sans-serif; } | |
/* | |
* columns: column-count columns-width | |
* column-gap: 1em(default) | |
* column-rule |
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
/** | |
* text-shadow, text-stroke - Learning Css3 | |
*/ | |
div { border: solid 1px #ccc; margin: 10px; padding: 0 10px; | |
font: 2em/1.8 Verdana,Microsoft YaHei,Ubuntu; } | |
/** | |
* text-shadow: h-shadow v-shadow blur color; | |
*/ | |
.text-shadow { text-shadow: 2px 2px #666; font-size: 1.5em; } |
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, resize - Learning Css3 | |
*/ | |
div { width: 100px; height: 100px; border: solid 1px #ccc; | |
margin: 20px; float: left; } | |
/* box-shadow: h-shadow v-shadow blur spread color inset; */ | |
.shadow1 { box-shadow: 5px 5px 8px #f06; } | |
.shadow-inner { box-shadow: 0 0 10px #f06 inset; } | |
.shadow-oneside { box-shadow: 5px 0 5px -5px #f06; } |
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
/** | |
* Checkable star | |
*/ | |
.checkable-star { display: none; } | |
.checkable-star + label { padding: 1px 8px; cursor: pointer; background: url(http://uedsky.com/images/res/star-icons.png) no-repeat; } | |
.checkable-star + label:hover { background-position: -16px 0; } | |
.checkable-star:checked + label { background-position: -32px 0; } |