Skip to content

Instantly share code, notes, and snippets.

View jvidalba1's full-sized avatar

Mateo Vidal jvidalba1

  • Medellín - Colombia
View GitHub Profile
@jvidalba1
jvidalba1 / easy_broker_integration.rb
Last active November 30, 2023 21:39
Easy Broker Integration staging API
require 'json'
require 'httparty'
require 'rspec'
class Property
URL = '/properties'
def self.list
@jvidalba1
jvidalba1 / find_patterns.rb
Created November 29, 2023 21:05
Find patterns in strings
# pattern - source: both Strings
# find pattern 0s(vocals) and 1s(consonants)
# in source
# vocals: aeiouy
def calculate(pattern, source)
pattern_arr = pattern.split('')
source_arr = source.split('')
@jvidalba1
jvidalba1 / api_integration.rb
Created November 29, 2023 21:01
basic concept test for api integratio
## Define implmentation for an API call to /products
# base url http://127.0.0.1:8181/products
# Product: title, description, price, manufacturer(optional)
# show a message This product #{title} with #{price}, description #{}
# with no manufacturer or with the manufacturer #{manufacturer}
require 'json'
class Product
attr_accessor :title, :price, :description, :manufacturer
@jvidalba1
jvidalba1 / divorce.md
Last active February 27, 2018 19:35
Divorce force Installation
  • Create ssh key and add it to Bitbucket settings account.

    Copy id_rsa.pub file from .ssh folder

    Paste the file content in ssh settings in Bitbucket account.

  • Clone repository

    git clone git@bitbucket.org:ballastlane/divorce-force.git

  • Install bundler > gem install bundler

> failed to build gem native extension installing puma:
gem install puma -v 2.11.3 -- --with-opt-dir=/usr/local/opt/openssl

Originally published in June 2008

When hiring Ruby on Rails programmers, knowing the right questions to ask during an interview was a real challenge for me at first. In 30 minutes or less, it's difficult to get a solid read on a candidate's skill set without looking at code they've previously written. And in the corporate/enterprise world, I often don't have access to their previous work.

To ensure we hired competent ruby developers at my last job, I created a list of 15 ruby questions -- a ruby measuring stick if you will -- to select the cream of the crop that walked through our doors.

What to expect

Candidates will typically give you a range of responses based on their experience and personality. So it's up to you to decide the correctness of their answer.

@jvidalba1
jvidalba1 / main.md
Last active August 29, 2015 14:17
Ember errors
  • ERROR > ember server
Missing template processor
Error: Missing template processor

Solution: "I read through this announcement - http://emberjs.com/blog/2014/12/08/ember-1-9-0-released.html."

npm uninstall --save-dev broccoli-ember-hbs-template-compiler
npm install --save-dev ember-cli-htmlbars@0.6.0
@jvidalba1
jvidalba1 / gist:ceecfea098bdabf7d61d
Last active August 29, 2015 14:17
rio de janeiro places
Place Rating:
1. https://www.airbnb.com/rooms/2098560?checkin=04%2F30%2F2015&checkout=05%2F10%2F2015&guests=2
- Reviews: 35 reviews - 5 estrellas
- Ubicacion: Flamengo, retirado de copacabana
- Precio => 2 personas: 866 usd | 4 personas: 1034 usd / 10 noches
- Acomodaciones: Bien
- faltan mesitas para camellar
@jvidalba1
jvidalba1 / main.md
Last active August 29, 2015 14:11
installation guide for Ubuntu