Buglify

Batch minify (uglify) javascript (with sourcemaps) including a file change listener/watcher.

Buglify automates the process of minimizing an array of js files into a single minified version along with a source map ready to be deployed.

The special watcher utility allows for updating the minified and source map files on the go while you concentrate on the scripting.

Installation

Before installing buglify, we need nodejs, so make sure you have that installed. After that, use npm in your terminal and install (globally), like so:

Buglify is a global utility, so -g installation will help.

Usage

Create a  buglify.json file somewhere (at the root of a project is recommended).

For illustration, consider the following directory structure as your project:

Bear minimum

Lets fill the  buglify.json file in order to batch uglify/minify the scripts as a single file including a source map.

Now open up terminal if you haven’t already (CD into your project directory), and run:

You now have  buglify.min.js and  buglify.min.js.map in  project/frontend/js/src.

To watch files for changes and uglify on the go, run:

What?

"Frontend Scripts" is used as a slug for the batch process. You will see how we can add more separate batch processes.

"root" is used as a base directory. Basically it gets prepended to the  "src" files.

"src" holds the files (in order) to be processed as a batch. Only top level files and directories. So this batch will be processed in the following order:  frontend/a.jsfrontend/b.jsfrontend/dir/c.js.

"src_root" is a http web link pointing to the project root (buglify.json base path). This is recommended for the source map file to work properly and should be used to avoid problems while debugging.

If you need to save the minified and mapped files in a different location, you can set  min_root (e.g.  "min_root": "frontend/js").

To name the file, set  min (e.g.  "min": "frontend.min.js").

Options

There are three ways (prioritized) to set some useful options.

  • Command line arguments (has priority 0)
  • Locally, or (has priority 1)
  • Globally (has priority 2)
  1. Providing options as command line arguments in terminal.

    Example usage:  buglify -w -c -l 80 to watch for changes, preserve multiline comments and restrict lines to 80 characters.

    Command line arguments have the highest priority and beats global, local options.

  2. Providing options locally in  buglify.json.

    Here, local options will apply to its own batch process, overriding the global options but overriden by the command line options.

  3. Providing options globally in  buglify.json.

    Global options have least priority. That is, they take effect when neither local nor cli argmuents are given.

  • Defaults "comments": false  "length": 32000  "watch": false  "verbose": false

Separate batch processes

What if we had seperate source files in our project that needed to be minified separately? Well, just pass another one:

If we take a look at our project directory structure above, we observe two separate locations for our javascript source files, each serving its own purpose (one for the frontend of our website and one for the admin).

A sample  buglify.json file for the above structure:

Release History

  • 0.1.1 Fix and allow source root as option
  • 0.1.0 Initial tag
  • 0.0.1 Initial release

Credits

Thanks to the people behind these modules which I have used in the project

License

This project is licensed under MIT License

Awesome Grid

Awesome Grid

Awesome Grid is a jQuery plugin that allows you to display a responsive grid layout stacked on top of each other into rows and columns.

How to use

Include the script (jQuery first of course) into your html.

Apply the layout to any element like so (Adjust the options at your discretion):

Dynamically add a new item

To dynamically add a new item to the grid,

License

This plugin is licensed under MIT License.

kk Easy Ads

thumbnail
kk Easy Ads

kk Easy Ads automates the process of advertisements on your website. Managing self hosted advertisement campaigns has never been easier. Keep all the ad revenues to yourself with this useful plugin.

Purchase for $20

Features

Infinite Campaigns

Need to serve advertising at different places? No problem, create as many ad campaigns as you wish and embed them with ease.

Multiple Revenue Types

Cost per click (CPC), Cost per thousand impressions (CPM) and Cost per day.

Infinite Rotations

Allow ad campaigns to serve multiple ads, each rotated randomly based on either time or page load.

Easy Embed

Easily embed ad slots/campaigns on your website. Widget, shortcode, iframe or php. Why not embed on external websites? Easily, via the iframe embed.

Asynchronous

Ads are fetched asynchronously from the database via AJAX. Good for search engines.

Ad Stats

Advertisers (and administrators) can view the statistics of their ad easily.

Payment via PayPal

Payments are handled via PayPal<sup>TM</sup>.

Variety of Currencies

Choose from a variety of currencies that are supported by PayPal<sup>TM</sup>.

Extensive Admin Panel

Features a rich admin page for setting up the plugin.

How To - Videos

Creating an advertising campaign

Setting up the processing page

Embedding a campaign

Advertising

Changelog

1.3 – 19th April, 2014

  • Update ‐ Compatibility with wp 3.9.
  • Fix – Warning notices.

1.2 – 8th November, 2013

  • Add – Ability for advertisers to view statistics for advertisements that were activated manually by the administrator.

1.1 – 20th June, 2013

  • Add ‐ Multiple of currencies supported by paypal.

1.0 – 1st June, 2013

  • Initial launch.

