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 random | |
import pygame | |
from pygame.locals import * | |
class Tree: | |
BURNED = 0 | |
BURNING = 1 | |
ALIVE = 2 |
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 matplotlib.pyplot as pl | |
import numpy as np | |
def uneFonction(): | |
#Qui ne sert à rien, sinon | |
#Prouver à Charles et à Christophe la supériorité de python | |
#mouhahaha | |
pass | |
uneFonction() |
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 numpy as np | |
import matplotlib.pyplot as pl | |
from matplotlib import animation | |
#CONFIG | |
VCC = 5 # V | |
R = int(input("R=")) # Ohms | |
P = 700 # Ohms |
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 gizeh | |
import moviepy.editor as mpy | |
WIDTH, HEIGHT = 300, 200 # Pixels | |
DURATION = 1 # Seconds | |
FPS = 30 | |
NB_CIRCLES = 6 | |
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 numpy as np | |
import matplotlib.pyplot as plt | |
from matplotlib.widgets import Slider, Button, RadioButtons | |
""" | |
Wheel generator by Klafyvel (sivigik.com) | |
""" | |
def wheel(Z, p, alpha, offset=(0, 0)): | |
""" | |
Draws a wheel with Z teeth, spaced with p and a contact angle of alpha. |
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
\documentclass{article} | |
\usepackage{xcolor} | |
\newcommand{\pointicoeurs}{{\tiny\textcolor{red}{\ensuremath{\heartsuit\heartsuit\heartsuit}}} } | |
\begin{document} | |
Ici mettons du contenu \pointicoeurs PAMAL non ? | |
\end{document} |
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 | |
SSH_PROXY=ssh.proxy.tld | |
SSH_USER=user | |
LOCAL_PORT=6666 | |
FTP_USER=ftpuser | |
FTP_PASS=password123 | |
FTP=0.0.0.0 | |
MOUNT_PATH=~/ftp | |
OWNER=user |
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
# Made by Hugo 'klafyvel' Levy-Falk, under MIT License | |
using Plots, Interact, Mux, Logging | |
@info "Dummy noise server started" | |
module Noise2D | |
using Plots, Random, FFTW |
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
using Logging | |
using Plots | |
w0 = 1 | |
zR = 1 | |
λ = π * w0^2 / zR | |
k = 2π/λ | |
ω = 2π |
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 re | |
import pathlib | |
import csv | |
import requests | |
from bs4 import BeautifulSoup | |
reg = re.compile(r"[\w\séàèâäîï]+\((?P<dep>((0[0-9][0-9])|(97[0-9])))\w+\)") | |
FIRST_LINE = [ |
OlderNewer