Skip to content

Instantly share code, notes, and snippets.

View bradwestfall's full-sized avatar

Brad Westfall bradwestfall

View GitHub Profile

It seems as though some people like me are experiencing a weird thing when upgrading mac these days, the RSA keys still work for connecting to things like GitHub but my keychain doesn't want to remember the password and is annoyingly asking me for it with every git push.

The solution I found that works is at http://stackoverflow.com/a/41576222

Basically, edit my ~/.ssh/config file to be:

Host *
    UseKeychain yes
@bradwestfall
bradwestfall / gist:c87fb32047247eac899b
Last active August 29, 2015 14:02
jQuery Event Delegation (Live Binding)

Event Binding in jQuery

In jQuery, event binding can be a confusing topic at first. Especially when we attempt to do Delegated Events (or live binding , binding to elements that don't exist on the screen yet)

But first, let's clear up just a few things regarding normal event binding...

.click vs .on('click')

jQuery provides specific methods such as .click() or .mouseover() which can be used in this way