Skip to content

Instantly share code, notes, and snippets.

View feranmi2002's full-sized avatar

Oluwaoyehun Faith Feranmi feranmi2002

View GitHub Profile
@feranmi2002
feranmi2002 / digital_ocean_provider.dart
Last active October 10, 2025 09:40
upload provider
import 'package:cross_file/cross_file.dart';
import 'package:firebase_core/firebase_core.dart';
import 'package:flutter/cupertino.dart';
import 'package:cloud_functions/cloud_functions.dart';
import 'package:http/http.dart' as http;
import 'package:mime/mime.dart';
import 'dart:io';
import 'package:web/web.dart' as web;
class DigitalOceanProvider extends ChangeNotifier {
@feranmi2002
feranmi2002 / aws_service.ts
Created October 10, 2025 09:39
aws cloud function
import {HttpsError, onCall} from "firebase-functions/v2/https";
import type {CallableRequest} from "firebase-functions/v2/https";
import {S3Client, PutObjectCommand, DeleteObjectCommand} from '@aws-sdk/client-s3';
import {getSignedUrl} from '@aws-sdk/s3-request-presigner';
import {verifyUserIsAdmin} from "../utils.js";
const s3: S3Client = new S3Client({
region: process.env.DO_SPACES_REGION,
endpoint: process.env.DO_SPACES_ENDPOINT,
credentials: {
@feranmi2002
feranmi2002 / README.md
Created June 11, 2024 10:28 — forked from lopspower/README.md
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store

@feranmi2002
feranmi2002 / Main.kt
Created October 28, 2022 20:27
HNG Internship Task 1
fun main(args: Array<String>) {
// Create circles
val circle3 = Circle(2.0, "blue")
val circle2 = Circle(2.0)
val circle1 = Circle()
// Print circles
println("Circle 1: \n$circle1")
println()