This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {xliff12ToJs} from 'xliff'; | |
import {readFileSync, writeFileSync} from 'fs'; | |
export async function xliffToJson(translations) { | |
const parserResult = await xliff12ToJs(translations, { | |
captureSpacesBetweenElements: true, | |
}); | |
const xliffContent = parserResult.resources["ng2.template"]; | |
return Object.keys(xliffContent).reduce((result, current) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"contactId" : "cont-BA7rxxxxxxx", | |
"contactName" : "Aalborg Zoo ", | |
"message" : null, | |
"plan" : { | |
"serviceWindow": { | |
"startTime": "08:00:00", | |
"endTime": "16:00:00" | |
}, | |
"indicativeDate" : "2023-02-19" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ "message": "hola mundo!", "number": "4551923192", "messageId": "1" } | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ docker node ls | |
ID HOSTNAME STATUS AVAILABILITY MANAGER STATUS | |
fia8k180v3zlerr6zct851eh2 * engine01.codezoo.dk Ready Active Leader | |
jgv36o8adbhryjiagvvmgxeas engine02.codezoo.dk Ready Active Reachable | |
kxcxjh9hyt3fxe6xdw40dm1d7 engine03.codezoo.dk Ready Active Reachable | |
duavpuprjs4ihl3b6tjazzu11 engine04.codezoo.dk Ready Active | |
jz8h4rhbeil79y6kj7r50tch6 engine05.codezoo.dk Ready Active | |
$ curl --unix-socket /var/run/docker.sock http://./debug/pprof/goroutine?debug=2 | |
goroutine 14413516 [running]: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
time="2016-12-29T22:21:21Z" level=debug msg="Round trip: http://10.0.0.6:8080, code: 200, duration: 4.248103ms tls:version: 303, tls:resume:false, tls:csuite:c02f, tls:server:api.fyensgade.skveege.com" | |
time="2016-12-29T22:21:21Z" level=debug msg="Round trip: http://10.0.0.6:8080, code: 200, duration: 16.155827ms tls:version: 303, tls:resume:false, tls:csuite:c02f, tls:server:api.fyensgade.skveege.com" | |
time="2016-12-29T22:21:21Z" level=debug msg="Round trip: http://10.0.0.6:8080, code: 200, duration: 3.037558ms tls:version: 303, tls:resume:false, tls:csuite:c02f, tls:server:api.fyensgade.skveege.com" | |
time="2016-12-29T22:21:21Z" level=debug msg="Round trip: http://10.0.0.6:8080, code: 200, duration: 3.794741ms tls:version: 303, tls:resume:false, tls:csuite:c02f, tls:server:api.fyensgade.skveege.com" | |
time="2016-12-29T22:21:21Z" level=debug msg="Round trip: http://10.0.0.6:8080, code: 200, duration: 20.463231ms tls:version: 303, tls:resume:false, tls:csuite:c02f, tls:server:api.fyensgade.skveege.com" | |
time="2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defaultEntryPoints = ["http", "https"] | |
[acme] | |
email = "[email protected]" | |
storage = "acme.json" | |
entryPoint = "https" | |
OnHostRule = true | |
[[acme.domains]] | |
main = "fyensgade.skveege.com" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install base libraries | |
sudo apt-get install autoconf libtool automake libgudev-1.0-dev libxkbcommon-dev libudev-dev libmtdev-dev libev-dev gobject-introspection libgirepository1.0-dev gtk-doc-tools libcairo2-dev libpango1.0-dev libgdk-pixbuf2.0-dev libjson-glib-1.0-0 libatk1.0-dev libinput-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-bad1.0-dev | |
# Define some variables !!! | |
export LIBS="-lGLESv2 -lEGL -lopenmaxil -lbcm_host -lvcos -lvchiq_arm -lpthread -lrt -lm" | |
export CPPFLAGS="-I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux" | |
export CFLAGS="-DSTANDALONE -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DTARGET_POSIX -D_LINUX -fPIC -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -U_FORTIFY_SOURCE -DHAVE_LIBOPENMAX=2 -DOMX -DOMX_SKIP64BIT -ftree-vectorize -pipe -DUSE_EXTERNAL_OMX -DHAVE_LIBBCM_HOST -DUSE_EXTERNAL_LIBBCM_HOST -DUSE_VCHIQ_ARM -Wno- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="import" href="../components/polymer/polymer.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
#core_scaffold { | |
position: absolute; | |
top: 0px; | |
right: 0px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="import" href="../core-scaffold/core-scaffold.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../core-menu/core-menu.html"> | |
<link rel="import" href="../core-item/core-item.html"> | |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-icons/core-icons.html"> | |
<link rel="import" href="../paper-item/paper-item.html"> | |
<link rel="import" href="../core-menu/core-submenu.html"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="import" href="../components/polymer/polymer.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; |
NewerOlder