Skip to content

Instantly share code, notes, and snippets.

View victorbrender's full-sized avatar

victor.brender victorbrender

View GitHub Profile
@foton
foton / base.rb
Created May 2, 2018 08:02
Base Service class `.call` with any type of params, returning instace with `#success?`,`#failure?`, `#errors`, `#result` methods.
module Service
class Base
attr_reader :result
def self.call(*args, **keyword_args)
new(*args, **keyword_args).tap do |service|
service.instance_variable_set(
"@result",
service.call
)
@ondrejbartas
ondrejbartas / how_to_setup_cypress_with_rails_app.md
Last active April 2, 2021 01:15
How to setup Cypress on Rails apps

How to setup Cypress on Rails apps

You need to update circle.yml:

machine:
  node: # add node dependency
    version:
      7.4

environment:
@pboling
pboling / PhantomJS Install.md
Last active July 23, 2019 17:54
How to install old PhantomJS 1.8.2 on Mac OS X