pattern:
{ term }
term:
'*' matches any sequence of non-Separator characters
'?' matches any single non-Separator character
'[' [ '^' ] { character-range } ']'
character class (must be non-empty)
c matches character c (c != '*', '?', '\\', '[')
'\\' c matches character c
First, add pry-rails to your Gemfile:
https://github.com/rweng/pry-rails
gem 'pry-rails', group: :developmentThen you'll want to rebuild your Docker container to install the gems
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
| " add numbers | |
| set number | |
| " add mouse | |
| set mouse=a | |
| " add with numbers | |
| set numberwidth=1 | |
| " select copy to clipboar | |
| set clipboard=unnamed | |
| " show colors | |
| syntax enable |
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
| Config file /lib/systemd/system/docker.service | |
| # CentOS | |
| --------- | |
| # Utilidades | |
| sudo yum install -y yum-utils device-mapper-persistent-data lvm2 | |
| # Agregar el repo de docker |
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
| takeown /F "E:\Mis Documentos\Videos\*" /R /D S | |
| icacls "E:\Mis Documentos\Joalbert\*" /grant Administradores:F /T |
| Status Code | Status Message | Symbol |
|---|---|---|
| 1xx Informational | ||
| 100 | Continue | :continue |
| 101 | Switching Protocols | :switching_protocols |
| 102 | Processing | :processing |
| 2xx Success | ||
| 200 | OK | :ok |
| 201 | Created | :created |
| 202 | Accepted | :accepted |
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
| //*============================================================================================= | |
| // Cuatro letras | |
| // | |
| // De cuatro corredores de atletismo se sabe que C ha llegado inmediatamente detrás de B, | |
| // y D ha llegado en medio de A y C. ¿Podría calcular el orden de llegada? | |
| //*============================================================================================= | |
| // B | |
| // C | |
| // D |
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
| class HTML | |
| def self.respond_to_missing?(method_name, *args) | |
| # TODO: completar | |
| end | |
| def self.method_missing(method_name, *args, &block) | |
| method_name ? tag(method_name, *args, &block) : super | |
| end | |
| def self.tag(tag_name, *args, &_block) |
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
| # https://medium.com/@hackvan/entendiendo-la-metaprogramaci%C3%B3n-con-ruby-7a0360ee67e7 | |
| =begin | |
| # Class implementa algunos interesantes métodos de introspección como: | |
| class # Retorna el objeto de clase a la que pertenece el objeto instanciado | |
| superclass # Retorna el objeto de clase del cual hereda la clase del objeto instanciado | |
| ancestors # Retorna un Array con el listado de la cadena de ancestros | |
| instance_variables # Retorna un Array con el listado de las variables de instancia creadas | |
| # en la clase del objeto. |
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
| let elements = document.querySelectorAll('div'), | |
| callback = (el) => { console.log(el); }; | |
| // Spread operator | |
| [...elements].forEach(callback); | |
| // Array.from() | |
| Array.from(elements).forEach(callback); | |
| // for...of statement |