Skip to content

Instantly share code, notes, and snippets.

View eimon96's full-sized avatar
😷

Penny Simitsi eimon96

😷
View GitHub Profile
#include <iostream>
using namespace std;
int handleExit();
int main()
{
int year;
cout << "Hellooo! Lets do this...\nYear:";
@eimon96
eimon96 / eject.py
Created April 19, 2022 14:14
Eject CDrom tray Linux Mint - 2020 make file executable (the button for cd/dvd tray in my laptop is broken so i did this to make things easier)
#!/usr/bin/env python3
from os import system
system("eject cdrom")
# Just playing around with Sense Hat Emulator on Raspberry Pi 4 (ruuning on VM)
# 1/2021
from sense_emu import SenseHat
from time import sleep
sdev = SenseHat()
sdev.lop_light = False
# Python3
# 2021
import tkinter as tk
window = tk.Tk()
frame1 = tk.Frame(master=window, width=90, height=200, bg="blue")
frame1.pack(fill=tk.Y, side=tk.LEFT)
#Python 3 - Rainbow Flag - 5/2021
import tkinter as tk
window = tk.Tk()
window.geometry(f"{90*12}x{120*6}")
window.title("Rainbow Flag")
frame1 = tk.Frame(master=window, width=90, height=120, bg="red")
frame1.pack(fill=tk.X)
@eimon96
eimon96 / greek_flag.py
Created April 21, 2022 14:44
Greek Flag with tkinter in Python3
# ---- 20/5/2020
import tkinter as tk
window = tk.Tk()
window.title("Greek Flag")
stripeHeight = 50
height = 9 * stripeHeight
width = height * 3 // 2
@eimon96
eimon96 / Meme.java
Created April 21, 2022 17:33
inspired by a meme... file deletes itself
/*
@author: eimon -- 2021
Self-deleted meme file (greek)
How to build the jar on Intellij:
-> file - project structure - project settings - artifacts - click + - jar - from modules with dependencies
extract to the target jar - OK
-> build - build artifacts - build
find it at ...\out\artifacts\jerk_jar
run it ... ok ok ok ...wait 3sec then jar file deletes itself and poof gone bye lost in oblivion
*/
@eimon96
eimon96 / welcome.vbs
Created April 21, 2022 17:56
paste on shell:startup folder to get welcomed
' 4/2022
On Error Resume Next
set blabla = Wscript.CreateObject("SAPI.SpVoice")
Set blabla.Voice = blabla.GetVoices.Item(1)
blabla.speak "eimon, welcome!"
Wscript.Quit
' Are-you-dead-yet?
' 4/2022
' error handling
On Error Resume Next
' create shell object
Set WshShell = WScript.CreateObject("WScript.Shell")
' get the username
@eimon96
eimon96 / trance.c
Last active April 29, 2022 05:00
a wanna-be v1rus - 4/2022
// based on dos v "techno"
// made for educational purposes only
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
void blink();
DWORD WINAPI msg();