Skip to content

Instantly share code, notes, and snippets.

@gpulido
gpulido / autocomplete.component.html
Created March 1, 2020 12:47
mockup for a mdc autocomplete component
<div #surfaceAnchor mdcMenuSurfaceAnchor (click)="onClick($event)">
<ng-content (keydown)="onKeydown($event)" select="mdc-text-field"></ng-content>
<ng-content select="mdc-menu"></ng-content>
</div>
@gpulido
gpulido / airzoneserial.service
Last active April 10, 2024 20:54
Python script to redirect data from TCP/IP to a serial port and vice versa
[Unit]
Description=Innobus python tcp serial port gateway
After=multi-user.target
[Service]
Type=idle
Restart=always
RestartSec=3
ExecStart=/usr/bin/python3 /home/pi/innobus/serial_forwarder.py