This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#define WIN32_LEAN_AND_MEAN | |
#include <Windows.h> | |
#include <TlHelp32.h> | |
int main() { | |
HANDLE snapshot = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0); | |
std::cout << snapshot << '\n'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from rich import print | |
from rich.panel import Panel | |
from math import sqrt | |
def average(items: list[int]): | |
n = 0 | |
for i in range(len(items)): | |
n += items[i] | |
return n / len(items) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% I'm using miktex (+ perl) + vscode | |
\documentclass[a4paper, 12pt]{article} | |
\usepackage{authblk} % Title, Author and affiliation formatting | |
\usepackage[utf8]{inputenc} % Encoding | |
\usepackage{datetime} % Time and Date formatting | |
\usepackage{hyperref} % links | |
\hypersetup{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function log() { | |
const red = (message: string) => console.log('\x1b[31m%s\x1b[0m', message); | |
const green = (message: string) => console.log('\x1b[32m%s\x1b[0m', message); | |
const yellow = (message: string) => console.log('\x1b[33m%s\x1b[0m', message); | |
const blue = (message: string) => console.log('\x1b[34m%s\x1b[0m', message); | |
const magenta = (message: string) => console.log('\x1b[35m%s\x1b[0m', message); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /$$ /$$ /$$$$$$$$ | |
# | $$ /$$/| $$_____/ | |
# | $$ /$$/ | $$ | |
# | $$$$$/ | $$$$$ | |
# | $$ $$ | $$__/ | |
# | $$\ $$ | $$ | |
# | $$ \ $$| $$ Author: Kauê Fraga Rodrigues | |
# |__/ \__/|__/ *github.com/kauefraga/{repo} | |
# this ascii was generated with figlet -> https://www.npmjs.com/package/figlet |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
postgres: | |
image: 'bitnami/postgresql' | |
restart: 'always' | |
environment: | |
POSTGRES_USER: 'docker' | |
POSTGRES_DATABASE: 'postgres' | |
ports: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print(""" | |
Código nosso que estás em C | |
Santificado seja vós, Console | |
Venha a nós o vosso array[10] | |
E seja feita, sim, {vossa chave} | |
Assim no if{} como no else{} | |
O for (nosso; de cada dia; nos dai hoje++) | |
Debugai as nossas sentenças | |
Assim como nós colocamos o ponto e vígula esquecido; | |
E não nos deixeis errar identação |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { clear } from 'node:console' | |
import chalk from 'chalk' | |
import figlet from 'figlet' | |
function DynamicClock() { | |
clear() | |
const date = { | |
hours: new Date().getHours(), | |
minutes: new Date().getMinutes(), |
NewerOlder