Skip to content

Instantly share code, notes, and snippets.

View xsrf's full-sized avatar

Andreas xsrf

View GitHub Profile
@xsrf
xsrf / CellBroadcast.md
Last active June 13, 2022 16:54
CellBroadcast

CellBroadcast / CMAS / EU-Alert / DE-Alert

CellBroadcast Channels defined in ETSI TS 123 041:

EU-Alert is specified in ETSI TS 102 900.

Android implements CMAS (and thus EU-Alert) since at least Android 4.2.2 and [dispatches them as special SMS messages](h

@xsrf
xsrf / easyeda_reset_netport_mark.js
Created March 14, 2021 12:35
EasyEDA Reset NetPort Mark alignment
// Reset NetPort Mark alignment (select Ports first)
api('getSelectedIds').split(',').forEach((k)=>{
netflag = api('getShape',{id: k});
if(netflag && netflag.mark && netflag.configure) {
netflag.mark.x = Number(netflag.configure.x) + (23 * (netflag.configure.rotation == 0 ? -1:1));
netflag.mark.y = Number(netflag.configure.y) + 3.5;
netflag.mark.textAnchor = (netflag.configure.rotation == 0) ? 'end' : 'start';
netflag.gId = netflag.configure.gId;
api('updateShape',{ shapeType:'netflag', "jsonCache": netflag });
}