Payload da exchange 'plurall::adaptative.indexer.assessment':
Assessement [{ "student_id": "1234 "event_id": "999" "event_name": " "abilities": [{ "ability_code": "MT_5E2.2", "content_code": "ACGTEFIMA5_OBEFIMA78_CN1EFIMA219_CN2EFIMA143",
Payload da exchange 'plurall::adaptative.indexer.assessment':
Assessement [{ "student_id": "1234 "event_id": "999" "event_name": " "abilities": [{ "ability_code": "MT_5E2.2", "content_code": "ACGTEFIMA5_OBEFIMA78_CN1EFIMA219_CN2EFIMA143",
| type Definition = { | |
| vals: number[]; | |
| }; | |
| type ErrorBrand<Err extends string> = Readonly<{ | |
| [k in Err]: void; | |
| }>; | |
| // Entry point for our builder. Unlike the value builder | |
| // pattern example, we don't need a definition value storing the set of |
See article: https://clothiernamedjeremiah.medium.com/8-flexbox-layouts-you-should-know-d83635e0d47f
For examples, see: https://codesandbox.io/s/8-flexbox-layouts-you-should-know-brw5h
Flexbox layouts:
| /* If-else functional */ | |
| export const conditionally = (config) => (props) => { | |
| return config.if(props) ? | |
| config.then(props) : config.else(props); | |
| }; | |
| /* Try-catch functional */ | |
| export function tryCatch({ | |
| tryer, | |
| catcher |
| #Convert htaccess to netlify _redirects | |
| grep DirectoryIndex htaccess | awk -F' ' '{print "/", "/"$2, 200}' > _redirects | |
| grep RewriteRule htaccess | grep -v 'robots'| awk -F' ' '{print $2, $3, 200}' | sed -e 's/\^/\//g' | sed -e 's/\$//g' >> _redirects |
| # MAINTENANCE-PAGE REDIRECT | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine on | |
| RewriteCond %{REMOTE_ADDR} !^123\.456\.789\.000 | |
| RewriteCond %{REQUEST_URI} !/maintenance.html$ [NC] | |
| RewriteCond %{REQUEST_URI} !\.(jpe?g?|png|gif) [NC] | |
| RewriteRule .* /maintenance.html [R=302,L] | |
| </IfModule> |
const express = require('express');
const serveStatic = require("serve-static")
const path = require('path');
app = express();
app.use(serveStatic(path.join(__dirname, 'dist')));
const port = process.env.PORT || 80;
app.listen(port);