This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
// Define the number of orbs | |
#define NUM_ORBS 11 | |
// Map dimensions | |
#define MAP_WIDTH 10 | |
#define MAP_HEIGHT 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CC = /usr/bin/cc65 | |
CA = /usr/bin/ca65 | |
CL = /usr/bin/cl65 | |
all: | |
$(CC) main.c | |
$(CA) main.s | |
$(CL) main.o | |
clean: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Joe is sick v1 | |
name = str(input("What's your name ?")) | |
print(f"Program : {name} ! {name} !") | |
print("Program : It's Joe ! He's sick !") | |
print(f"{name} : Who's Joe") | |
print("Program : Joe Mama") | |
print(f"{name} : What ?") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "ASCII to HEX alphabet" | |
letters () { | |
A=0x41 | |
B=0x42 | |
C=0x43 | |
D=0x44 | |
E=0x45 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
git add . | |
# Commit Message | |
commmitMsg=$(gum input --placeholder="Commit message") | |
git commit -S -m "$commmitMsg" | |
git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Initialisation | |
argent = 20 | |
semaine = 0 | |
# Boucle de simulation | |
while True: | |
# Grand-père donne 10 $ | |
argent += 10 | |
# Soeur vole 3 $ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#define KNRM "\x1B[0m" | |
#define KRED "\x1B[31m" | |
#define KGRN "\x1B[32m" | |
#define KYEL "\x1B[33m" | |
#define KBLU "\x1B[34m" | |
#define KMAG "\x1B[35m" | |
#define KCYN "\x1B[36m" | |
#define KWHT "\x1B[37m" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# serialcomic.py | |
import machine | |
import os | |
def add(): | |
title = input("Enter comic title: ") | |
uid = input("Enter UID: ") | |
issn = input("Enter ISSN: ") | |
release_date = input("Enter release date: ") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from machine import Pin | |
import time | |
import math | |
memory = {} | |
print("MPY CALCULATING TERMINAL") | |
def calculate(expression): | |
try: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import psutil | |
import os | |
import subprocess | |
def get_cpu_temp(): | |
temp = psutil.sensors_temperatures()['cpu_thermal'][0].current | |
return temp | |
ip = "hostname -I" | |
uptime = "uptime -p" |
NewerOlder