Skip to content

Instantly share code, notes, and snippets.

@MananAmin
MananAmin / python_singleton.py
Last active November 8, 2023 22:19
python patterns
from pluggy import PluginManager
# singleton class
class MetaPluginManager(type):
_plugin_manager: PluginManager = None
@staticmethod
def get_plugin_manager():
@MananAmin
MananAmin / OOP-Main.java
Created September 8, 2021 18:37
basics of OOP in java
package com.oop;
import com.oop.encapsulation.EncapsClass;
import java.util.Calendar;
public class Main {
public static void main(String[] args) {
package com.learn;
import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
System.out.println("Hello World");