Skip to content

Instantly share code, notes, and snippets.

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

Rafael Corrêa Chaves darklight9811

🏠
Working from home
View GitHub Profile
@darklight9811
darklight9811 / presenter.ts
Created September 8, 2022 20:45
Response Presenter
// -------------------------------------------------
// Types
// -------------------------------------------------
type Pagination<Data = any> = {
data: Data;
perPage: number;
totalNumber: number;
currentPage: number;
lastPage: number;
@darklight9811
darklight9811 / extractor.js
Last active August 27, 2021 19:33
Every alphabet from array extractor
export const getRawWord = (type) =>
({
undefined: "`${[![]][!![] + ![]]}`",
true: "([] + !![])",
false: "([] + ![])",
object: "`${{}}`",
}[type]);
export const getCharacter = (char) =>
({
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active March 16, 2026 18:53
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example