I hereby claim:
- I am souldjinn on github.
- I am ziadabdo (https://keybase.io/ziadabdo) on keybase.
- I have a public key whose fingerprint is 120A 2E8C 80F5 A878 49D1 23EF E900 7CD8 A445 78C8
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#CanCan: Authorization Library *The cancan gem helps with restriction of user resources.
#CanCan: Steps
# def parse_text(file_location) | |
# File.open(file_location).each do |line| | |
# puts line | |
# end | |
# end | |
# parse_text('word_list.txt') | |
#parsed_array = parse_text('word_list.txt') | |
######################################################################################### |
def all_primes | |
prime_array= [] | |
counter = 1 | |
until prime_array.length == 10001 | |
if is_prime?(counter) | |
prime_array << counter | |
end | |
counter +=1 | |
end | |
return prime_array |
#####I've tried several times to edit this gist so that the indentation is correct, but everytime I get it right | |
#####after hitting update gist it simply returns the indentation to this exaggerated form. I dont know what to do about it. | |
class BoggleBoard | |
def initialize(user_grid) | |
user_grid.each do |array| | |
raise ArgumentError.new("User grid is not a 4x4 grid") if array.length != 4 | |
end | |
@game_grid = user_grid | |
end |