Image is available on docker hub
Postgres
docker run -d -e POSTGRES_USER=odoo -e POSTGRES_PASSWORD=odoo -e POSTGRES_DB=postgres --name db postgres:10
Odoo
find . -name "*.ts" -print | xargs wc -l |
%YAML 1.2 | |
--- | |
# See http://www.sublimetext.com/docs/3/syntax.html | |
file_extensions: | |
- aql | |
scope: source.aql | |
contexts: | |
# The prototype context is prepended to all contexts but those setting | |
# meta_include_prototype: false. |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase /subdirectory | |
RewriteRule ^index\.html$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /subdirectory/index.html [L] | |
</IfModule> |
function copy(text) { | |
const textarea = document.createElement("textarea"); | |
textarea.style.opacity = '0'; | |
textarea.style.position = 'fixed'; | |
textarea.textContent = text; | |
const body = document.getElementsByTagName('body')[0]; | |
body.appendChild(textarea); | |
textarea.select(); | |
document.execCommand('copy'); | |
body.removeChild(textarea); |
#!/bin/bash | |
# Remove all CR2 (raw image) files if they don't have corresponding JPG sibling | |
allJpgs="$(ls|grep .JPG)" | |
allRaws="$(ls|grep .CR2)" | |
allowedRaws=() | |
for file in $allJpgs | |
do | |
allowedRaws+=(${file/JPG/CR2}) |
<!-- wInViewRoot directive is needed to specify the `root` for `IntersectionObserver` and some other it's options e.g. `margin` --> | |
<div class="container" wInViewRoot="viewport"> | |
Any content can be here | |
<w-in-view-item> | |
<!-- Content will be replaced by a placeholder <div> with the same height as original content. | |
Also `InViewItemComponent`s change detector will be detached when it become invisible which means | |
all the content's change detectors won't be reachable and will be inactive as well. --> | |
</w-in-view-item> | |
...or any other content can be here | |
<w-in-view-item> |
async download(image: string) { | |
const result = await fetch(`data:image/png;base64,${image}`); | |
const blob = await result.blob(); | |
const a = document.createElement('a'); | |
a.href = URL.createObjectURL(blob); | |
a.download = name; | |
document.body.appendChild(a); | |
a.click(); | |
document.body.removeChild(a); | |
} |
// This attribute exist on the element | |
[value] | |
// This attribute has a specific value of cool | |
[value='cool] | |
// This vlaue attribute contains word cool | |
[value*='cool] | |
// This vlaue attribute contains word cool in a space-separated list |
background: linear-gradient(to top, #fff, rgba(255,255,255,0)); |
Image is available on docker hub
Postgres
docker run -d -e POSTGRES_USER=odoo -e POSTGRES_PASSWORD=odoo -e POSTGRES_DB=postgres --name db postgres:10
Odoo