Skip to content

Instantly share code, notes, and snippets.

/****************************************************************
* Rock, Paper, Scissors, Lizard, Spock,
* Spider-Man, Batman, Wizard, Glock
***************************************************************/
'// noprotect';
function numberToName(number, choices){
return choices[number];
}

Keybase proof

I hereby claim:

  • I am ryanhightower on github.
  • I am rytower (https://keybase.io/rytower) on keybase.
  • I have a public key ASBejvZWCnU2iYyAi8TKPulkHZhhnFuMtzYeituYp4KZHQo

To claim this, I am signing this object:

@ryanhightower
ryanhightower / honesto-retrospective-ryanhightower.txt
Last active February 17, 2019 10:15
Honesto Project Results
The things I couldn't complete from my plan include the login view and the progress bar components. If I had one week instead
of 2 days, I think may approach would be the same– focus on roughing in the functionality and then move on to styling. The
functionality was the most important, so I focused on that, but at times I probably got too detailed thinking about how the
production app might work instead of focusing on creating just a facade for testing.
If I could do it again, that's what I would have done differently, hopefully giving myself more time to style the answers on
the MyFeedback view. With just a few more hours I think this prototype would be ready for initial testing.
@ryanhightower
ryanhightower / script.vue
Created January 17, 2021 00:37
Vue 2 Toggle Switch Component with Variable Sizes
<template>
<div class="switch">
<input type="checkbox" @change="$emit('change', $event.target.checked)" id="switch" />
<label
for="switch"
:style="cssVars"
>Toggle</label>
</div>
</template>