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 serial | |
import serial.tools.list_ports | |
import threading | |
from time import sleep | |
class PortChecker: | |
def __init__(self, port_name: str): | |
self.port_name = port_name | |
self.thread = threading.Thread(target=self._run) | |
self._abort = False |
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 use_terminal_descriptors() -> Iterable[SectionItem]: | |
yield Symbol('__terminal_start').assign(here) | |
yield UseInput(section='.terminal.description').keep() | |
yield Symbol('__terminal_end').assign(here) | |
class MyScript(ArmQEMU): | |
def __init__(self): | |
super(MyScript, self).__init__() | |
self.FLASH = Segment(origin=0x0, length=10 * 1024 * 1024, attributes=SegmentAttributes.ProgramMemory) |
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
[67/10/77 1.227s] Building CXX object _deps/nana-build/CMakeFiles/nana.dir/source/internationalization.cpp.obj | |
FAILED: _deps/nana-build/CMakeFiles/nana.dir/source/internationalization.cpp.obj | |
C:\KPLabs\toolchains\mingw-w64\bin\x86_64-w64-mingw32-g++.exe -DNANA_IGNORE_CONF -DSTD_FILESYSTEM_NOT_SUPPORTED -DWIN32 -I_deps/nana-src/include -fdiagnostics-color=always -Wall -fmax-errors=3 -std=gnu++17 -MD -MT _deps/nana-build/CMakeFiles/nana.dir/source/internationalization.cpp.obj -MF _deps\nana-build\CMakeFiles\nana.dir\source\internationalization.cpp.obj.d -o _deps/nana-build/CMakeFiles/nana.dir/source/internationalization.cpp.obj -c _deps/nana-src/source/internationalization.cpp | |
In file included from C:/KPLabs/toolchains/mingw-w64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/filesystem:37, | |
from _deps/nana-src/include/nana/filesystem/filesystem.hpp:110, | |
from _deps/nana-src/include/nana/paint/graphics.hpp:20, | |
from _deps/nana-src/include/nana/gui/effects.hpp:15 |
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
#include <cstdarg> | |
#include <cstdint> | |
#include <cstdio> | |
#include "libopencm3/stm32/usart.h" | |
#include "libopencmsis/core_cm3.h" | |
static void PanicPrintf(const char* fmt, ...) | |
{ | |
va_list l; | |
va_start(l, fmt); |
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
. | |
./include_typeslots.h | |
./include_pgen.h | |
./include_methodobject.h | |
./include_code.h | |
./include_longobject.h | |
./include_listobject.h | |
./include_dynamic_annotations.h | |
./include_pyport.h | |
./include_warnings.h |
This file has been truncated, but you can view the full file.
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
NOTE "CREATOR" "FlashPro Version: v11.9 SP2"; | |
NOTE "CAPTURE" "11.9.2.1"; | |
NOTE "DEVICE" "M2S010"; | |
NOTE "PACKAGE" "M2S010-vf400"; | |
NOTE "DATE" "2019/01/11"; | |
NOTE "TIME" "21:54:04"; | |
NOTE "STAPL_VERSION" "JESD71"; | |
NOTE "VENDOR" "Microsemi Corporation"; | |
NOTE "IDCODE" "0F8031CF"; | |
NOTE "IDMASK" "0FFFFFFF"; |
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
using System; | |
class A{} | |
class B{} | |
class G<T> {} | |
class Program | |
{ | |
public static void Main() |
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
# | |
# Automatically generated file; DO NOT EDIT. | |
# crosstool-NG 0 Configuration | |
# | |
CT_CONFIGURE_has_static_link=y | |
CT_CONFIGURE_has_wget=y | |
CT_CONFIGURE_has_curl=y | |
CT_CONFIGURE_has_stat_flavor_GNU=y | |
CT_CONFIGURE_has_make_3_81_or_newer=y | |
CT_CONFIGURE_has_libtool_2_4_or_newer=y |
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
0 | |
~ | |
~ | |
~ | |
~ | |
~ | |
~ | |
~ | |
~ | |
~ |
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 response_frames | |
p = "C:\\PW-Sat\\ramki.txt" | |
with open(p, 'r') as f: | |
lines = f.readlines() | |
def clean_line(line): | |
return map(lambda x: int(x, 16), line.split(' ')[18:]) |