Skip to content

Instantly share code, notes, and snippets.

View MyoniM's full-sized avatar

Yonatan Merkebu MyoniM

View GitHub Profile
@MyoniM
MyoniM / multiple-ssh-keys-git.adoc
Created December 22, 2023 09:13 — forked from alejandro-martin/multiple-ssh-keys-git.adoc
Configure multiple SSH Keys for Git

Use Multiple SSH Keys for Git host websites (Github, Gitlab)

This is guide about how to configure multiple SSH keys for some Git host websites such as Github, Gitlab, among others.

Creating SSH keys

  1. Create SSH directory:

@MyoniM
MyoniM / getDateAsString.ts
Created March 29, 2023 08:18
Return date formatted as `${y}${delimiter}${m}${delimiter}${d}`
export function getdateAsString(today: Date, delimiter: string = '-') {
let y = new Intl.DateTimeFormat('en', { year: 'numeric' }).format(today);
let m = new Intl.DateTimeFormat('en', { month: '2-digit' }).format(today);
let d = new Intl.DateTimeFormat('en', { day: '2-digit' }).format(today);
return `${y}${delimiter}${m}${delimiter}${d}`;
}
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class TreeInfo:
def __init__(self, currentTotalSum, maxSum):
self.currentTotalSum = currentTotalSum
import 'package:firebase_messaging/firebase_messaging.dart';
import 'package:flutter_local_notifications/flutter_local_notifications.dart';
class LocalNotificationService {
static final FlutterLocalNotificationsPlugin
_flutterLocalNotificationsPlugin = FlutterLocalNotificationsPlugin();
static void initialize() async {
// The first step is to create a new instance of the plugin class
// then initialize it with the settings to use for each platform