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 |
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 |
| /* | |
| In the node.js intro tutorial (http://nodejs.org/), they show a basic tcp | |
| server, but for some reason omit a client connecting to it. I added an | |
| example at the bottom. | |
| Save the following server in example.js: | |
| */ | |
| var net = require('net'); |
| CREATE OR REPLACE FUNCTION max_plus_one(tableName text, columnName text) RETURNS bigint AS | |
| $func$ | |
| DECLARE | |
| answer bigint; | |
| BEGIN | |
| EXECUTE format('(SELECT(SELECT max(%I) from public.%I)+1)',columnName,tableName) INTO answer; | |
| RETURN (SELECT COALESCE(answer, 1)); | |
| END; | |
| $func$ | |
| LANGUAGE PLPGSQL |
| import { expect, assert } from 'chai'; | |
| import * as sinon from 'sinon'; | |
| import * as _ from 'lodash'; | |
| import * as express from 'express'; | |
| import * as supertest from 'supertest'; | |
| import * as bodyParser from 'body-parser'; | |
| import * as config from 'config'; | |
| import { Guard } from '../../lib/guard'; | |
| import { ProfileRoute } from './profile.route'; |