Joined June 2012
·
Posted to
Giving the user no control with JavaScript
over 1 year
ago
Effective! But I'm massively against this, would love to see the opposite of this, i.e. 'give user default access'.
Posted to
Fix Sublime Text Home and End key usage on Mac OSX
over 1 year
ago
Excellent addition, I personally use CMD+SHIFT+UP and CMD+SHIFT+DOWN for this functionality.
Posted to
Neat way to loop through an array in JS
over 1 year
ago
@silverstrike, indeed! I shall watch my vars from now on :P
Posted to
Fix Sublime Text Home and End key usage on Mac OSX
over 1 year
ago
Hah, actually my laptop doesn't have home and end keys so yes I use command + arrows, however when I'm using a usb keyboard I do find them useful, perhaps it's because I'm an ex-pc user?
Posted to
Neat way to loop through an array in JS
over 1 year
ago
I tend to just use;
var arr = ['a', 'b', 'c', 1, 2, 3, true, false, null, undefined];
for ( var n in arr ) {
console.log( arr[n] );
}
I did a little benchmark against the solution by @silverstrike and the for in
method came out faster each time.
Achievements
580 Karma
99,497 Total ProTip Views
Nephila Komaci
Have at least one original repos where PHP is the dominant language
Charity
Fork and commit to someone's open source project in need
Got any background articles on why it's bad to use
git reset --hard HEAD
?