Skip to content

Instantly share code, notes, and snippets.

View abdelmajidrajad's full-sized avatar
🎯
Focusing

Rajad Abdelmajid abdelmajidrajad

🎯
Focusing
View GitHub Profile
@abdelmajidrajad
abdelmajidrajad / Snippet.swift
Created September 29, 2021 15:48
TCASnippet
import ComposableArchitecture
import SwiftUI
public struct DomainState: Equatable {}
public enum DomainAction: Equatable {
case onAppear
}
@abdelmajidrajad
abdelmajidrajad / push.js
Created October 9, 2020 11:11 — forked from davideast/push.js
Send push notifications with node-apn and Firebase
var apn = require("apn");
var Firebase = require("firebase");
var service = new apn.connection({ production: false }); // true for production pipeline
// Create a reference to the push notification queue
var pushRef = new Firebase("<your-firebase>.firebaseio.com/notificationQueue");
// listen for items added to the queue
pushRef.on("child_added", function(snapshot) {
@abdelmajidrajad
abdelmajidrajad / CodeSnippet.swift
Last active May 12, 2020 11:15
PF code snippet for xcode
import ComposableArchitecture
//MARK:- State
public struct <#Domain#>State: Equatable {}
//MARK:- Action
enum <#Domain#>Action: Equatable {
case newAction
}