Skip to content

Instantly share code, notes, and snippets.

View tmaxmax's full-sized avatar
🎯
Focusing

Teodor Maxim tmaxmax

🎯
Focusing
View GitHub Profile
#!/usr/bin/env bash
error() {
>&2 echo $'\033[1;37mbmoisil: \033[1;31meroare: \033[0m'"$@"
}
HelpMenu() {
echo $'\033[1;37mbmoisil'
echo
echo "-h|--help - deschide acest meniu"
@tmaxmax
tmaxmax / index.html
Last active April 17, 2020 10:18
Hide sidebar when user doesn't need it anymore in vanilla Javascript
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<style>
* {
margin: 0;
padding: 0;
@tmaxmax
tmaxmax / password_generator.c
Created April 13, 2020 08:17
C Password generator, with input overflow handling and memory allocation failure handling
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#define TEO_PRINT_ERRORS 0
int strlen(char* str)
{
int len = 0;