Skip to content

Instantly share code, notes, and snippets.

View Ruberto's full-sized avatar

Ruberto Ruberto

View GitHub Profile
@Ruberto
Ruberto / keybase.md
Created October 9, 2024 13:59
verifying my account with keybase

Keybase proof

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

Effective Engineer - Notes

What's an Effective Engineer?

  • They are the people who get things done. Effective Engineers produce results.

Adopt the Right Mindsets

Keybase proof

I hereby claim:

  • I am ruberto on github.
  • I am legendary_rob (https://keybase.io/legendary_rob) on keybase.
  • I have a public key whose fingerprint is 8B64 D9A2 CAE0 AA19 174E C373 FF2D 2A07 092B 3CD1

To claim this, I am signing this object:

@Ruberto
Ruberto / prime.rb
Created May 30, 2014 10:16
Find all teh transformers!!
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 });
});
@Ruberto
Ruberto / cypher.rb
Created May 16, 2014 10:51
my failed attempt - :$
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