I hereby claim:
- I am ruberto on github.
- I am legendary_rob (https://keybase.io/legendary_rob) on keybase.
- I have a public key ASChdwI4amkVYM7FUfOBAJZ-WBc43RKXS6rklJwq-FEb3Ao
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# frozen_string_literal: true | |
require 'rspec' | |
require 'byebug' | |
# Roman numeral symbols are as follows | |
# I = 1 | |
# V = 5 | |
# X = 10 |
I hereby claim:
To claim this, I am signing this object:
class PrimeLocator | |
#there is a lib for ruby called prime to deal with prime numbers. #thankyoururuforfronting the search | |
require 'prime' | |
#adding benchmark for testing purposes | |
require 'benchmark' | |
#find optimus method will return the required prime | |
def find_optimus(prime) | |
# http://www.ruby-doc.org/core-2.1.2/Array.html#method-i-take since Prime class returns arrays take ruturns exact amount. call last on the set | |
optimus = Prime.take(prime).last | |
optimus |
<!doctype html> | |
<html> | |
<head> | |
<title>Your Submission</title> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> | |
<script type="text/javascript" src="jquery.sticky.js"></script> | |
<script> | |
$(window).load(function(){ | |
$("#top_bar").sticky({ topSpacing: 0 }); | |
}); |
class Cypher | |
def initialize(sentence) | |
@sentence = sentence | |
@replacements = {'er' => 'xor', 'ers' => 'xors', 'ed' => 'd', 'ant' => '&', 'and' => '&', 'anned' => '&'} | |
end | |
def leetify | |
leet_shorthand | |
change_to_leet_words | |
add_leet_letters |