Skip to content

Instantly share code, notes, and snippets.

View TheSharpOwl's full-sized avatar
🦊

Mohamad Ziad Alkabakibi TheSharpOwl

🦊
View GitHub Profile
@TheSharpOwl
TheSharpOwl / todolist.txt
Last active October 6, 2023 18:02
Assignment3
TODO list:
id_list: int, primary_key, auto_increment
user_id: int, not nullable
title: string, not nullable
order: int, not nullable
priority: enum (low, high, medium) , not nullable
created_at: timestamp, not nullable, default current_timestamp
updated_at: timestamp, nullable, default current_timestamp, on_update current_timestamp
deleted_at: timestamp, nullable, default null
@TheSharpOwl
TheSharpOwl / main.cpp
Created March 26, 2023 20:19
InnoCar_generator
#include <iostream>
// from the excel file
bool testCases[6][8] = {
{true, true, true, true, true,true, false, false},
{false,false, false, false, false, false, true, true},
{true, true, false, false, false,false,true, true},
{false, false, true, true, true,true,false, false},
{false, false, false , true, false ,true,false, false},
@TheSharpOwl
TheSharpOwl / Growing A Discord Server.md
Created December 3, 2022 16:47 — forked from jagrosh/Growing A Discord Server.md
Tips for creating and growing a new Discord server

This guide is kept up-to-date as Discord and available resources change!
A basic server template is available here

Creating and Growing a Discord Server

logo

Introduction

Hello! I'm jagrosh#4824! I'm writing this guide to try to help new server owners set up and grow their servers, which is a commonly-requested topic. It's very easy to go about this the wrong way, so it's best to be prepared and make smart decisions so that your community can flourish!

Background

@TheSharpOwl
TheSharpOwl / Singleton_thread_safe.cpp
Created July 28, 2022 19:09
Singleton_thread_safe
#include <vector>
#include <mutex>
#include <iostream>
class Configuration
{
protected:
Configuration(uint32_t width, uint32_t height)
: m_width(width), m_height(height)
#include <vector>
#include <mutex>
#include <iostream>
class Configuration
{
protected:
Configuration(uint32_t width, uint32_t height)
: m_width(width), m_height(height)
@TheSharpOwl
TheSharpOwl / git_cheat_sheet.ps
Last active July 27, 2022 11:40
Common commands for git (especially in facing problems)
# update and init submodules
git submodule update --init --recursive
# --------------------------------------------------------------------------------------------------------------------------
# pull from origin master
git pull origin master
@TheSharpOwl
TheSharpOwl / pdf_to_dark.js
Created July 7, 2022 22:23
Firefox pdf dark mode
// just paste this in the developer console, it might need writing "javascript:" (without quotes) before it
viewer.style = 'filter: grayscale(1) invert(1) sepia(1)'
@TheSharpOwl
TheSharpOwl / gist:9175c2c4392738bda26d725e650f05d4
Created July 7, 2022 22:16 — 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:
// Use IDE code blocks
// main function is the entry point
#include<stdio.h>
// data types
int x;
long long int y = 1125899906842624;
// 4 bytes = 32 bit = (2^32) -1
@TheSharpOwl
TheSharpOwl / Sorting.cpp
Last active February 6, 2021 14:04
Sorting algorithms
#include <iostream>
#include<algorithm>
#include<stdio.h>
using namespace std;
int a[102], n;
// O(n^2)
void SelectionSort(int size, int a[])