Skip to content

Instantly share code, notes, and snippets.

Avatar
👽

Daniel Shields tao

👽
View GitHub Profile
@tao
tao / MessengerChat.js
Created Sep 15, 2019
Facebook Messenger Chat Plugin with NextJS
View MessengerChat.js
import React, { Component } from 'react'
import PropTypes from 'prop-types'
/**
* Utils
*/
const removeElementByIds = ids => {
ids.forEach(id => {
const element = document.getElementById(id)
if (element && element.parentNode) {
@tao
tao / gist:fba880299bdfdcfd491582724ede9dd7
Last active Jun 14, 2020
Using Passport with Laravel Spark
View gist:fba880299bdfdcfd491582724ede9dd7
# Installation
As far as I know this is how to get Passport on Laravel Spark working correctly, it works so far for me over the API but there might be something I am still missing.
I am using the following software versions in composer.json:
```
"require": {
"php": ">=5.6.4",
"laravel/framework": "5.3.*",
View gist:6dafe8a3ebc533e65747e5ca3564a08f
### Keybase proof
I hereby claim:
* I am tao on github.
* I am tao (https://keybase.io/tao) on keybase.
* I have a public key ASC7w0478OJPDwA_Q1UUEHb01ZBssTq61cwSZd_Tde74dwo
To claim this, I am signing this object:
View gist:50e0322e845fb7fcdf49
### Keybase proof
I hereby claim:
* I am iraeeu on github.
* I am irae (https://keybase.io/irae) on keybase.
* I have a public key whose fingerprint is FFC1 32FD 90AE 0447 E6BB 4CAC B9E0 78FC 2295 42E3
To claim this, I am signing this object:
You can’t perform that action at this time.