Skip to content

Instantly share code, notes, and snippets.

View Odisseu93's full-sized avatar
🏠
Working from home

Ulisses Silvério Odisseu93

🏠
Working from home
View GitHub Profile
@Odisseu93
Odisseu93 / my_bash.sh
Last active April 13, 2025 20:57
Start a Node.js project using the Domain-Driven Design methodology
node-ddd() {
PROJECT_NAME=${1:-my-node-project}
echo "🔧 Criando estrutura DDD para o projeto '$PROJECT_NAME'..."
# create directories structure
mkdir -p $PROJECT_NAME/src/domain/entities
mkdir -p $PROJECT_NAME/src/domain/value-objects
mkdir -p $PROJECT_NAME/src/domain/repositories
@Odisseu93
Odisseu93 / localeCompare_example.ts
Last active July 17, 2024 14:44
An example of the localeCompare javascript method, which returns a number indicating whether a reference string comes before or after, or is the same as the given string in the sort order.
const alphabet = [
'a',
'b',
'c',
'd',
'e',
'f',
'g',
'h',
'i',
@Odisseu93
Odisseu93 / composedArrowFunction.js
Created March 20, 2024 17:42
Composed arrow function in Javascript
const composedArrowFunction = (arg1, arg2) => (fn) => {
fn({arg1, arg2})
}
composedArrowFunction(1, 2)(console.log); // {arg1: 1, arg2: 2}
@Odisseu93
Odisseu93 / markdown-text-101.md
Last active May 30, 2022 23:16 — forked from matthewzring/markdown-text-101.md
A guide to Markdown on Discord.

Markdown Text 101

Want to inject some flavor into your everyday text chat? You're in luck! Discord uses Markdown, a simple plain text formatting system that'll help you make your sentences stand out. Here's how to do it! Just add a few characters before & after your desired text to change your text! I'll show you some examples...

Sweet Styles

Italics *italics* or _italics_

Underline italics __*underline italics*__