Skip to content

Instantly share code, notes, and snippets.

View ikramhasan's full-sized avatar
🏠
Working from home

Ikramul Hasan ikramhasan

🏠
Working from home
View GitHub Profile
# Fig pre block. Keep at the top of this file.
[[ -f "$HOME/.fig/shell/zshrc.pre.zsh" ]] && builtin source "$HOME/.fig/shell/zshrc.pre.zsh"
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# If you come from bash you might have to change your $PATH.
@ikramhasan
ikramhasan / vscode-extensions.md
Created March 13, 2024 16:33
VSCode extensions

Extensions:

  1. Auto Rename Tag: Auto rename paired HTML/XML tag
  2. Awesome Flutter Snippets: Awesome Flutter Snippets is a collection snippets and shortcuts for commonly used Flutter functions and classes
  3. Better Comments: Improve your code commenting by annotating with alert, informational, TODOs, and more!
  4. bloc: Support for the bloc library and provides tools for effectively creating blocs for both Flutter and AngularDart apps.
  5. Code Spell Checker: Spelling checker for source code
  6. Color Highlight: Highlight
@ikramhasan
ikramhasan / notification-service.ts
Created September 4, 2023 07:57
Check for any new giveaway from the API and send email and push notification to users
import express, { Express } from 'express'
import cron from 'node-cron'
import fetch from 'node-fetch'
import admin from 'firebase-admin'
import serviceAccount from '../serviceAccountKey.json' assert { type: 'json' }
import { Resend } from 'resend'
const app: Express = express()
const port: string | number = process.env.PORT || 3000
### Flutter ###
# Flutter/Dart/Pub related
**/doc/api/
.dart_tool/
.flutter-plugins
.flutter-plugins-dependencies
.fvm/
.packages
.pub-cache/
{
// Place your snippets for dart here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",