Skip to content

Instantly share code, notes, and snippets.

View sahina's full-sized avatar
🤖
greetings!

Altug Sahin sahina

🤖
greetings!
View GitHub Profile
@sahina
sahina / pip.txt
Last active December 15, 2016 04:37
remove pip packages that are not in requirements file
pip freeze | grep -v -f requirements.txt - | grep -v '^#' | xargs pip uninstall -y
@sahina
sahina / gist:a472d5d85ab3f4d704bc
Created July 26, 2014 15:33
JS: IE Detection
// IE9 + but Modernizr has polyfill for function.bind
// Hat tip Paul Irish
var o = $( {} );
$.subscribe = o.on.bind(o);
$.unsubscribe = o.off.bind(o);
$.publish = o.trigger.bind(o);