Skip to content

Instantly share code, notes, and snippets.

View Klafyvel's full-sized avatar

Hugo LEVY-FALK Klafyvel

View GitHub Profile
import random
import pygame
from pygame.locals import *
class Tree:
BURNED = 0
BURNING = 1
ALIVE = 2
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()
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
import gizeh
import moviepy.editor as mpy
WIDTH, HEIGHT = 300, 200 # Pixels
DURATION = 1 # Seconds
FPS = 30
NB_CIRCLES = 6
@Klafyvel
Klafyvel / wheel.py
Last active January 29, 2017 12:24
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.
\documentclass{article}
\usepackage{xcolor}
\newcommand{\pointicoeurs}{{\tiny\textcolor{red}{\ensuremath{\heartsuit\heartsuit\heartsuit}}} }
\begin{document}
Ici mettons du contenu \pointicoeurs PAMAL non ?
\end{document}
#! /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
# 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
@Klafyvel
Klafyvel / gaussian_beam_anim.jl
Created February 13, 2020 15:02
Gaussian Beam animation
using Logging
using Plots
w0 = 1
zR = 1
λ = π * w0^2 / zR
k = 2π/λ
ω = 2π
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 = [