- [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
/** | |
* 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
/** | |
* 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
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
/** | |
* 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
" 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
/* | |
=============================================================================== | |
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
# http://httpd.apache.org/docs/current/mod/core.html | |
# http://httpd.apache.org/docs/current/mod/mod_proxy.html | |
# enable proxy modules | |
# sudo ln -s /etc/apache2/mods-available/proxy.load /etc/apache2/mods-enabled | |
# sudo ln -s /etc/apache2/mods-available/proxy_http.load /etc/apache2/mods-enabled | |
# sudo service apache2 force-reload | |
# or | |
# LoadModule proxy_module modules/mod_proxy.so | |
# LoadModule proxy_http_module modules/mod_proxy_http.so |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration> | |
<system.webServer> | |
<rewrite> | |
<!-- | |
http://www.iis.net/download/ApplicationRequestRouting | |
http://blogs.msdn.com/b/carlosag/archive/2010/04/02/setting-up-a-reverse-proxy-using-iis-url-rewrite-and-arr.aspx | |
http://learn.iis.net/page.aspx/686/setting-http-request-headers-and-iis-server-variables/ | |
--> | |
<rules> |
- php: http://php.net/manual/en/function.date.php
- .net: http://msdn.microsoft.com/en-us/library/8kb3ddd4.aspx
- bash: http://ss64.com/bash/date.html
- emacs: format-time-string