Skip to content

Instantly share code, notes, and snippets.

View ulfie22's full-sized avatar

Andy Drexler ulfie22

  • Los Altos Hills, CA
  • 10:47 (UTC -08:00)
  • X @adrexler
View GitHub Profile
@ulfie22
ulfie22 / APITest.php
Last active October 2, 2018 23:30
Laravel Passport API Problem
<?php
namespace Tests\Feature\Feature;
use App\User;
use Illuminate\Support\Facades\DB;
use Tests\TestCase;
use Illuminate\Foundation\Testing\WithFaker;
use Illuminate\Foundation\Testing\RefreshDatabase;
@ulfie22
ulfie22 / gist:c84196c26de4809093b50e418b2fbf37
Created December 13, 2018 19:04
config/websockets.php on websockets server
<?php
return [
/*
* This package comes with multi tenancy out of the box. Here you can
* configure the different apps that can use the webSockets server.
*
* Optionally you can disable client events so clients cannot send
* messages to each other via the webSockets.
@ulfie22
ulfie22 / gist:bcab04fb9202f861661ba28dd9427d3a
Created January 17, 2019 19:35
Failing laravel-websockets payload
{
"allTasks":[
{
"id":74,
"name":"another \ud83d\udc2c\ud83d\udc0a\ud83e\udd8d\ud83e\udd92\ud83d\udc16 task",
"description":"Desc: \ud83e\udd80\ud83e\udd95\ud83e\udd82\ud83d\udd77",
"timeDiff":"2019-01-06T01:30:00+00:00",
"nextInstanceID":2601,
"responseStatus":"unknown",
"nextInstance":{
@ulfie22
ulfie22 / gist:e8575aefcc7d48251a395caab47cfb0e
Created January 17, 2019 19:41
successful laravel-websockets packet
{
"allTasks":[
{
"id":74,
"name":"another \ud83d\udc2c\ud83d\udc0a\ud83e\udd8d\ud83e\udd92\ud83d\udc16 task",
"description":"Desc: \ud83e\udd80\ud83e\udd95\ud83e\udd82\ud83d\udd77",
"timeDiff":"2019-01-06T01:30:00+00:00",
"nextInstanceID":2601,
"responseStatus":"unknown",
"nextInstance":{
@ulfie22
ulfie22 / lifecycle.js
Last active January 6, 2020 09:22
NativeScript Vue Lifecycle Package
const application = require("tns-core-modules/application");
export default function (Vue) {
Vue.cycle = {
init(vm) {
console.log('!@# starting init in lifecycle');
application.on(application.launchEvent, (args) => {