Skip to content

Instantly share code, notes, and snippets.

View villadora's full-sized avatar

Wei Gao villadora

  • Ant,Tmall, DP, MS
  • Shanghai,China
View GitHub Profile
@villadora
villadora / emacs-mail.md
Created July 10, 2012 04:57
Emacs - Mail

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 July 11, 2012 02:52
Siteminder Request Flow

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:

@villadora
villadora / css-media-viewport.md
Created July 11, 2012 04:10
CSS for different devices
@villadora
villadora / css-position.md
Created July 11, 2012 06:55
CSS Position

CSS 'position'属性详细

Sample

position properties

position:static

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

@villadora
villadora / ie-css-cheat.md
Created July 12, 2012 04:03
Stylesheet cheat for IE

For All IE

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

Target everything EXCEPT IE

<!--[if !IE]><!-->
@villadora
villadora / browser-width.md
Created July 12, 2012 06:55
window.width和document.width

网页和浏览器的尺寸

__jquery__中拿到浏览器的尺寸:

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

__jquery__中拿到网页的尺寸:

$(document).width()

@villadora
villadora / propertyIsEnumerable.md
Created July 13, 2012 02:17
propertyIsEnumerable & hasOwnProperty
@villadora
villadora / new-key-word.md
Last active October 7, 2015 07:28
What does 'new' keyword do in javascript?
@villadora
villadora / anonymouse-function-scope.md
Created July 27, 2012 01:48
anonymouse function in javascript
@villadora
villadora / keyboard-android.md
Created August 7, 2012 07:38
keyboard for android