Skip to content

Instantly share code, notes, and snippets.

View xtrator's full-sized avatar

Alexander Luna xtrator

View GitHub Profile
➜ 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`
module RubyBadgeNumbers
# Your code goes here...
class Zero
attr_reader :pred
def initialize(pred = nil)
@succ = nil
@pred = pred
end
module RubyBadgeNumbers
# Your code goes here...
class Zero
attr_reader :pred
def initialize(pred = nil)
@succ = nil
@pred = pred
end
@xtrator
xtrator / json
Created December 18, 2020 23:36
Categories
[
{
"name": "Outdoors",
"description": "This category is for pictures focused on outdoor ambiences"
},
{
"name": "Cats",
"description": "Meow Meow, the internet loves cats!"
},
{
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
# 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
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