This file contains hidden or 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 email, getpass, imaplib, os | |
detach_dir = '.' # directory where to save attachments (default: current) | |
#put your username here | |
user = "" | |
#put your password here | |
pwd = "" | |
# connecting to the gmail imap server | |
m = imaplib.IMAP4_SSL("imap.gmail.com") |
This file contains hidden or 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 | |
num = [0]*50 | |
num_comp = [0]*11 | |
i = 0 | |
while i < 50: | |
num[i] = i +1 | |
i = i + 1 |
This file contains hidden or 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
class Bussiere_1_01(object): | |
def __init__(self): | |
self.name = "bussiere" | |
self.age = 27 | |
self.age_affectif = 10 | |
self.signe_chinois = "coq" | |
self.defauts = ["Obsede","Vantard","Besoin constant de se montrer","\"lourd\"","Toujours envie d'aider les gens parfois un peu trop","Trop bavards parfois"] | |
self.qualites = ["Calin","Attentionne","Protecteur","Tendance a aider les gens","gentil"] | |
self.competences =["Serrurie":10,"Shibari":12,"Python":13,"Capoeira":12,"Photo":11,"Escalade":12,"Taijutsu":11,"Comedie":13, "Baratin":14,"Discussion":14,"Conduite":7,"Cuisine":12,"Informatique":13,"Jeux":12,"Medecine":6,"Electricité":10,"Graphisme":8,"Comptabilite":8,"Droit":10,"Fiscalité":11,"Bricolage":11,"Musique":10] | |
self.interet = ["manga": ["clamp","blame","GITS"],"anime":["Haruhi","GITS","Hellsing","Hanaukyo maid"],"livre":["gaiman","pratchett","hard science","sf"]] |
This file contains hidden or 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 os | |
chemin = "Projets/jackpoint/jackpoint" | |
#(, | |
#(models.Model) | |
#(null=True,blank=True) | |
#models.NullBooleanField(blank=True) | |
#models.BooleanField(null=True,blank=True) | |
def flistemodel(chemin): | |
listfile = os.listdir(chemin) |
This file contains hidden or 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 os | |
chemin = "D:\Documents\Projets_Perso\Yuki" | |
#(, | |
#(models.Model) | |
#(null=True,blank=True) | |
#models.NullBooleanField(blank=True) | |
#models.BooleanField(null=True,blank=True) | |
def liste_app(chemin): | |
listfile = os.listdir(chemin) |
This file contains hidden or 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 os | |
chemin = "D:\Documents\Projets_Perso\jackpoint\jackpoint" | |
def liste_app(chemin): | |
listfile = os.listdir(chemin) | |
listeapp = [] | |
for f in listfile : | |
if os.path.isdir(os.path.join(chemin, f)): |
This file contains hidden or 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
depuis cmb de tps etes vs ensemble précisément ? | |
date précise de votre rencontre | |
combien de tps pensez vs rester ensemb | |
le nom de son ex le/la plus récente | |
sa taille de pantalon | |
lequel de vos sous vetements prefere t'il/t'elle? | |
la marque de son parfum | |
l'age de sa mere | |
la date d'anniv de son frere/sa soeur |
This file contains hidden or 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 additionheure(heuredebut,heurefin): | |
tabdebut = heuredebut.split(":") | |
tabfin = heurefin.split(":") | |
ajout = 0 | |
minute = int(tabdebut[1])+int(tabfin[1]) | |
if minute >= 60 : | |
ajout += 1 | |
minute = minute - 60 |
This file contains hidden or 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
class Humeur(object): | |
#notation americain dans les mois | |
def __init__(self): | |
self.title = "Humeur du dev de jackpoint" | |
self.corpus = "Debut du bousin" | |
self.envie = None | |
self.poids = 106 | |
def 02_10_2012(self): | |
self.corpus = "Besoin de remotivation et d'arreter de me disperser" | |
self.envie = "Etre en couple." |
This file contains hidden or 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
# todo : | |
# Pouvoir doubler les bords ou le haut ex : ** | |
# Parser le html pour prendre que le affiché ex <a href="">titi</a> ne prendre que titi. | |
# ou encore recupérer la taille d'un formulaire. | |
# prevoir un systeme de ligne ou colonne aussi. | |
# Bussiere | |
string = ["totosdjfsdfsdfdsfsdfsdfsdfsdfsdft","titigsgsgsgsgsgsgs","tata"] | |
texte = """Qui n’a jamais eu besoin d’un coup de main, et aucune idée d’où trouver de l’aide ? |