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
""" To use: install LLM studio (or Ollama), clone OpenVoice, run this script in the OpenVoice directory | |
git clone https://github.com/myshell-ai/OpenVoice | |
cd OpenVoice | |
git clone https://huggingface.co/myshell-ai/OpenVoice | |
cp -r OpenVoice/* . | |
pip install whisper pynput pyaudio | |
""" | |
from openai import OpenAI | |
import time |
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 | |
# Get the filename from the command line argument | |
filename=$1 | |
debug=0 | |
cpp_version="c++17" | |
# Determine the file extension, compiler, and language based on the filename | |
if [[ $filename == *.c ]]; then | |
extension=".c" |
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
/* | |
Description: Cross-Platform Memory Size Detector in C | |
Author: HeavenHM | |
Language: C | |
Date: 12-12-2023 | |
Compilers Tested: GCC, Clang, MSVC. | |
Platforms Tested: Unix,Linux, MacOS, Windows. | |
*/ | |
// Includes for cross-platform compatibility. |
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 io | |
from pydub import AudioSegment | |
from pydub.generators import Sine | |
from pydub.playback import play | |
from pynput.keyboard import Key, Listener | |
import threading | |
from math import log2 | |
# Function to generate a sine wave tone | |
def generate_tone(frequency, duration=500): |
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
/* | |
Info: C++ General way of printing data of container including List, Sets, Maps, Stack, Queues, etc. | |
Author: Haseeb Mir @2022. | |
*/ | |
#include <iostream> // For input/output operations | |
#include <map> // For std::map | |
#include <stack> // For std::stack | |
#include <queue> // For std::queue |
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
/* | |
Info: C++ Data type resolve in Compile-Time using T-Template and RunTime using TypeId. | |
Author: Haseeb Mir @2022. | |
*/ | |
#include <iostream> | |
#include <list> | |
#include <map> | |
#include <string> | |
#include <typeinfo> | |
#include <string_view> |
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
""" | |
Info: XML Parser using Element Tree and BeautifulSoup. | |
Author: Haseeb Mir. | |
Date: 05/26/2022 | |
""" | |
#Import the Package modules. | |
import xml.etree.ElementTree as xml | |
from bs4 import BeautifulSoup |
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
//UI-Dialogs and MessageBox. | |
internal static void ShowWarning(string warnMsg, string caption = "WARNING") { | |
DialogMsgBox.ShowBox(caption, warnMsg, MsgBoxButtons.Ok); | |
} | |
internal static void ShowError(string errMsg, string caption = "ERROR") { | |
DialogMsgBox.ShowBox(caption, errMsg, MsgBoxButtons.Ok); | |
} | |
internal static void LogException(string methodName, Exception ex) { |
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
/** | |
* @description - Read any ASCII,BINARY or HEX file. | |
* @param - Source file name and file type. | |
* @return - Returns data in tuple format,use std::get<TUPLE_ID>(TUPLE_OBJ) to get data. | |
*/ | |
/*Including STD-C++ libraries*/ | |
#include <iostream> /*For basic I/O.*/ | |
#include <fstream> /*For basic I/O.*/ | |
#include <sstream> /*For basic I/O.*/ | |
#include <vector> /*For STL vector.*/ |
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
/* AutoCloseMessageBox - C++ Implementation of original code of C# from CodeProject https://www.codeproject.com/Articles/7968/MessageBox-with-a-timeout-for-NET | |
By Artic Coder. | |
*/ | |
#undef UNICODE | |
#include <iostream> | |
#include <Windows.h> | |
using std::string; | |
//Pointer to Hook functions. |
NewerOlder