Skip to content

Instantly share code, notes, and snippets.

View JohnnyMa's full-sized avatar
🎯
Focusing

jma JohnnyMa

🎯
Focusing
View GitHub Profile
@JohnnyMa
JohnnyMa / gist:6c7774fb8f0f7710eb803884c3d58d52
Created April 23, 2016 07:33 — forked from lxneng/gist:1180223
ssh_exchange_identification: Connection closed by remote host
ssh error:
ssh_exchange_identification: Connection closed by remote host
fix:
sudo echo "sshd:ALL" >> /etc/hosts.allow
@paulirish
paulirish / gist:4158604
Created November 28, 2012 02:08
Learn JavaScript concepts with recent DevTools features

Learn JavaScript concepts with the Chrome DevTools

Authored by Peter Rybin , Chrome DevTools team

In this short guide we'll review some new Chrome DevTools features for "function scope" and "internal properties" by exploring some base JavaScript language concepts.

Closures

Let's start with closures – one of the most famous things in JS. A closure is a function, that uses variables from outside. See an example:

@cowboy
cowboy / HEY-YOU.md
Last active February 27, 2025 12:24
jQuery Tiny Pub/Sub: A really, really, REALLY tiny pub/sub implementation for jQuery.