Skip to content

Instantly share code, notes, and snippets.

View aadilmallick's full-sized avatar
💭
gobble gobble wobble wobble

AADIL MALLICK aadilmallick

💭
gobble gobble wobble wobble
View GitHub Profile

Android recipes

Notification Model

Here i wanted to create a resuable way to create notifications and notification channels. In API 33+ you have to create your channel in an Application() context, but below that level, you can create it wherever.

We pass in the context to have reusable notification models we can use anywhere in our code, so that a notification model isn't just tied down to one activity or service. I want receivers, activities, and services all to receive the same model. The context doesn't really matter anyway.

@aadilmallick
aadilmallick / nextjs-recipes.md
Last active August 6, 2023 00:11
Next JS recipes

NextJS recipes

Global css

@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
@aadilmallick
aadilmallick / express-app-setup.md
Created July 17, 2023 16:11
Express App setup snippets

Express app

Mongoose database connection

const mongoose = require("mongoose");

const connectDB = async () => {
  try {
    mongoose.set("strictQuery", true);
@aadilmallick
aadilmallick / react-native-setup.md
Last active February 14, 2024 12:55
A complete steup guide to any react native + expo project. The stack is expo + typescript + tailwindcss

Get started

npx create-expo-app --template

Heavy full on installation