Skip to content

Instantly share code, notes, and snippets.

message_secret = "MESSAGE SUPER SECRET"
message_code =""
message_decode =""
#########################
# on chiffre le message #
#########################
for lettre in message_secret : # Pour chaque lettre du message
nb_lettre = ord(lettre) # On récupère le numéro Ascii de la lettre
diff --git a/ScratchInoConvertor/src/model/ScratchInoConv.py b/ScratchInoConvertor/src/model/ScratchInoConv.py
index 6938d85..55d451c 100644
--- a/ScratchInoConvertor/src/model/ScratchInoConv.py
+++ b/ScratchInoConvertor/src/model/ScratchInoConv.py
@@ -7,8 +7,8 @@ import serial
from model import JsonInoConvertorWithARTKV3 as JsonInoConvertor
from model import JsonInoConvertorWithARTKV3 as UploadArduino
-from model import JsonInoConvertorWithARTKV3 as AutoDetectSerial, Message
-from AutoDetectSerial import AutoDetectSerialError
13:13:56: Exécution des étapes pour le projet acquisition...
13:13:56: Débute : "/usr/lib/x86_64-linux-gnu/qt5/bin/qmake" /home/glorf/code/acquisition/acquisition.pro -r -spec linux-g++-64 CONFIG+=debug
13:13:57: Le processus "/usr/lib/x86_64-linux-gnu/qt5/bin/qmake" s'est terminé normalement.
13:13:57: Débute : "/usr/bin/make" -j3
/usr/lib/x86_64-linux-gnu/qt5/bin/uic ../../../code/acquisition/forms/mainwindow.ui -o ui_mainwindow.h
/usr/lib/x86_64-linux-gnu/qt5/bin/uic ../../../code/acquisition/forms/logindialog.ui -o ui_logindialog.h
/usr/lib/x86_64-linux-gnu/qt5/bin/uic ../../../code/acquisition/forms/steamlogindialog.ui -o ui_steamlogindialog.h
g++ -c -m64 -pipe -Wno-inconsistent-missing-override -g -std=c++0x -Wall -W -D_REENTRANT -fPIC -DQT_WEBKITWIDGETS_LIB -DQT_WIDGETS_LIB -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_TESTLIB_LIB -DQT_CORE_LIB -DQT_TESTCASE_BUILDDIR='"/home/glorf/bin/build-acquisition/linux-Debug"' -I../../../code/acquisition -I. -I../../../code/acquisition/deps/QsLog -I../../../
@Gloorf
Gloorf / full_log
Created August 10, 2015 00:45
Acquisition log with multiple shop
INFO 2015-08-10T02:43:59.622 Logged in as: "Gloorf"
INFO 2015-08-10T02:44:00.404 Updating stash tabs
WARN 2015-08-10T02:44:00.404 Submitting shop right now, the request to update shop data will be ignored
INFO 2015-08-10T02:44:01.372 Received character list, there are 13 characters
INFO 2015-08-10T02:44:01.372 Queued GlorfBelts
INFO 2015-08-10T02:44:01.372 Queued WhyDoIKeepThoseScrolls
INFO 2015-08-10T02:44:01.372 Queued Faaee
INFO 2015-08-10T02:44:01.372 Queued GlorfRings
INFO 2015-08-10T02:44:01.372 Queued HoldMyScrollsForMe
INFO 2015-08-10T02:44:01.372 Queued Jiltoor
@Gloorf
Gloorf / watch.py
Created August 9, 2015 09:59
Pytohn script watching for PM & sending notification on new message
#!/usr/bin/python3
# -*- coding: utf8 -*-
import time
import os
from watchdog.observers import Observer
from watchdog.events import FileSystemEventHandler
if os.name == "nt":
windows = True
import subprocess
from win32gui import GetWindowText, GetForegroundWindow
@Gloorf
Gloorf / output_clang
Created August 8, 2015 16:30
output of clang3.4 compilation for acquisition
$ clang++-3.4 -v
Debian clang version 3.4.2-14 (tags/RELEASE_34/dot2-final) (based on LLVM 3.4.2)
Target: x86_64-pc-linux-gnu
Thread model: posix
$ make
/usr/lib/x86_64-linux-gnu/qt5/bin/uic ../acquisition/forms/mainwindow.ui -o ui_mainwindow.h
/usr/lib/x86_64-linux-gnu/qt5/bin/uic ../acquisition/forms/logindialog.ui -o ui_logindialog.h
/usr/lib/x86_64-linux-gnu/qt5/bin/uic ../acquisition/forms/steamlogindialog.ui -o ui_steamlogindialog.h
clang++-3.4 -c -pipe -g -std=c++11 -Wall -W -D_REENTRANT -fPIC -DQT_WEBKITWIDGETS_LIB -DQT_WIDGETS_LIB -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_TESTLIB_LIB -DQT_CORE_LIB -DQT_TESTCASE_BUILDDIR=\"/home/glorf/code/build-acquisition-Clang-Debug\" -I../acquisition -I. -I../acquisition/deps/QsLog -I../acquisition/src -I../acquisition/deps -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtWebKitWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtWebKit -isystem /usr/include/x86_64
INFO 2015-04-21T19:37:54.909 --------------------------------------------------------------------------------
INFO 2015-04-21T19:37:54.909 Built with Qt 5.3.2 running on 5.3.2
ERROR 2015-04-21T19:37:55.509 Failed to parse leagues. The output was:
ERROR 2015-04-21T19:37:55.509 "[{"id":"Standard","description":"The default game mode.","registerAt":null,"event":false,"url":"http:\/\/www.pathofexile.com\/forum\/view-thread\/71278","startAt":"2013-01-23T21:00:00Z","endAt":null,"rules":[]},{"id":"Hardcore","description":"A character killed in the Hardcore league is moved to the Standard league.","registerAt":null,"event":false,"url":"http:\/\/www.pathofexile.com\/forum\/view-thread\/71276","startAt":"2013-01-23T21:00:00Z","endAt":null,"rules":[{"id":4,"name":"Hardcore","description":"A character killed in Hardcore is moved to its parent league."}]},{"id":"Default097","description":"The default game mode.","registerAt":null,"event":false,"url":null,"startAt":null,"endAt":null,"rules":[]},{"id":"Hardcore097","des