Skip to content

Instantly share code, notes, and snippets.

View RJGrunau's full-sized avatar

Robert Grunau RJGrunau

  • Seattle, WA
View GitHub Profile
@RJGrunau
RJGrunau / iOS VoiceOver Focus
Created May 12, 2021 14:57
Handling VoiceOver focus on an iOS device while using safari
function setVoiceOverFocus(element) {
var focusInterval = 10; // ms, time between function calls
var focusTotalRepetitions = 10; // number of repetitions
element.setAttribute('tabindex', '0');
element.blur();
var focusRepetitions = 0;
var interval = window.setInterval(function() {
element.focus();
focusRepetitions++;
if (focusRepetitions >= focusTotalRepetitions) {
@RJGrunau
RJGrunau / anaylzer.rb
Last active February 1, 2020 22:56
Ruby practice while taking a Udemy rails course.
def name_anaylzer (first_name, last_name)
full_name = "#{first_name} #{last_name}"
reversed_full_name = full_name.reverse
name_length = first_name.length + last_name.length
if first_name.empty? && last_name.empty?
p "You need to enter your first and last name"
elsif first_name.empty? then
p "You need to enter your first name"
elsif last_name.empty? then
@RJGrunau
RJGrunau / keybase.md
Created January 22, 2019 05:19
Keybase

Keybase proof

I hereby claim:

  • I am rjgrunau on github.
  • I am rjgrunau (https://keybase.io/rjgrunau) on keybase.
  • I have a public key ASBCPzsgqRYmpwxj3Bluh-ZXU6KLTtTWdLUjmFoPmPFBIAo

To claim this, I am signing this object:

@RJGrunau
RJGrunau / PGF.md
Created January 21, 2019 16:40
Pesonal Growth Framework

#Motivations

*Financial Stability *Do work that sparks creativity and curiosity *Further develop the CRAFT of programing to find a deeper meaning

#Values

*Honesty:
..*Rigourous Self Assesment