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
brew tap homebrew/versions | |
# Error: homebrew/versions was deprecated. This tap is now empty as all its formulae were migrated. | |
# https://github.com/mrirecon/homebrew-bart/issues/1 | |
brew unlink v8 | |
brew link --force v8-315 | |
gem install therubyracer -v '0.12.2' -- --with-system-v8 |
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
# Source exports | |
if [ -f ~/.zsh_exports ]; then | |
source ~/.zsh_exports | |
fi | |
# Source aliases | |
if [ -f ~/.zsh_aliases ]; then | |
source ~/.zsh_aliases | |
fi |
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
## Task 1 | |
# find closest border number in fib sequence | |
# near_fib_number(9) => 8 | |
# near_fib_number(12) => 13 | |
require 'benchmark' | |
def near_fib_number(num) | |
start_array = [0, 1] | |
while !(start_array[0] <= num && start_array[1] >= num) do |
OlderNewer