Skip to content

Instantly share code, notes, and snippets.

@tapvt
tapvt / Report.txt
Created January 28, 2021 03:42
Login + PW mgr issue
Issue: Password field clears when username field blurs. Awkward UX when using password manager on mobile.
Platform: iOS + latest mobile FireFox + LastPass
Expected interaction: When presented with the login screen and focusing the username field, iOS presents a prompt to choose a password manager for autofill. Username and password should be filled in. Clicking form submit should result in successful login.
Actual interaction: First attempt to login successfully fills the form with accurate values. Username field maintains focus. Clicking the submit button causes a blur event on username field. This blur event seems to clear the password field.
Steps to reproduce:
@tapvt
tapvt / keybase.md
Created October 27, 2017 19:26
keybase.md

Keybase proof

I hereby claim:

  • I am tapvt on github.
  • I am ben_weller (https://keybase.io/ben_weller) on keybase.
  • I have a public key ASAQkY8elckzGfnl9hHbWbYk8EJBvT58oIlVY92FurlrKwo

To claim this, I am signing this object:

// Paste this into your Chrome Console
var check = function () {
var content = document.body.textContent || document.body.innerText;
var open = content.indexOf('Kitchen’s Open') !== -1;
if (open) {
alert ('Kitchen is Open!')
} else {
console.log('still waiting....');
setTimeout(check, 10000);
}
@tapvt
tapvt / swigFormElemStashed.twig
Created June 4, 2013 16:57
twig/swig bootstrap basic form element
{% macro input type name label value error %}
<div class="control-group">
<label class="control-label" for="{{ name }}">{{ label }}</label>
<div class="controls">
<input type="{{ type }}" name="{{ name }}" id="{{ id }}" value="{{ value }}"{% if error %} class="error"{% endif %}>
</div>
</div>
{% endmacro %}
@tapvt
tapvt / pull_dirs.bash
Created May 10, 2012 17:44
pull a bunch of repos
#!/usr/bin/env bash
cd /var/www
for D in */
do
cd $D && git pull && git submodule sync && git submodule update --init --recursive && cd /var/www
done