Skip to content

Instantly share code, notes, and snippets.

View itsdmd's full-sized avatar
📚

Đức Đào itsdmd

📚
  • VNUHCM - University of Science
  • Vietnam
  • 00:48 (UTC +07:00)
  • LinkedIn in/itsdmd
View GitHub Profile
@itsdmd
itsdmd / Carl
Last active March 1, 2022 13:53
Color Paletes
#: black
color0 #434343
color8 #5e5e5e
#: red
color1 #f13460
color9 #fd3e71
@itsdmd
itsdmd / d_ascii_art
Last active February 22, 2022 03:40
ASCII art file for neofetch. 4 = Blue, 6 = White.
${c4}.----------------.
| .--------------. |
| | ${c6}________ ${c4}| | _____ _ _
| | ${c6}|_ ___ `. ${c4}| | |_ _|__ _ __ _ __ ___ (_)_ __ __ _| |
| | ${c6}| | `. \ ${c4}| | | |/ _ \ '__| '_ ` _ \| | '_ \ / _` | |
| | ${c6}| | | | ${c4}| | | | __/ | | | | | | | | | | | (_| | |
| | ${c6}_| |___.´ / ${c4}| | |_|\___|_| |_| |_| |_|_|_| |_|\__,_|_|
| | ${c6}|________.´ ${c4}| | __________________________________________
@itsdmd
itsdmd / Reverse color browser PDF
Created December 26, 2021 13:33
Ctrl + Shift + I -> Console tab
var cover = document.createElement("div");
let css = `
position: fixed;
pointer-events: none;
top: 0;
@itsdmd
itsdmd / CMakeLists.txt
Last active February 22, 2022 03:46
CMakeList template for testing .cpp modules
# Download & Install CMake: certutil.exe -urlcache -split -f "https://github.com/Kitware/CMake/releases/download/v3.22.1/cmake-3.22.1-windows-x86_64.msi" cmake.msi && msiexec /i "cmake.msi"
# Initiate with: cmake -S . -B build && cmake --build build && cd build && ctest & cd ..
cmake_minimum_required(VERSION 3.14)
project(my_project)
# GoogleTest requires at least C++20
set(CMAKE_CXX_STANDARD 20)
include(FetchContent)
@itsdmd
itsdmd / tetris.bat
Created September 14, 2021 12:43 — forked from Hoffs/tetris.bat
Tetris in batch
@echo off
color 4F
title Tetris by
setlocal enabledelayedexpansion
mode con: cols=32 lines=35
set "hashBar=############"
set "ESpace= "
set "LowestYFig=1"