Skip to content

Instantly share code, notes, and snippets.

View midsonlajeanty's full-sized avatar
🎯
Focusing

Louis Midson Lajeanty midsonlajeanty

🎯
Focusing
View GitHub Profile
@midsonlajeanty
midsonlajeanty / nonb_majik.py
Last active June 23, 2022 02:18
Jwèt Nonb Majik
from random import randrange
MAX = 100
CHANS = 5
nonb_kache = randrange(0, MAX)
print("Nonb_kache: ", nonb_kache)
print(f"Byenvini nan Jwèt la !\nOu gen {CHANS} Chans pou w jwenn yon nonb ant 0 ak {MAX}\n")
while True:
@midsonlajeanty
midsonlajeanty / generate_epsedo.py
Last active October 30, 2022 00:09
Generate Epsedo pou Rezo Sosyal
from random import choice, randint
def clspace(string: str) -> str:
return string.replace(" ", "")
def get_len(string: str) -> str:
return len(clspace(string))
@midsonlajeanty
midsonlajeanty / viris.py
Created July 8, 2022 12:14
Viris Enfomatik
import os
from sys import platform
from os import environ
import time
OS = platform
USER = environ['USERNAME']
PASSWORD = "1234"
MESSAGE = """
# # ##### # #
@midsonlajeanty
midsonlajeanty / game.js
Last active October 29, 2022 21:07
Woch, Papye, Sizo ...
const CHOICES = ['W', 'P', 'S']
const WIN_CHOICES = ['PW', 'SP', 'WS']
let wantToContinue = true
let ordi_choice
let ordi_score = 0
let user_choice
let user_score = 0
@midsonlajeanty
midsonlajeanty / tetris_simulator.py
Created October 23, 2023 22:07
Tetris Simulator - Python | L4 | ESIH
import os
import time
import random
BLANK_CASE:str = ' '
FILLED_CASE:str = '🧱'
BOARD_SIZE: int = 6
clear = lambda: os.system('clear')
@midsonlajeanty
midsonlajeanty / data.csv
Last active January 23, 2024 04:09
L4 - Scraping Project
We can make this file beautiful and searchable if this error is corrected: It looks like row 4 should actually have 4 columns, instead of 2. in line 3.
title,image,link,description
Ron DeSantis abandonne la course à la Maison Blanche et soutiendra Trump,https://cdn.lenouvelliste.com/shared/skeleton-image.webp,https://lenouvelliste.com/article/246449/ron-desantis-abandonne-la-course-a-la-maison-blanche-et-soutiendra-trump,"Le gouverneur de Floride Ron DeSantis, un temps perçu comme le principal rival de Donald Trump sur sa route vers l'investiture républicaine, a annoncé dimanche jeter l'éponge et se rallier derrière le milliardaire en vue de la présidentielle de novembre."
Le pape demande la libération des six religieuses enlevées à Port-au-Prince,https://cdn.lenouvelliste.com/shared/skeleton-image.webp,https://lenouvelliste.com/article/246446/le-pape-demande-la-liberation-des-six-religieuses-enlevees-a-port-au-prince,"Le pape François a appelé dimanche à la libération d'un groupe de huit personnes, dont six religieuses, enlevées en Haïti, pays ravagé par la violence des gangs."
Port-de-Paix : nouvelle vague de kidnapping sur la route nationale #5,https://cd
@midsonlajeanty
midsonlajeanty / l4_tp_grid.dart
Last active February 26, 2024 22:30
L4 TP GRID ! - main.dart
import 'dart:math';
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});