Skip to content

Instantly share code, notes, and snippets.

View mjkatgithub's full-sized avatar

Melchior Kannengießer mjkatgithub

View GitHub Profile
@mjkatgithub
mjkatgithub / InfluxDBHandler.php
Last active May 16, 2023 06:54
monologInfluxDBHandler
<?php
use InfluxDB2\Client;
use InfluxDB2\Model\WritePrecision;
use Monolog\Handler\AbstractProcessingHandler;
use Monolog\Logger;
class InfluxDBHandler extends AbstractProcessingHandler
{
private $client;
private $bucket;

Full socket.io client and server example

Last updated: 2021-02-21, tested with socket.io v3.1.1

This is the simplest implementation you will find for a client/server WebSockets architecture using socket.io.

To see a full explanation, read my answer on SO here: https://stackoverflow.com/a/24232050/778272.

If you're looking for examples using frameworks, check these links:

@mjkatgithub
mjkatgithub / overview.md
Created October 1, 2020 17:45 — forked from hoetmaaiers/overview.md
Webstorm live templates

React Native Live Templates for WebStorm

How to add Live Template in Webstorm

  1. open preferences
  2. editor> live templates
  3. add template group for React Native
  4. add templates below to the new group
  5. define context > javascript
  6. edit variables > add "fileNameWithoutExtension" to "$fnName$"