Skip to content

Instantly share code, notes, and snippets.

Wei Gao villadora

View GitHub Profile
View emacs-mail.md

[Rmail][http://www.emacswiki.org/emacs/Rmail]

Rmail is the default mail reader for GNU Emacs. With it you can read multiple local and remote inboxes.


‘M-x rmail’: This moves all your mail from your local spool file and saves it in the Rmail primary file pointed by ‘rmail-file-name’ (defaults to ~/RMAIL)

'h': show a summary window 'n','p': navigate for next or previous

@villadora
villadora / siteminder.md
Created Jul 11, 2012
Siteminder Request Flow
View siteminder.md

Behind the request to a server protected by siteminder

2 modes for deploying siteminder

  1. proxy server
  2. agent configuration - install software on the web server

What happens when user raises a request

The following steps occur when a user tries to access a protected resource on a web server configured to use SiteMinder authentication:

View css-position.md

CSS 'position'属性详细

Sample

position properties

position:static

_static_是默认的position属性, 也就是element会按照默认的方式出现在文档之中,通常使用"static"只是为了清除之前设置过的position属性

@villadora
villadora / ie-css-cheat.md
Created Jul 12, 2012
Stylesheet cheat for IE
View ie-css-cheat.md

For All IE

<!--[if IE]>
<link rel="stylesheet" type="text/css" href="all-ie-only.css" />
<![endif]-->

Target everything EXCEPT IE

<!--[if !IE]><!-->
<link rel="stylesheet" type="text/css" href="not-ie.css" />
@villadora
villadora / browser-width.md
Created Jul 12, 2012
window.width和document.width
View browser-width.md

网页和浏览器的尺寸

__jquery__中拿到浏览器的尺寸:

$(window).width()
$(window).height()

__jquery__中拿到网页的尺寸:

$(document).width()
@villadora
villadora / propertyIsEnumerable.md
Created Jul 13, 2012
propertyIsEnumerable & hasOwnProperty
View propertyIsEnumerable.md
@villadora
villadora / anonymouse-function-scope.md
Created Jul 27, 2012
anonymouse function in javascript
View anonymouse-function-scope.md
You can’t perform that action at this time.