This file contains 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
➜ server git:(main) npm run dev | |
> @ dev /Users/alexander/Desktop/React/Discord/cobalt/server | |
> NODE_ENV=development nodemon -e ts --exec "npm run start" | |
[nodemon] 2.0.16 | |
[nodemon] to restart at any time, enter `rs` | |
[nodemon] watching path(s): *.* | |
[nodemon] watching extensions: ts | |
[nodemon] starting `npm run start` |
This file contains 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
module RubyBadgeNumbers | |
# Your code goes here... | |
class Zero | |
attr_reader :pred | |
def initialize(pred = nil) | |
@succ = nil | |
@pred = pred | |
end | |
This file contains 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
module RubyBadgeNumbers | |
# Your code goes here... | |
class Zero | |
attr_reader :pred | |
def initialize(pred = nil) | |
@succ = nil | |
@pred = pred | |
end | |
This file contains 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
[ | |
{ | |
"name": "Outdoors", | |
"description": "This category is for pictures focused on outdoor ambiences" | |
}, | |
{ | |
"name": "Cats", | |
"description": "Meow Meow, the internet loves cats!" | |
}, | |
{ |
This file contains 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
SELECT * FROM ( | |
SELECT *, | |
CASE | |
WHEN age < 18 THEN 'Infant' | |
WHEN age < 30 THEN 'Young' | |
WHEN age < 50 THEN 'Adult' | |
ELSE 'Senior' | |
END AS age_group | |
FROM users ) AS age_group_table |
This file contains 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
# rubocop:disable all | |
require "ruby_badge_numbers/version" | |
module RubyBadgeNumbers | |
# Your code goes here... | |
class PositiveNumber | |
attr_reader :pred | |
def initialize(zero, pred) | |
@zero = zero |
This file contains 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
require "ruby_badge_numbers/version" | |
module RubyBadgeNumbers | |
# Your code goes here... | |
class PositiveNumber | |
attr_reader :zero, :pos | |
def initialize(zero, pos) | |
@pos = pos # su posicion en la cadena | |
@zero = zero # de esta forma todos las intancias tienen referencia al mismo objeto zero |