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 asyncio | |
from enum import Enum | |
import queue | |
import time | |
import json | |
from random import seed | |
from random import random | |
traced_events = [] | |
script_start = time.time() |
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 sys | |
log_file = "log.txt" if len(sys.argv) < 2 else sys.argv[1] | |
result = list() # this is the result file | |
insertPosition = dict() | |
currentBlock = list() # current text that will be moved as soon as we encounter next time() | |
parseBlock = False # true if inside the section that should be moved | |
with open(log_file, 'r') as file: |
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
virtual bool eventFilter(QObject *obj, QEvent *event); | |
bool GLWidget::eventFilter(QObject *, QEvent *event) { | |
switch(event->type()) { | |
case QEvent::MouseMove: | |
{ | |
QMouseEvent *e = (QMouseEvent *) event; | |
controlls->mousePositionChanged(e->x(), e->y()); | |
break; |
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
package com.jaa.camera; | |
import android.content.Context; | |
import android.graphics.Bitmap; | |
import android.graphics.BitmapFactory; | |
import android.graphics.Canvas; | |
import android.graphics.ImageFormat; | |
import android.graphics.Paint; | |
import android.graphics.Rect; | |
import android.graphics.YuvImage; |