- Small installation file
- Clean and simple user interface
- Quick file indexing
- Quick searching
- Minimal resource usage
- Real-time updating
Colorcop is a neat colour picking tool for Windows, which can be used to sample any colour on screen, presenting it in multiple formats including Hex, RBG float and RGB int. The utility also has support for averaging samples from a 1,3,5×5 kernel, can be minimised to system tray, and also has a bunch of other cool features.
Installation (globally via NPM)
npm install -g node-inspector
Launch script under debugger
Launch script under debugger (+ break on first line)
node --debug-brk app.js
Sometimes it’s enough to add a program or script to the startup folder or scheduled a boot-time task, however if you need to setup a fully fledged Windows Service, the freeware NSSM (Non-Sucking Service Manager) tool can be used to quickly and easily install or remove Windows Services from the command line.
Creating a new Windows Service
The following command will pop-up a nice UI for you to select which program/script you want to run and allow you to tweak additional settings such as Automatic/Manual startup etc:
nssm install "YourNewServiceName"
Removing a Windows Service
The following command permanently un-registers and removes a Windows Service by name:
nssm remove "YourServiceName"
When searching through an entire codebase for a variable it is often useful to limit the search results to those instances where the variables is assigned a new value (or perhaps when the variable is used IN an assignment). This can be achieved with the following regular expressions…
Find usage in an assignment
After having around 20 minutes exposure to LESS (CSS pre-processor) I’ve picked up the following quick tips:
How it works
LESS is a language/syntax for writing CSS which grants you more freedom and less repetition when defining and organising CSS styles with features such as variables, imports and loops. To be of any use, LESS files are translated into vanilla CSS for consumption in the browser (this can be done client-side at runtime, or baked out offline).
Looks fairly simple, the LESS file I worked with (albeit for 5 minutes) bared a close resemblance to regular CSS, with some syntactic sugar sprinked here and there for good measure. Full specification can be found here:
- Install Node.JS
- Open a Node.JS command shell
- Install the less nodejs package:
npm install -g less
- Compile your LESS file, redirecting output to destination .css file:
lessc styles.less -x > styles.css
- The -x flag can be removed if you do not require the CSS output to be minified