Category Archives: PROGRAMMING

What is Grunt?

2016-01-26_113926

What the heck is a JavaScript Task Runner?

Grunt is a command line tool that runs on Node.js and automates your JavaScript build process.

Grunt is an “easy” way compile coffeescript, sass, compass. It can minify, concatenate, and a whole lot more. Everything is simple… as long as you know what you’re doing.

I put the install process for both Node.js and Grunt in the post on Trimming CSS Fat.

Square3_thumb

[Rx] Trim CSS Fat Using Win7 Grunt

2016-01-26_113926Back in the day, you didn’t have to worry about “devices.” Now, we’re all modern. We have stylish CSS that makes HTML look hipster-good on any screen size you can imagine. To do all this you need css code, lots of code.

You  can punch the code-masters ticket and roll your own CSS or you can attach everything to a CSS framework (Bootstrap, Foundation, etc.).

These frameworks don’t know what you want, so they give you EVERYTHING. You have a screen the size of you large toenail? Not a problem, but the typical websites uses less than 80% of all the framework css code. 

The price you pay for a kitchen sink framework is speed. Luckily, if you have a need for speed, you can trim out the CSS fat using unCSS.

Continue reading »

[Rx] Jupyter Notebook–-Select Browser

2015-10-28_091835Jupyter Notebook is an interactive computational environment to run code, add rich text, compute mathematics, draw plots, and add rich media–all in the comfort of your browser.

I have a variation of Firefox, Palemoon, running as my default browser. When I run Jupyter Notebook, I wanted it to open in the Chrome browser.

It looked like a simple command line switch would do the job:

Jupyter Notebook -–browser=”chrome”

That doesn’t work. I tried it without quotes and single quotes. I’ve got a bald spot on the side of my head trying to figure this one out. There’s not much on the web.

Here’s how to do it:

Continue reading »