Skip to content

Instantly share code, notes, and snippets.

View SEUH's full-sized avatar

Sebastian Ühlin SEUH

  • Germany
  • 17:06 (UTC +02:00)
View GitHub Profile
@SEUH
SEUH / ReverseSplFileObject.php
Last active April 8, 2022 19:21
[WIP] Reverse SplFileObject
<?php
class ReverseSplFileObject
{
private SplFileObject $file;
private int $readPointer;
/**
* @var int|mixed
@SEUH
SEUH / websockets.js
Created February 26, 2019 15:34
Laravel Echo (Pusher) initial channel subscribed event
// Subscribe to channel 'user.$id'
window.Echo.private('user.' + window.Laravel.user)
.listen('PrivateEvent', (e) => {
console.log(e);
});
// Get pusher instance and add pushers cahnnel event to detect when the channel is subscribed
window.Echo.connector.pusher.channels.channels['private-user.' + window.Laravel.user].bind('pusher:subscription_succeeded', function() {
console.log('channel subscription suceeded');
});
@SEUH
SEUH / vue.draggable.shadowdom.example.html
Last active November 6, 2018 13:25
Create draggable elements between shadowdom and "normal" dom. Generally you can use this example with as many "dom's" as you want. This example uses Vue.js and Vue.Draggable.
<html>
<head>
<style>
.container {
position: absolute;
top: 0;
width: 50%;
height: 100%;
}

Keybase proof

I hereby claim:

  • I am seuh on github.
  • I am seuh (https://keybase.io/seuh) on keybase.
  • I have a public key whose fingerprint is 17EB 012E EC67 9167 04BD D43C E31B BDB0 66D6 DD6D

To claim this, I am signing this object: