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 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]) |
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
df = df.unstack().reset_index() | |
df.columns = ["t", "z", "target"] |
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
# 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) |
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
def check_collision(self, other_player): | |
for bullet in other_player.bullets: | |
if self.colliderect(bullet): | |
self.pv -= 1 | |
other_player.bullets.remove(bullet) |
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
{ | |
"appName": "War Game", | |
"windowSettings": { | |
"WIDTH": 900, | |
"HEIGHT": 500 | |
}, | |
"FPS": 60 | |
} |
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
# 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 |