Skip to content

Instantly share code, notes, and snippets.

View unix14's full-sized avatar
๐Ÿ‘‹
Hi there

Eyal Yaakobi unix14

๐Ÿ‘‹
Hi there
View GitHub Profile
@unix14
unix14 / error_popup.dart
Created February 4, 2025 12:24
This file defines the ErrorPopup class for displaying error popups in a Flutter app. The ErrorPopup class has a static method open to show an AlertDialog with customizable title, description, and optional cancel and OK buttons. The dialog can be cancelable, and custom actions can be executed when the OK or Cancel buttons are pressed.
import 'package:flutter/material.dart';
class ErrorPopup {
static void open(BuildContext context, String title, String description,
{bool isCancelable = false,
Function? onOk,
Function? onCancel,
String okText = 'OK',
String cancelText = 'Cancel'}) {
@unix14
unix14 / create_singleton.dart
Created February 6, 2025 14:27
This Dart script generates a singleton class file based on the provided class name from the command line. The generated class follows the singleton pattern and includes basic usage examples in the comments above the generated code.
import 'dart:io';
/// Singleton Generator Script
///
/// This script generates a singleton class file based on the provided class name
/// from the command line. The generated class follows the singleton pattern and
/// includes basic usage examples in the comments above the generated code.
///
/// Usage:
@unix14
unix14 / event_gallery_img_downloader
Created April 2, 2025 13:14
The Event Gallery Image Downloader is a batch script designed to efficiently fetch files from Google Cloud Storage (GCS) and download them to a local directory. This tool is particularly useful for automatically fetching image files from GCS buckets for use in event gallery ( private project ).
@unix14
unix14 / event_gallery_analytix_manager_missing_events_finder.py
Created April 27, 2025 19:24
find missing analytix code on click events