Skip to content

Instantly share code, notes, and snippets.

View vovanbo's full-sized avatar
💭
I am

Vladimir Bolshakov vovanbo

💭
I am
View GitHub Profile
@vovanbo
vovanbo / techique_#4.js
Last active August 29, 2015 13:56
Target Only External Links
// http://css-tricks.com/snippets/jquery/target-only-external-links/
$('a').each(function() {
var a = new RegExp('/' + window.location.host + '/');
if (!a.test(this.href)) {
// This is an external link
}
});
@vovanbo
vovanbo / internal_links.js
Last active August 29, 2015 13:56
Find all Internal Links
@vovanbo
vovanbo / startproject.sh
Last active December 30, 2015 10:29
Dash.app snippet for starting django project using template with context.
django-startproject.py __project-name__ --extension="py,rst,conf,wsgi" --template=https://github.com/tangentlabs/tangent-django-boilerplate/zipball/master --extra_context='{"client":"__client__", "project_code":"__project-code__", "domain":"__domain__", "timezone":"__timezone__"}'