One high quality of life enchancment any developer could make for themselves is guaranteeing completely different file varieties open within the app they’re most proficient in. If you already know me, you already know I want carrying out as a lot as potential from the command line. The
duti utility permits customers to find out default file sort from command line.
duti utility permits builders to question which app is the default for various file varieties. You possibly can set up
brew set up duti
duti accessible, you’ll be able to examine on the default app for file sort with the next command:
~ duti -x md Xcode.app /Purposes/Xcode.app com.apple.dt.Xcode
You possibly can set the default app by utilizing its bundle:
duti -s com.sublimetext.2 .js all
duti utility is absolutely nice for figuring out and automating default app administration!
One of many worst saved secrets and techniques about AJAX on the net is that the underlying API for it,
XMLHttpRequest, wasn’t actually made for what we have been utilizing it for. We have performed effectively to create elegant APIs round XHR however we all know we are able to do higher. Our effort to…
You’ve got in all probability heard the discuss across the water cooler about how guarantees are the longer term. The entire cool children are utilizing them, however you do not see what makes them so particular. Cannot you simply use a callback? What is the massive deal? On this article, we’ll…
One a part of MooTools I really like is the convenience of implementing occasions inside courses. Simply add Occasions to your Implements array and you may fireplace occasions wherever you need — these occasions are extraordinarily useful. ScrollSpy and plenty of different widespread MooTools plugins would…
The best way that album data shows is normally insanely boring. Music is meant to be enjoyable and shifting, proper? Fortunately MooTools and jQuery permit us to speak that creativity on the net. The XHTML A couple of construction DIVs and the album data. The CSS The CSS…