Skip to content

Instantly share code, notes, and snippets.

View Nicocchi's full-sized avatar
❤️
Coding is knowledge. Knowledge is power. Use wisely

にこっち Nicocchi

❤️
Coding is knowledge. Knowledge is power. Use wisely
View GitHub Profile
@Nicocchi
Nicocchi / init.vim
Last active October 13, 2021 16:55
vim configuration file
" curl -fLO $HOME/.config/nvim/autoload/plug.vim --create-dirs \
" https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
" Install vim-plug if it doesn't installed yet
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
" autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
#include "EventManager.h"
EventManager::EventManager() : m_currentState(StateType(0)), m_hasFocus(true) { LoadBindings(); }
EventManager::~EventManager() {
for (auto &itr : m_bindings) {
delete itr.second;
}
}
#pragma once
#include "Utilities.h"
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
#include <fstream>
#include <functional>
#include <iostream>
#include <sstream>
#include <unordered_map>
#include <vector>
@Nicocchi
Nicocchi / luks-encrypt.sh
Last active August 24, 2022 11:07
A simple shell to mount, unmount and view status of LUKS disk encryption based parition under Linux.
#!/bin/bash
#
# A simple shell to mount, unmount and view status of disk encryption based
# parition under Linux.
# Tested on Debian, Fedora, and Arch base desktops.
# ----------------------------------------------------------------------------
# Author: Nicocchi
# (c) 2019 Jeremy Boggs under GNU GPL v2.0+
# ----------------------------------------------------------------------------
# Last updated: 01/20/2019