Skip to content

Instantly share code, notes, and snippets.

View TheSharpOwl's full-sized avatar
🦊

Mohamad Ziad Alkabakibi TheSharpOwl

🦊
View GitHub Profile
@TheSharpOwl
TheSharpOwl / A - Bali Sculptures.cpp
Created February 27, 2017 17:37 — forked from johnchen902/A - Bali Sculptures.cpp
APIO 2015 Solution in Code
#include <cstdio>
#include <algorithm>
using namespace std;
int n, a, b;
int y[2000];
long long sum[2001];
bool dp1[101][101];
bool ok1(long long mask) {
@TheSharpOwl
TheSharpOwl / A - Bali Sculptures.cpp
Created February 27, 2017 17:37 — forked from johnchen902/A - Bali Sculptures.cpp
APIO 2015 Solution in Code
#include <cstdio>
#include <algorithm>
using namespace std;
int n, a, b;
int y[2000];
long long sum[2001];
bool dp1[101][101];
bool ok1(long long mask) {
@TheSharpOwl
TheSharpOwl / LinkedList.java
Created February 12, 2019 18:55 — forked from ericrswanny/LinkedList.java
A linked list class implemented in Java
/*============================================================================
Name : LinkedList.java
Author : Eric Swanson
Date : Sep 7, 2011
Version :
Description :
Copyright (C) 2011 Eric Swanson
This program is free software: you can redistribute it and/or modify
@TheSharpOwl
TheSharpOwl / singlyLinkedList.c
Created March 14, 2019 08:16 — forked from ArnonEilat/singlyLinkedList.c
Very simple singly linked list implementation in C with usage example.
#include <stdio.h>
#include <stdlib.h>
typedef struct {
int info;
} DATA;
typedef struct node {
DATA data;
struct node* next;
@TheSharpOwl
TheSharpOwl / cheatsheet.md
Created January 30, 2020 19:30 — forked from LKS90/cheatsheet.md
Cheatsheet for LaTex, using Markdown for markup. I use this with atom.io and markdown-preview-plus to write math stuff

Description

Cheatsheet for LaTex, using Markdown for markup. I use this with atom.io and πŸ“¦markdown-preview-plus to write math stuff. πŸ“¦keyboard-localization is necessary when using an international layout (like [swiss] german).

Further Reference and source: ftp://ftp.ams.org/pub/tex/doc/amsmath/short-math-guide.pdf

Example expressions / functions

@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[])
// 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 / 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:
@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 / 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