Skip to content

Instantly share code, notes, and snippets.

View Elvmeen's full-sized avatar
💭
💪

Aminu Muhammad Elvmeen

💭
💪
View GitHub Profile
@Elvmeen
Elvmeen / crawler.go
Created January 9, 2025 20:05 — forked from hacktivist123/crawler.go
A simple web crawler
package main
import (
"bytes"
"crypto/tls"
"fmt"
"log"
@Elvmeen
Elvmeen / officeActivator.bat
Created March 19, 2025 18:27 — forked from mndambuki/officeActivator.bat
Activate Microsoft Office 2019
@echo off
title Activate Microsoft Office 2019 !
cls
echo ============================================================================
echo #Project: Activating Microsoft software products
echo ============================================================================
echo.
echo #Supported products:
echo - Microsoft Office Standard 2019
echo - Microsoft Office Professional Plus 2019
@Elvmeen
Elvmeen / officebypass.bat
Created March 19, 2025 18:33
ModifiedOfficerBypass(2019)
@echo off
:: BatchGotAdmin
:-------------------------------------
REM --> Check for permissions
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
REM --> If error flag set, we do not have admin.
if '%errorlevel%' NEQ '0' (
echo Requesting administrative privileges...
goto UACPrompt
@Elvmeen
Elvmeen / MadLibbyAminu.py
Created April 14, 2025 21:25
This is a MadLib Game in Pythin by Aminu M.
import random
import time
def display_welcome():
print("\n" + "=" * 50)
print("WELCOME TO THE QUIRKY MADLIB GENERATOR!".center(50))
print("=" * 50)
print("\nLet's create a hilarious story together!")
print("Just answer a few quick questions and I'll generate something absurd!")
print("-" * 50)
@Elvmeen
Elvmeen / Beta(1).mq5
Last active October 20, 2025 12:50
Main EA Demo; Contains Timeframa Analysis Error & outdated input parameters First Version meant for version tracking & without synthetic indicis support
//+------------------------------------------------------------------+
//| Enhanced_EMA_EA_v3.0_Profitable.mq5 |
//| Improved EMA Strategy with 2:1 RRR & 5% Risk |
//+------------------------------------------------------------------+
#property strict
#property version "3.00"
#property copyright "Enhanced by Elameen - Profitable EMA Strategy"
//--- Input parameters
input group "=== RISK MANAGEMENT (CRITICAL) ==="
@Elvmeen
Elvmeen / MyFirst(Beta-Version)
Last active August 5, 2025 17:40
TF-EA (Synthetic Indicies Compatible) Pasted for version control. Issues: Risk mgt and timeframe analysis error, allows tf input but like the first ver., deviate to EMAs
//+------------------------------------------------------------------+
//| Enhanced_EMA_EA_v3.0_Profitable.mq5 |
//| Improved EMA Strategy with 2:1 RRR & 5% Risk |
//+------------------------------------------------------------------+
#property strict
#property version "3.00"
//--- Risk percentage enumeration
enum ENUM_RISK_PERCENT
@Elvmeen
Elvmeen / Martingale EA (Git Version)
Created August 5, 2025 21:01
Pasted for Version Control
//+------------------------------------------------------------------+
//| ProjectName |
//| Copyright 2020, CompanyName |
//| http://www.companyname.net |
//+------------------------------------------------------------------+
#property copyright "Copyright 2021"
#property link "drdz9876@gmail.com"
#property version "2.0"
#include <Trade\PositionInfo.mqh> CPositionInfo m_position;
#include <Trade\Trade.mqh> CTrade trade;
Windows Registry Editor Version 5.00
;------------------------------
; Disable Delivery Optimization
;------------------------------
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DoSvc]
"Start"=dword:00000004
;------------------------------
; Disable Windows Telemetry
@Elvmeen
Elvmeen / AutoTrailing.mql5
Last active November 23, 2025 09:28
Version 6.7
//+------------------------------------------------------------------+
//| Proportional Trailing EA (Corrected) |
//| SL reaches breakeven at 50% progress, continues trailing after |
//+------------------------------------------------------------------+
#property strict
#include <Trade\Trade.mqh>
input double TrailStepPercent = 2.0; // Update every X% of progress
input int CheckIntervalMS = 1000; // Milliseconds between checks
input bool ShowDebugInfo = true; // Show trailing logs
@Elvmeen
Elvmeen / main.md
Created December 1, 2025 22:47 — forked from Ifihan/main.md
Maximum Running Time of N Computers

Question

Approach

I binary-search the maximum running time T. For a candidate T I check if the total available minutes (summing min(b, T) for every battery b) is at least n * T — because each computer needs T minutes and a single battery can contribute at most T minutes toward a given computer. If the check passes, T is feasible and I try larger values; otherwise I try smaller ones.

Implementation

class Solution:
    def maxRunTime(self, n: int, batteries: List[int]) -> int: