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
#!/usr/bin/env python3 | |
import asyncio | |
import json | |
import random | |
from websockets import connect | |
import yaml | |
entities = [ | |
"light.office_light", |
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 "MyGameInstance.h" | |
void UMyGameInstance::Init() | |
{ | |
this->bSimulateTime = false; | |
Super::Init(); | |
if (!this->hasPointCloud) { | |
PointCloudActor = GetWorld()->SpawnActor<ALidarPointCloudActor>(); |
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
#include "MyGameInstance.h" | |
#include "LidarPointCloud.h" | |
#include "LidarPointCloudShared.h" | |
#include "LidarPointCloudActor.h" | |
#include "LidarPointCloudComponent.h" | |
#include "Math/Color.h" | |
void UMyGameInstance::Init() | |
{ |
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 bpy | |
import math | |
# Set the number of vertices, radius, and depth of the semi-circle | |
num_vertices = 16 | |
radius = 1.0 | |
depth = 0.5 | |
# thickness between inner and outer part of the shell |
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
# generate JSONSchema to validate YAML files as CLI | |
import os | |
from pathlib import Path | |
import yaml | |
import json | |
import argparse | |
from genson import SchemaBuilder | |
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
#!/bin/bash | |
# see comment by Florian Müllner on https://fedoramagazine.org/alt-tab-gnome-shell-extension/ | |
gsettings set org.gnome.desktop.wm.keybindings switch-applications "[]" | |
gsettings set org.gnome.desktop.wm.keybindings switch-windows "['<Alt>Tab']" |
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
def xmas_tree(inverted=False, radius=6): | |
tree_map = [] | |
in_order = range(radius+1) | |
if inverted: | |
in_order = range(radius+1, 0, -1) | |
for y in in_order: | |
y_list = [] | |
tree_map.append(y_list) | |
for x in range(radius*2+1): | |
sign = 1 |
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
#!/bin/bash | |
docker system prune -fa | |
docker images purge | |
docker rmi $(docker images -a -q) | |
docker volume prune -f |
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
#EXTM3U | |
#EXTINF:0,ZDF HD | |
#EXTVLCOPT:network-caching=1000 | |
rtsp://192.168.178.1:554/?avm=1&freq=450&bw=8&msys=dvbc&mtype=256qam&sr=6900&specinv=1&pids=0,16,17,18,20,6100,6110,6120,6121,6123,6130,6131,6170 | |
#EXTINF:0,rbb Berlin HD | |
#EXTVLCOPT:network-caching=1000 | |
rtsp://192.168.178.1:554/?avm=1&freq=450&bw=8&msys=dvbc&mtype=256qam&sr=6900&specinv=1&pids=0,16,17,18,20,5310,5311,677,2171,2176,5312,5313,5314,5315 | |
#EXTINF:0,ZDFinfo HD | |
#EXTVLCOPT:network-caching=1000 | |
rtsp://192.168.178.1:554/?avm=1&freq=450&bw=8&msys=dvbc&mtype=256qam&sr=6900&specinv=1&pids=0,16,17,18,20,6700,6710,6720,6721,6723,6730,6731,6770 |
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
FROM ubuntu:20.04 | |
RUN apt-get update -y \ | |
&& apt-get install -y git python3-yaml git wget python-is-python3 \ | |
&& rm -rf /var/lib/apt/lists/* | |
RUN wget https://raw.githubusercontent.com/dfki-ric/bagel_wiki/master/bootstrap_magic.sh \ | |
&& bash bootstrap_magic.sh |
NewerOlder