Skip to content

Instantly share code, notes, and snippets.

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

Adewuyi Taofeeq Olamilekan harmlessprince

🏠
Working from home
View GitHub Profile
@harmlessprince
harmlessprince / Makefile
Created June 1, 2024 11:24
Make File for Golang
# Define the default target
.PHONY: default
default: help
.PHONY: help
help:
@echo "Available targets:"
@echo " seeder FILENAME Process the specified seeder file name"
# application repository and binary file name
{{define "subject"}}{{.Subject}}{{end}}
{{define "htmlBody"}}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Forgot Password</title>
</head>
<body>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<form id="paymentForm">
<div class="form-group">
<input type="text" id="reference" value="REF-TYWYZP-22"/>
@harmlessprince
harmlessprince / Dockerfile
Last active June 19, 2025 17:35
Docker compose laravel configs
FROM php:8.3-fpm
ARG user
ARG uid
RUN apt-get update && apt-get install -y \
git \
curl \
libpng-dev \
libonig-dev \
package org.codewithtee;
public interface PaymentGateWayInterface {
public String[] validaAccountNumber = {"101012345678", "101098765432", "101034567890"};
public String[] validaCardNumbers = {"4439123456789012", "4439987654321098", "4439765432109876"};
public boolean makeCardPayment(String cardNumber, double amount );
public boolean validateCard(String cardNumber);
public boolean validateAccountNumber(String cardNumber);
public boolean makeBankTransfer(String accountNumber, double amount);
public String generateAccountNumber(String username);
@harmlessprince
harmlessprince / MockPaymentGateway.java
Last active January 18, 2025 10:10
MockPaymentGateway mockup
import java.util.HashMap;
import java.util.Map;
public class PaymentProcessingService {
// Enum for Transaction Types
public enum TransactionType {
CREDIT_CARD,
BANK_TRANSFER,
DIGITAL_WALLET