Skip to content

Instantly share code, notes, and snippets.

View Mondonno's full-sized avatar
🤯
blew my mind?

MondeO Mondonno

🤯
blew my mind?
View GitHub Profile
@Mondonno
Mondonno / Keycodes.cs
Last active February 3, 2022 11:08
C# Xamarin.IOS/Xamarin.Mac/MAUI keycodes.
public class KeyCodes {
// Layout-independent Keys
// eg.These key codes are always the same key on all layouts.
public const ushort ReturnKey = 0x24;
public const ushort Enter = 0x4C;
public const ushort Tab = 0x30;
public const ushort Space = 0x31;
public const ushort Delete = 0x33;
public const ushort Escape = 0x35;
@Mondonno
Mondonno / csv.py
Last active September 21, 2021 16:38
Analizer and deleter, for csv. Deletes rows where some condictions does not pass, and generates new csv file.
# Copyrighted by Mondonno
OUT_DIR = "./" # folder where is written output
IN_DIR = "./in/" # folder where program searches for input
CSV_FILE_EXTENSION = ".csv" # csv files extension
OUT_FILE_NAME = "out" # name for generated output file
COL_DELIMETER = "\n" # col delimeter that is used in CSV files (new line)
@Mondonno
Mondonno / CollectionsUtil.cs
Created August 27, 2021 08:35
Util for operations on arrays (like push into array, merge arrays, and log arrays)
using System;
using System.Collections.Generic;
namespace CollectionUtilities
{
public static class CollectionsUtil
{
public static void ArrayPush<T>(ref T[] table, object value)
{
@Mondonno
Mondonno / postmanEmptyCellsDeleter.js
Last active October 10, 2023 17:57
Empty JSON cells deleter (can be used in Postman prerequests)
const checkBodyType = (body) => {
if(Array.isArray(body)) return 0;
else if(typeof body == "object") return 1;
else throw new Error("Unknown type of the body");
}
const definePropertySettings = { configurable: true, enumerable: true, writable: true }
const deleteEmptyValues = (currentBody) => {
if(typeof currentBody === "string") currentBody = JSON.parse(currentBody);