Skip to content

Instantly share code, notes, and snippets.

View zakissimo's full-sized avatar

Zakaria HABRI zakissimo

View GitHub Profile
@zakissimo
zakissimo / keybindings.json
Created September 4, 2024 18:45 — forked from nikolovlazar/keybindings.json
VSCode key bindings to navigate like Neovim
[
// Navigation
{
"key": "ctrl-h",
"command": "workbench.action.navigateLeft"
},
{
"key": "ctrl-l",
"command": "workbench.action.navigateRight"
},
@zakissimo
zakissimo / qwerty-fr
Created March 8, 2024 19:53
qwerty-fr layout
partial alphanumeric_keys
xkb_symbols "qwerty-fr"
{
include "us(basic)"
include "level3(ralt_switch)"
name[Group1]= "US keyboard with french symbols - AltGr combination";
key <TLDE> { [ grave, asciitilde, dead_grave, dead_tilde ] };
DOMAIN=zhabri.42.fr
SSLKEY=/etc/ssl/private/nginx.key
SSLCERT=/etc/ssl/certs/nginx.crt
DATABASE=zakdb
USER=zak
ROOT_PASSWORD=zak
PASSWORD=zak
DBHOST=mariadb
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <bsd/string.h>
//#include "./ex00/ft_strcmp.c"
//#include "./ex01/ft_strncmp.c"
//#include "./ex02/ft_strcat.c"
//#include "./ex03/ft_strncat.c"
//#include "./ex04/ft_strstr.c"
#include "./ex05/ft_strlcat.c"
@zakissimo
zakissimo / codeRunner.lua
Created July 25, 2022 13:45
Code runner for neovim
function _CODE_RUNNER()
vim.cmd("w!")
local type = vim.bo.filetype
if type == "python" then
vim.cmd("!python3 %")
elseif type == "lua" then
vim.cmd("!lua %")
elseif type == "javascript" then
vim.cmd("!node %")
elseif type == "sh" then
from random import randrange
def prompt_level():
user_input = input("Level: ")
try:
to_int = int(user_input)
if to_int > 0:
return randrange(1, to_int+1)
return prompt_level()