This document is outdated.
export async function handle({ event, resolve }) { | |
const cookies = await cookie.parse(event.request.headers.get('cookie') || ''); | |
if (event.url.pathname == '/login') { | |
// skip verifying user, and allow to load website | |
const response = await resolve(event); | |
return response; | |
} | |
const user = DB.User.findOne({session: cookies.token}); |
A minimal table to compare the Espressif's MCU families. The reported specifications are referred to the SoC, not to the modules (silver shield).
ESP8266 | ESP32 | ESP32-S2 | ESP32-S3 | ESP32-C3 | ESP32-C6 | |
---|---|---|---|---|---|---|
Announcement Date | 2014, August | 2016, September |
This example is part of this article.
This is an example for an HLS delivery with basic security. Nginx compiled with nginx-rtmp-module & secure-link is used as media server. Features:
- Domain filtering
- Referrer filtering
- Embed buster
Copy this formula into an Excel cell to generate a random 9-character password. Then Copy & Paste Special (as value) in place in order to avoid the cell being continuosly re-evaluated.
=CHAR(RANDBETWEEN(65;90))&CHAR(RANDBETWEEN(97;122))&CHAR(RANDBETWEEN(97;122))&CHAR(RANDBETWEEN(65;90))&RANDBETWEEN(1000;9999)&CHAR(RANDBETWEEN(42;43))
Open or poll a xhr polling session:
curl -v http://localhost:8081/echo/123/123/xhr
Send to a xhr polling session:
curl -i --header "Content-Type: application/javascript" -X POST -d '["data"]' http://localhost:8081/echo/123/123/xhr_send
Pull request #1615 is intended to add SockJS support to Netty. It does so by adding an API on top of Netty that end users have to implement. The interface that users had to implement looks like this:
/**
* Represents the server side business application server in SockJS.
*/
public interface SockJsService {
/**
* The {@link SockJsConfig} for this service
<?php | |
/** | |
* Twitter Bootstrap Kohana helper | |
* | |
* example of use: | |
* <?=Bootstrap::grid($grid, Bootstrap::FLUID);?> | |
* <?=$grid->span($view, 4);?> | |
* <?=Bootstrap::icon('download', TRUE);?> | |
* <?=Bootstrap::button('Button'); ?> |