Skip to content

Instantly share code, notes, and snippets.

View un1nsta11's full-sized avatar
🎯
Focusing

un1nsta11

🎯
Focusing
View GitHub Profile
@un1nsta11
un1nsta11 / ps_logging.ps1
Created September 18, 2023 14:16
Powershell Logging (colorised)
function logging.info{
param ([string]$LogString)
$DateTime = "[{0:MM/dd/yy} {0:HH:mm:ss}]" -f (Get-Date)
$LogMessage = "$Datetime [INFO] $LogString"
Write-Host $LogMessage -ForegroundColor Green
}
function logging.warn{
param ([string]$LogString)
$DateTime = "[{0:MM/dd/yy} {0:HH:mm:ss}]" -f (Get-Date)
@un1nsta11
un1nsta11 / DllTest.cpp
Created January 25, 2023 21:09 — forked from serge1/DllTest.cpp
Using a C++ DLL from Python by involving ctypes package
#ifdef _MSC_VER
#define _SCL_SECURE_NO_WARNINGS
#define _CRT_SECURE_NO_WARNINGS
#endif
#include <string>
#include <sstream>
#include <string.h>
#include "DllTest.h"
@un1nsta11
un1nsta11 / qt_directory_watcher.cpp
Created December 8, 2022 06:29 — forked from iamazeem/qt_directory_watcher.cpp
Qt QFileSystemWatcher Example - Watch a directory and do some processing if it is changed with QEventLoop
// ----------------------------------------------
// List the contents of a directory if changed
// Using QFileSystemWatcher, QDirIterator and
// QEventLoop, and lambda function for connect
// ----------------------------------------------
#include <QObject>
#include <QEventLoop>
#include <QDebug>
#include <QFileSystemWatcher>
@un1nsta11
un1nsta11 / gist:9fc1d53ee325bcc192836ad1f62e98f8
Created March 28, 2021 11:30 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue: