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
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
//*============================================================================================= | |
// 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
takeown /F "E:\Mis Documentos\Videos\*" /R /D S | |
icacls "E:\Mis Documentos\Joalbert\*" /grant Administradores:F /T |
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
" 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 |
First, add pry-rails to your Gemfile:
https://github.com/rweng/pry-rails
gem 'pry-rails', group: :development
Then you'll want to rebuild your Docker container to install the gems
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
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
# By: https://github.com/Docker-Hub-frolvlad | |
FROM alpine:3.11 | |
# This hack is widely applied to avoid python printing issues in docker containers. | |
# See: https://github.com/Docker-Hub-frolvlad/docker-alpine-python3/pull/13 | |
ENV PYTHONUNBUFFERED=1 | |
RUN echo "**** install Python ****" && \ | |
apk add --no-cache python3 && \ |
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://womanonrails.com/functional-programming-ruby | |
proc1 = Proc.new { |number| number % 3 == 0 } | |
proc2 = Proc.new { |number| number % 3 == 1 } | |
case 3 | |
when proc1 then p 'proc1' | |
when proc2 then p 'proc2' | |
else | |
p 'not a proc' | |
end |