Skip to content

Instantly share code, notes, and snippets.

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

Diaby Almamy Youssouf diabycode

🏠
Working from home
View GitHub Profile
@diabycode
diabycode / pytree.py
Created February 6, 2024 14:05
Windows 'tree' command implemented in python
from pathlib import Path
import argparse
import sys
DEFAULT_PATH = "."
def get_tree(p: Path, root_path: Path, f:bool=False) -> None:
"""Get the tree structure of a directory
@diabycode
diabycode / test.js
Created May 18, 2023 03:17
Test pour post de développeur chez Cinetpay !
class Machine {
constructor(name, machiningTime) {
this.name = name
this.machiningTime = machiningTime
this.isWorking = true
}
repair(time) {
console.log(`${this.name} est en panne ! La réparation prendra ${time} minutes.`)
this.machiningTime += time
@diabycode
diabycode / markdown-cheat-sheet.md
Last active February 28, 2023 00:50 — forked from bradtraversy/sample.md
Markdown Cheat Sheet

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

This text is italic