Skip to content

Instantly share code, notes, and snippets.

View benedyktdryl's full-sized avatar

Benedykt Dryl benedyktdryl

View GitHub Profile
@benedyktdryl
benedyktdryl / interview-question-2.js
Last active December 12, 2016 12:18
Why is “this” in an anonymous function undefined when using strict? http://stackoverflow.com/a/9822631/689748
(function(){
"use strict";
(function() {
console.log(this);
})();
function test() {
console.log(this);
}
@benedyktdryl
benedyktdryl / git.force.https
Created November 14, 2013 16:21
Force git to use https:// globally. Useful when you are using network which have ssh ports blocked.
git config --global url."https://".insteadOf git://