Skip to content

Instantly share code, notes, and snippets.

View ZarakiLancelot's full-sized avatar
🤓
Learning

Einsen Vásquez ZarakiLancelot

🤓
Learning
View GitHub Profile
@ZarakiLancelot
ZarakiLancelot / ruby_and_rails.md
Last active July 13, 2024 13:17
This gist provides a comprehensive overview of Ruby and Rails naming conventions, including examples and explanations.

General Ruby conventions

  • Class names: Use PascalCase for class names:
class ThisIsTheNameOfAClass
end

class Profile
end
@Klerith
Klerith / configurar-node-ts.md
Last active April 9, 2025 14:52
Node con TypeScript - TS-Node-dev simplificado

Node con TypeScript - TS-Node-dev (preferido)

  1. Instalar TypeScript y demás dependencias
npm i -D typescript @types/node ts-node-dev rimraf
  1. Inicializar el archivo de configuración de TypeScript ( Se puede configurar al gusto)
npx tsc --init --outDir dist/ --rootDir src
@ZarakiLancelot
ZarakiLancelot / arrays.js
Last active December 15, 2022 06:34
Descripción de los arrays, sus métodos y funcionamiento
/* Array o Arreglo
Es una estructura de datos similares a una lista que nos proporciona métodos para efectuar operaciones de recorrido y mutación.
La longitud y los tipos de elementos de un arreglo son dinámicos. Los arreglos tienen índices que empiezan en 0 y no pueden ser negativos.
*/
// Declaración de un arreglo
let nombres = ['Juan', 'Pedro', 'Maria', 'Jose'];
// Acceder a un elemento del arreglo
// Si queremos acceder al primer elemento del arreglo, debemos hacerlo con el índice 0
@Farhan-Haseeb
Farhan-Haseeb / README
Created June 17, 2020 16:51
How to reopen a closed PR on Github
How to reopen a pull-request from github?
Precodinitions
You need the rights to reopen pull requests on the repository.
The pull request hasn't been merged, just closed.
Go to Pull requests add filter `is:closed` choose PR you want to reopen. Select from checkbox and mark as Open.
@cdesch
cdesch / rails_generator_cheat_sheet.md
Last active April 4, 2025 13:13
Rails Generator CheatSheet

Cheat Sheets are greate but they are not a substitute for learning the framework and reading the documentation as we most certainly have not covered every potential example here. Please refer to the Rails Command Line Docs for more information.

Command Line Generator Info

Reference

You can get all of this information on the command line.

rails generate with no generator name will output a list of all available generators and some information about global options. rails generate GENERATOR --help will list the options that can be passed to the specified generator.