I’d an objective of comparing two similar JSON objects. However, since the order of the keys were not the same, the comparison was a bit tough. So, here’s the simple solution of sorting JSON alphabetically.
Once you have added Cordova plugins to your project, you can list them by running:
cordova plugin list
You’ll get a list such like this:
com.ionic.keyboard 1.0.4 "Keyboard" cordova-plugin-console 1.0.1 "Console" cordova-plugin-device 1.0.1 "Device" cordova-plugin-splashscreen 2.1.0 "Splashscreen" cordova-plugin-statusbar 1.0.1 "StatusBar" cordova-plugin-whitelist 1.1.0 "Whitelist"
Now simply you can run the below for removing a Cordova plugin:
cordova plugin remove <PLUGIN_NAME>
For example, to remove the statusbar plugin, run
cordova plugin remove cordova-plugin-statusbar
I love to keep my code clean. One of the ways of doing it to keep declarations in ascending order of their length. It could be in CSS, JSON or JS variables list. But it is a time taking thing if done manually. Here is an example of the same.
I wanted a slim top progress bar for one of my project, like you see on YouTube and Medium. The project had progressed a lot, I didn’t want every developer to write start and stop of this progress bar. Instead, one which could automatically show up if
XMLHttpRequest is fired. Wrote stProgress.js which meets my requirements.
I’m a big fan of CSS preprocessors. In one of my project, which was using LESS, my architect had created a simple yet useful piece (see below), which had margin, padding and width collection. This one was a great time saver for developers. However, you could do it in a much better way using, for loops for LESS.
If you are planning to have a simple stubbed service layer in your project, and want to set it up in a jiffy, without worrying about umpteen configurations, I’ve one for you.
Duet display turns your iPad into an extra display for your Mac or PC. This one is turning to be a great developer productivity tool for me.
This one is a handy tip. If you have code like JSON/CSS/JS/Python/Java etc to represent in markdown (especially in github). You can use this notation to make it presentable.
` ` ` codename
code block goes here
` ` `