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
// Fill out your copyright notice in the Description page of Project Settings. | |
#include "LectureWidget.h" | |
#include "Blueprint/WidgetTree.h" | |
#include "Components/Button.h" | |
#include "Components/Image.h" | |
#include "Components/CanvasPanel.h" | |
#include "Components/CanvasPanelSlot.h" | |
#include "Layout/Anchors.h" |
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
""" lists environment variables, and splits elements in path variable """ | |
import os | |
for k, v in sorted(os.environ.items()): | |
print(k+':', v) | |
print('\n') | |
# list elements in path environment variable | |
[print(item) for item in os.environ['PATH'].split(';')] |
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 locale | |
import struct | |
def __readLink(path): | |
# http://stackoverflow.com/a/28952464/1119602 | |
with open(path, 'rb') as stream: | |
content = stream.read() | |
# skip first 20 bytes (HeaderSize and LinkCLSID) | |
# read the LinkFlags structure (4 bytes) | |
lflags = struct.unpack('I', content[0x14:0x18])[0] |