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
/*File summary - Prints file summary all printable, non-printable characters from any file. | |
Can also works as strings extraction from any file just like GNU 'strings'. tool. | |
By Artic Coder. | |
*/ | |
#include <iostream> | |
#include <fstream> | |
#include <vector> | |
std::string ReadFile(std::string file_name); |
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
/*Ascii text Generator in C. - Convert your text or any text to fancy ASCII font. | |
Artic Coder */ | |
#include <stdio.h> | |
#include <string.h> | |
#include <ctype.h> | |
#define TEXT_LEN 0x64 | |
#define FONT_HEIGHT 5 | |
#define FONT_WIDTH 53 |
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. |
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
//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
#Info: Read Csv file from Pandas with header. | |
#Author: Haseeb Mir. | |
#Date: 03/22/2022 | |
#%% | |
import string | |
import pandas as pd | |
def read_csv_list(csv_file:string): | |
df = pd.read_csv(csv_file,index_col=0) # Read Body data-frame. |
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
/* | |
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: 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
#include <stdio.h> | |
#include <ctype.h> | |
#include <stdbool.h> | |
#include <stdlib.h> | |
#include <string.h> | |
bool IsValidNumber(char *p_input, int base); | |
int DetectBase(char *p_input); | |
int main() { |
OlderNewer