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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
################################################## | |
# File: 2024-08-12 | |
# To launch python script on remote server | |
# | |
# Usage: python remote_launch.py --log_file log_credentials.yaml --host '192.168.0.209' --script myscript.py | |
# The current script should be in the same directory as credentials.yaml, the script and bash_run.sh. |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
This is a minimal example to show the usage of dearpygui | |
to construct an app of nodes manipulations. | |
The basic functions includ: | |
* drag a button to create a node | |
* change node theme | |
* show some message based on the selected node |
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
/* | |
Simple game example using X11. | |
*/ | |
#include <X11/Xlib.h> | |
#include <X11/Xutil.h> | |
#include <X11/Xos.h> | |
#include <iostream> | |
#include <unistd.h> |
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
/* | |
Example of image loading to pixels and display using SDL | |
The program is a minimal implementation of image loading | |
using SDL and display it on a window. It creates first a | |
surface and retrieves the pixels from the last. Then it | |
updates the texture using the pixels and area of the image. | |
*/ |
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
/* | |
A minimal use case of SDL Audio and whisper.cpp | |
*/ | |
/* | |
The program, upon launch, record a piece of recording of up to | |
1 minute and transcribe it into text on the terminal. | |
For more info on whipser.cpp: https://github.com/ggerganov/whisper.cpp/blob/master/CMakeLists.txt | |
*/ | |
#include <SDL2/SDL.h> |
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
/* | |
This software is provided 'as-is', without any express or implied | |
warranty. In no event will the authors be held liable for any damages arising | |
from the use of this software. | |
Permission is granted to anyone to use this software for any purpose, | |
including commercial applications, and to alter it and redistribute it | |
freely. | |
*/ | |
/* |
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
#!/usr/bin/env python | |
''' | |
This program is used to attach a file to a defect in HPQC. | |
''' | |
import requests | |
from requests import Request, Session | |
from requests.auth import HTTPBasicAuth | |
import json,io |