See also:
| Service | Type | Storage | Limitations |
|---|---|---|---|
| Amazon DynamoDB | 25 GB | ||
| Amazon RDS | |||
| Azure SQL Database | MS SQL Server | ||
| 👉 Clever Cloud | PostgreSQL, MySQL, MongoDB, Redis | 256 MB (PostgreSQL) | Max 5 connections (PostgreSQL) |
| /** | |
| * @usage: | |
| * | |
| * <RadioBox label="Foo" value="foo" v-model="MySelectedValue" /> | |
| * <RadioBox label="Bar" value="bar" v-model="MySelectedValue" /> | |
| * <RadioBox label="Baz" value="baz" v-model="MySelectedValue" /> | |
| * | |
| * data(){ | |
| * return { | |
| * MySelectedValue: "", |
See also:
| Service | Type | Storage | Limitations |
|---|---|---|---|
| Amazon DynamoDB | 25 GB | ||
| Amazon RDS | |||
| Azure SQL Database | MS SQL Server | ||
| 👉 Clever Cloud | PostgreSQL, MySQL, MongoDB, Redis | 256 MB (PostgreSQL) | Max 5 connections (PostgreSQL) |
| svg polyline { | |
| stroke-dasharray: 120; | |
| stroke-dashoffset: 0; | |
| } | |
| svg:hover polyline { | |
| animation: a .8s ease-out | |
| } | |
| @keyframes a { | |
| from { |
| /** | |
| * subscriptions data format: | |
| * { eventType: { id: callback } } | |
| */ | |
| const subscriptions = { } | |
| const getNextUniqueId = getIdGenerator() | |
| function subscribe(eventType, callback) { | |
| const id = getNextUniqueId() |
| <? | |
| require($_SERVER['DOCUMENT_ROOT']."/bitrix/header.php"); | |
| echo $USER->Update(1,array("PASSWORD"=>'Bitrix*123456')); | |
| echo $USER->LAST_ERROR; | |
| require($_SERVER['DOCUMENT_ROOT']."/bitrix/footer.php"); | |
| ?> |
| # POST a JSON file and redirect output to stdout | |
| wget -q -O - --header="Content-Type:application/json" --post-file=foo.json http://127.0.0.1 | |
| # Download a complete website | |
| wget -m -r -linf -k -p -q -E -e robots=off http://127.0.0.1 | |
| # But it may be sufficient | |
| wget -mpk http://127.0.0.1 | |
| # Download all images of a website |
| " vim: filetype=vifm : | |
| " Sample configuration file for vifm (last updated: 27 Jun, 2013) | |
| " You can edit this file by hand. | |
| " The " character at the beginning of a line comments out the line. | |
| " Blank lines are ignored. | |
| " The basic format for each item is shown with an example. | |
| " This is the actual command used to start vi. The default is vim. | |
| " If you would like to use another vi clone such Elvis or Vile | |
| " you will need to change this setting. |
| // Determine if an element is in the visible viewport | |
| function isInViewport(element) { | |
| var rect = element.getBoundingClientRect(); | |
| var html = document.documentElement; | |
| return ( | |
| rect.top >= 0 && | |
| rect.left >= 0 && | |
| rect.bottom <= (window.innerHeight || html.clientHeight) && | |
| rect.right <= (window.innerWidth || html.clientWidth) | |
| ); |
| /* | |
| No jQuery necessary. | |
| Thanks to Dan's StackOverflow answer for this: | |
| http://stackoverflow.com/questions/123999/how-to-tell-if-a-dom-element-is-visible-in-the-current-viewport | |
| */ | |
| function isElementInViewport(el) { | |
| var rect = el.getBoundingClientRect(); | |
| return ( | |
| rect.top >= 0 && |
| function declOfNum(number, titles) { | |
| cases = [2, 0, 1, 1, 1, 2]; | |
| return titles[ (number%100>4 && number%100<20)? 2 : cases[(number%10<5)?number%10:5] ]; | |
| } | |
| use: | |
| declOfNum(count, ['найдена', 'найдено', 'найдены']); |