Skip to content

Instantly share code, notes, and snippets.

View Davoodeh's full-sized avatar

M. Yas. Davoodeh Davoodeh

View GitHub Profile
@Davoodeh
Davoodeh / csgo_radio_list.org
Last active February 26, 2022 00:48
Everything about CS:GO radio
@Davoodeh
Davoodeh / test-py-script.sh
Created August 14, 2021 18:28
A Python test script for testing simple input based scripts using Pytest
#!/bin/sh
# Generates a python script that checks another input-based python script
# Uses another python file as the reference for "true" answers ($header file)
#
# $1: path to script to test
# $2: path to the file holding answers variable
# $3: optional pytest flags
# $4: if "keep", the script doesn't remove the constructed file
#
# A `header.py` example:
@Davoodeh
Davoodeh / DB.cs
Last active October 11, 2021 13:10
Hacky Database Relation Module/Manager/Model (HDBRM)
using System;
using System.Collections.Generic;
using System.Linq;
using MongoDB.Bson;
using MongoDB.Driver;
// modified HDBRM, upstream: https://gist.github.com/Davoodeh/2cdb5ea7480a4c69e2cf3be086aa3255
namespace HDBRM
{
public class DB
@Davoodeh
Davoodeh / Helpers.cs
Created October 11, 2021 08:49
C# Common Static Helper Methods/Classes and Extensions
using System;
using System.Linq;
using System.IO;
using System.Drawing.Imaging;
using System.Drawing;
using System.Configuration;
using System.Collections.Generic;
using System.Globalization;
namespace Helpers