Skip to content

Instantly share code, notes, and snippets.

View wribeiiro's full-sized avatar
🐘
Sept 28, daylight, the monsters have overtaken the city. Somehow I'm still alive

Wellisson Ribeiro wribeiiro

🐘
Sept 28, daylight, the monsters have overtaken the city. Somehow I'm still alive
View GitHub Profile
@wribeiiro
wribeiiro / LevelHelper.java
Created June 27, 2024 10:36 — forked from JakeSteam/LevelHelper.java
"Converting Levels Into XP & Vice Versa" for GameDevAlgorithms.com
public static int convertXpToLevel(int xp) {
// Level = 0.05 * sqrt(xp)
return (int) (Constants.LEVEL_MODIFIER * Math.sqrt(xp));
}
public static int convertLevelToXp(int level) {
// XP = (Level / 0.05) ^ 2
return (int) Math.pow(level / Constants.LEVEL_MODIFIER, 2);
}
@wribeiiro
wribeiiro / laravel-ddd-approach.md
Created April 27, 2022 18:22 — forked from lucenarenato/laravel-ddd-approach.md
A Domain Driven Design (DDD) approach to the Laravel Framework
/app
├── /Application
|  ├── /Exceptions
|  ├── /Middlewares
|  ├── /Providers
|  ├── /Requests
├── /Domain
|  ├── /MyDomainA
| | ├── /Contracts
@wribeiiro
wribeiiro / workflow.yaml
Created September 6, 2021 12:11 — forked from lorisleiva/workflow.yaml
🐳 GitHub Actions using Laravel Docker
name: My Workflow
on: [push]
jobs:
build:
runs-on: ubuntu-latest
container:
image: lorisleiva/laravel-docker:7.4
steps:
- uses: actions/checkout@v2
@wribeiiro
wribeiiro / GitCommitEmoji.md
Created March 5, 2021 18:43 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji