Recommendations of unit types per media type:
| Media | Recommended | Occasional use | Infrequent use | Not recommended |
|---|---|---|---|---|
| Screen | em, rem, % | px | ch, ex, vw, vh, vmin, vmax | cm, mm, in, pt, pc |
| em, rem, % | cm, mm, in, pt, pc | ch, ex | px, vw, vh, vmin, vmax |
| (define coercion-list '()) | |
| (define (clear-coercion-list) | |
| (set! coercion-list '())) | |
| (define (put-coercion type1 type2 item) | |
| (if (get-coercion type1 type2) coercion-list | |
| (set! coercion-list | |
| (cons (list type1 type2 item) | |
| coercion-list)))) |
Recommendations of unit types per media type:
| Media | Recommended | Occasional use | Infrequent use | Not recommended |
|---|---|---|---|---|
| Screen | em, rem, % | px | ch, ex, vw, vh, vmin, vmax | cm, mm, in, pt, pc |
| em, rem, % | cm, mm, in, pt, pc | ch, ex | px, vw, vh, vmin, vmax |
| // config/passport.js | |
| // load all the things we need | |
| var LocalStrategy = require('passport-local').Strategy; | |
| var mysql = require('mysql'); | |
| var connection = mysql.createConnection({ | |
| host : 'localhost', | |
| user : 'root', |
| " Ignore some folders and files for CtrlP indexing | |
| let g:ctrlp_custom_ignore = { | |
| \ 'dir': '\.git$\|\.yardoc\|node_modules\|log\|tmp$', | |
| \ 'file': '\.so$\|\.dat$|\.DS_Store$' | |
| \ } |
| <html> | |
| <head> | |
| <title>WebSocket demo</title> | |
| </head> | |
| <body> | |
| <div> | |
| <form> | |
| <label for="numberfield">Number</label> | |
| <input type="text" id="numberfield" placeholder="12"/><br /> |
| (* | |
| AddCountryCode.scpt | |
| ===================== | |
| Customization of Andreas Amann's script posted on https://discussions.apple.com/message/9169756#9169756 | |
| Description | |
| ------------ |
| # 0 is too far from ` ;) | |
| set -g base-index 1 | |
| # Automatically set window title | |
| set-window-option -g automatic-rename on | |
| set-option -g set-titles on | |
| #set -g default-terminal screen-256color | |
| set -g status-keys vi | |
| set -g history-limit 10000 |
| function interval(duration, fn){ | |
| var _this = this | |
| this.baseline = undefined | |
| this.run = function(){ | |
| if(_this.baseline === undefined){ | |
| _this.baseline = new Date().getTime() | |
| } | |
| fn() | |
| var end = new Date().getTime() |