Skip to content

Instantly share code, notes, and snippets.

View Raimo33's full-sized avatar
🧪

Raimo Raimo33

🧪
View GitHub Profile
@Raimo33
Raimo33 / .clang-format
Last active June 4, 2024 19:39
c++ formatting
BasedOnStyle: LLVM
IndentWidth: 4
TabWidth: 4
UseTab: Always
BreakBeforeBraces: Custom
AllowShortIfStatementsOnASingleLine: true
ColumnLimit: 0
AccessModifierOffset: -2
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: false
@Raimo33
Raimo33 / fetch_and_open_repo.sh
Last active May 2, 2024 21:09
Open most recent repo
#!/bin/bash
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
export DISPLAY=:0
# Ensure the X server is accessible
xhost local:root > /dev/null 2>&1
function check_internet()
{
## Check if Google's DNS can be reached
@Raimo33
Raimo33 / DataStructures.hpp
Last active May 9, 2024 12:00
Data structures (c++)
//array di dimensione fissa, non ridimensionabile
#include <array> // [1, 2, 3, 4, 5]
//un array malloccato e gestito in automatico
#include <vector> // [1, 2, 3, 4, 5]
// singly linked list
#include <forward_list> // [1] -> [2] -> [3] -> [4] -> [5]
//doubly linked list
@Raimo33
Raimo33 / Makefile
Last active June 21, 2024 08:52
Makefile Standard (c++)
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: craimond <bomboclat@bidol.juis> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2024/04/26 15:33:59 by craimond #+# #+# #
# Updated: 2024/06/21 10:51:48 by craimond ### ########.fr #
# #