Skip to content

Instantly share code, notes, and snippets.

View tomavic's full-sized avatar
I work to clear off my pending work

Hatem tomavic

I work to clear off my pending work
View GitHub Profile
@tomavic
tomavic / introrx.md
Created February 6, 2022 18:25 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@tomavic
tomavic / NotificationService.m
Created September 27, 2021 16:06
OneSignalNotificationServiceExtension
#import <OneSignal/OneSignal.h>
#import "NotificationService.h"
@interface NotificationService ()
@property (nonatomic, strong) void (^contentHandler)(UNNotificationContent *contentToDeliver);
@property (nonatomic, strong) UNNotificationRequest *receivedRequest;
@property (nonatomic, strong) UNMutableNotificationContent *bestAttemptContent;
@tomavic
tomavic / pivot-tables.md
Created May 29, 2020 19:51 — forked from Braunson/pivot-tables.md
Laravel 6.x - Diving into Pivot Tables

Laravel 6 - Diving Into Pivot Tables

Pivot tables can be confusing and a little hard to wrap your head around at first. In this quick article we are going to dive into what a pivot table is, how to create one and finally how to use the pivot table. Let's dive in!

What is a pivot table?

A pivot table is used to connect relationships between two tables. Laravel provides a Many To Many relationship where you can use a pivot table.