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
# MetaProject | |
# -*- coding: utf-8 -*- | |
import socket | |
import sys | |
import re | |
import base64 | |
import binascii | |
import time | |
import zlib | |
import sys |
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 toto : | |
def titi(self): | |
print "poutou" | |
string = "titi" | |
t = toto() | |
if string in dir(t): | |
getattr(t,string)() |
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
received "" | |
no more data from ('127.0.0.1', 57217) | |
waiting for a connection | |
Exception in thread Thread-1: | |
Traceback (most recent call last): | |
File "C:\DEV\Python2\lib\threading.py", line 530, in __bootstrap_inner | |
self.run() | |
File "C:\Users\Bussiere\workspace\dev\metaproject\MetaProject.py", line 147, in run | |
connection, client_address = self.sock.accept() | |
File "C:\DEV\Python2\lib\socket.py", line 200, in accept |
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
""" | |
error : | |
Traceback (most recent call last): | |
File "C:\DEV\Python2\lib\SocketServer.py", line 284, in _handle_request_noblock | |
self.process_request(request, client_address) | |
File "C:\DEV\Python2\lib\SocketServer.py", line 310, in process_request | |
self.finish_request(request, client_address) | |
File "C:\DEV\Python2\lib\SocketServer.py", line 323, in finish_request | |
self.RequestHandlerClass(request, client_address, self) |
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
# MetaProject v 0.2102 | |
# -*- coding: utf-8 -*- | |
import socket | |
import sys | |
import re | |
import base64 | |
import binascii | |
import time | |
import zlib | |
import sys |
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
#tool for meta project | |
# -*- coding: utf-8 -*- | |
import zlib | |
import base64 | |
def encode_img(img) : | |
FILE = open(img,"rb") | |
print "%s compressed :"%img | |
s = base64.encodestring(zlib.compress(FILE.read(),9)) | |
FILE.close() |
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
""" | |
string = "tététététété" | |
print(string) | |
print("*"*2) | |
import os | |
a = 7 | |
b = a | |
a = a -1 | |
c = {'test':'titi'} | |
b = c.copy() |
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
# -*- coding: utf-8 -*- | |
import urllib | |
import re | |
def ouvrirpage(num,question,opener,url): | |
f = opener.open(url) | |
page = f.read() | |
match = re.search("""<a class="navPages".*>%i<\/a>"""%num, page) | |
if match : | |
s = match.start() |
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
Y a-t-il un désigné volontaire pour commencer à distraire la déesse de son ennui ? | |
Chocolat ou Vanille ? | |
Penses tu que les Narutard sont un plaie pour la japanim en France ou une opportunité d'élargir le public afin de mieux la faire connaitre ? | |
- La planète après la découverte d'une source propre et inépuisable d'énergie? | |
Quelle est la couleur de tes chaussettes ? | |
Oppai ou DFC ? | |
Maid ou Miko? | |
HS: QCTX tu as croisé un type comme ça et tu l'as pas écorché vif sur la place publique? | |
3=> C'est quoi ces trucs? | |
C'est quoi une miko? |
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
# -*- coding: utf-8 -*- | |
import random | |
def encode(string,Numeric=False): | |
# a= ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"] | |
A = [4, | |
"/\\", | |
"@", | |
"^", | |
"aye", | |
"∂", |