Skip to content

Instantly share code, notes, and snippets.

View p-acDev's full-sized avatar
👋
Happy to collaborate on open source projects

p-acDev

👋
Happy to collaborate on open source projects
View GitHub Profile
import pandas as pd
import numpy as np
from scipy.interpolate import griddata
import pandas as pd
import sys
raw_filename = sys.argv[1]
dx = int(sys.argv[2])
dy = int(sys.argv[3])
@p-acDev
p-acDev / unstack_df.py
Last active October 17, 2021 18:18
Comment formater un DataFrame pour le ML
df = df.unstack().reset_index()
df.columns = ["t", "z", "target"]
@p-acDev
p-acDev / naming.py
Last active October 11, 2021 20:06
Define unique part name
# number of part defining a structure
n = 3
# if we have 10 structures and we want to name each part of the structure with unique name
for i in range(10):
part_name = "S" + str((i//n + 1)) +"_B" + str(i%n + 1)
@p-acDev
p-acDev / launch_game.py
Last active April 5, 2021 18:47
check_collision
def check_collision(self, other_player):
for bullet in other_player.bullets:
if self.colliderect(bullet):
self.pv -= 1
other_player.bullets.remove(bullet)
{
"appName": "War Game",
"windowSettings": {
"WIDTH": 900,
"HEIGHT": 500
},
"FPS": 60
}
@p-acDev
p-acDev / show_wifi.bat
Last active March 24, 2021 11:47
Comment obtenir le mot de passe wifi si on l'a déjà renseigné au moins une fois
# lister d'abord les SSID
netsh wlan show networks
# une fois qu'on a récupéré le réseau auquel on veut se connecter
netsh wlan show profile name="NETWORK" key=clear