Skip to content

Instantly share code, notes, and snippets.

View elyalvarado's full-sized avatar

Ely Alvarado elyalvarado

  • Kitchener, ON, Canada
View GitHub Profile
@elyalvarado
elyalvarado / INSTALL.md
Last active September 18, 2020 19:40
Installing ruby 2.3.x on MacOS X 2020 Edition

Ruby 2.3.x requires the OpenSSL library version 1.0.x, however this version of the library has been deprecated for a while.

If you're using homebrew the library is no longer a Formula since the end of 2019, so you'll need a work-around to be able to install it. As the new openssl formula in homebrew-core is versioned, you can search for the old formula and extract it into any of your existing taps (we'll use homebrew/cask for simplicity, as most people have it installed).

# First extract the last existing version of the openssl unversioned formula into an existing tap
brew extract openssl homebrew/cask

Keybase proof

I hereby claim:

  • I am elyalvarado on github.
  • I am elyalvarado (https://keybase.io/elyalvarado) on keybase.
  • I have a public key ASCj1TezabN91aPuKzNj3N-vkpVhUDAZouVHJNPW8rFd_Qo

To claim this, I am signing this object:

@elyalvarado
elyalvarado / UIAccessorizedTextField.swift
Created March 30, 2018 16:49 — forked from damienlaughton/UIAccessorizedTextField.swift
UIAccessorizedTextField is an iOS friendly alternative to the drop down list
//
// UIAccessorizedTextField.swift
// AccessorizedTextField
//
// Created by Damien Laughton on 28/03/2018.
// 2018 Mobilology Limited. No rights reserved.
//
import Foundation
import UIKit
@elyalvarado
elyalvarado / local_development_config.rb
Created March 17, 2016 13:57
Create this in the config/initializers folder file and add it to .gitignore and you would be able to change configuration values in your local Rails development environment without affecting other developers, you can even "decorate" application classes to customize results
# Override configuration options here
Rails.application.config.force_ssl = false
Rails.application.config.action_controller.asset_host = nil
Rails.application.config.action_mailer.asset_host = nil
# Decorators to override Application Classes
Rails.application.config.to_prepare do
# Override sessions controller to automatically login as the first user
SessionsController.class_eval do
@elyalvarado
elyalvarado / gist:fbb15fe86fba6c8fbcb6
Created November 24, 2014 02:22
Inject javascript and css for c3 and d3 from the console
(function() {
var javascriptLibraries = [
"//cdnjs.cloudflare.com/ajax/libs/d3/3.4.13/d3.min.js",
"//cdnjs.cloudflare.com/ajax/libs/c3/0.4.4/c3.min.js"
];
var stylesheetLibraries = [
"//cdnjs.cloudflare.com/ajax/libs/c3/0.4.4/c3.min.css"
];