Skip to content

Instantly share code, notes, and snippets.

@SalahAdDin
SalahAdDin / LectureWidget.cpp
Created August 9, 2019 09:56
A try to create a default widget totally in c++.
// 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"
@bthaman
bthaman / list_environment_variables.py
Last active January 31, 2024 17:32
Python script to list all environment variables, and split the 'path' variable
""" 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(';')]