kk Star Ratings

kk Star Ratings

kk Star Ratings is a WordPress Plugin that allows blog visitors to involve and interact more effectively with your website by rating posts.

Download

Features

Select where to show the ratings. It can be on homepage, archives, posts, pages or manually.

A visual button in your editor to easily display the ratings manually in your posts/pages. No more typing a shortcode.

Ratings column in your admin posts/pages screen so you can view the statistics at comfort.

Attach tooltips when mouse is hovered while rating with colors.

Choose placement. Top left, top right, bottom left or bottom right.

Change amount of stars anytime you want. Reset ratings for individual posts or the entire site.

Choose your own custom images.

Restrict votings per unique ip.

Adjust frequent messages and strings.

Changelog

2.4 – 04 June, 2013

  1. Fix: Upper and Lower boundary limits for rating. Oops, had not noticed this before.
  2. Fix: Fuelspeed. Strange! no one ever complained about it.
  3. Update: Revamped the entire javascript (normal: 6.03KB, minified: 4.29KB).
  4. Update: Two fixed decimal points for average and percentage instead of one.
  5. Update: Icon star color from grey to yellow.
  6. Add: Efficient fetching of ratings. No matter how many ratings you may have on a page, they will all be fetched in a single go :)
  7. Add: Rating column can now be sorted in the admin screen.

2.3.1 – 02 June, 2013

  1. Update: Framework updated for no conflict mode with other kk plugins.

2.3 – 25 February, 2013

  1. Add: Ability to exclude specific category(s).

2.2.1 – 09 February, 2013

  1. Update: Restricted admin scripts to render in its own page scope.

2.2  – 13 December, 2012

  1. Fix: jquery ui causing problems in wordpress 3.5. It is removed because no longer required.
  2. Update: Shortcode can contain optional ‘id’ argument to display ratings for a specific post intentionally. e.g. [kkstarratings id="192"].

2.1  – 24 November, 2012

  1. Fix: Google rich snippets is now stable and safe to use.
  2. Fix: Grammars in admin settings.
  3. Update: Control whether to allow users to rate in archives or not.
  4. Update: Reordered directory tree structure.
  5. Add: Useful hooks and filters for advanced developers.

2.0 – 28 September, 2012

  1. Update: Re-coded the plugin from the ground up, adding rich settings page and more features.
  2. Update: Transparent stars and availability of custom stars as per needs.
  3. Update: Ajax based settings page. No refreshes what so ever.
  4. Update: Seperate settings tab.
  5. Update: Visual flushing of ratings. No need to remember post ids.
  6. Update: [s] added as a variable for use in the legend (description). Will display the s only if there are 0 or more than 1 ratings.
  7. Add: kk Star Ratings now supports Google Rich Snippets. So the ratings will now be indexed in google search.
  8. Add: Visual shortcode button. No need to type in a shortcode manually in your posts/pages when in manual mode.
  9. Add: User specific amount of stars. Forget the fixed 5 stars.
  10. Add: Choose your own images instead of the default ones.
  11. Add: Tooltips. Now you can set tooltips for each star when mouse is hovered on each. You can also set colors.
  12. Add: Adjustment of fueling speed of stars when being loaded or refilling.
  13. Add: Set error message if anything goes unexpectidly.
  14. Add: Set thank you message.

1.7.2 – 19 June, 2012

  1. Fix: This is a fix for the previous version (1.7.1). The plugin was not tagged with the latest files.

1.7.1 – 18 June, 2012

  1. Security Fix: Fixed a security issue in the ajax request for the file inclusion risk. This is a recommended update for all users.

1.7 – 09 May, 2012

  1. Updat: The top rated posts now considers the vote count as well. This is a recommended update for all users.

1.6 – 22 January, 2012

  1. Add: Now you can see a column in the admin screen of posts and pages stating the ratings of each.

1.5 – 20 January, 2012

  1. Fix: Some users complained about a fault: “An error occured” being displayed when someone rates a post. This was due to the charset of the returned response via ajax (Mentioned by jamk). Has been fixed as the ajax response is now retrieved as an xml dom instead of plain text.
  2. Fix: Regardless of unique voting set or not, a user could click on a star multiple times simultaneously and the post would be rated that much time. Has been fixed.
  3. Add: Filter by category in the widget as well as the custom template tag/function.

1.4.1 – 2 November, 2011

  1. Fix: Fixed the issue of saving the settings. Was an issue in v1.4.

1.4 – 28 October, 2011

  1. Updat: Retrieve top rated posts in your template/theme so developers can have more power over it.

1.3.1

  1. Fix: Flushing/removing ratings for widget now included. Thanks to feedback by Glyn.

1.3

  1. Update: This includes a widget to show top rated posts :)

1.2

  1. Update: Added ability to manually show ratings in template files.

1.1

  1. Fix: [avg] error which did not show the average ratings. Now it works :)