<jga.me/>

Recent Posts

Logr

2/6/2012

I've released a lightweight, but extensible, logging and debugging library for node.js called Logr.

Check out logr here

Leave a comment

Markx

1/30/2012

I've released a command line utility for node.js called markx. Markx takes markdown files with code snippets and turns them into html. This is handy for github readme files, github pages and creating flat file blog posts.

Check out markx here

Leave a comment

Visits 1.3 is now in the app store. You can grab it here

Changelog:

New:

  • Added Bounce Rates and Time on Page for Top Content
  • Added Browser Stats
  • Added Location Stats
  • Added option to start on login

Fixed:

  • Fixed sorting of Visits and Pageviews
  • Various other bug fixes
Leave a comment

If you've used jQuery before, you are probably familiar with the extend function. If you need to be reminded... the gist of it is that you can extend an object with another object. For example, if you had a plugin that had some defaults (delay: 3000, auto: true) and you wanted to allow for developers to override them (delay: 5000), you could take in an options object and combine the two objects (delay: 5000, auto: true). Aug is a tiny (354 bytes) library that will let you do that without jQuery. I've modeled the syntax to be identical to jQuery. I've also added the ability to augment javascript classes (adding to the prototype). Here are some examples:

Examples

//Great for overriding defaults
var a = { a: 1 };
var b = { a: 2, b: 3 };
aug(a, b); //a = { a: 2, b: 3};

//Combining two objects without overriding
var a = { a: 1 };
var b = { b: 3 };
var c = aug({}, a, b); //c = { a: 1, b: 3};

//Extending a prototype
var Class1 = function() { };
Class1.prototype.test = function() {
        return 0;
};

aug(Class1, {
        test2: function() {
                return 5;
        }
});
var c = new Class1();
c.test(); //returns 0;
c.test2(); //returns 5

Playgroud

If you want to try out aug. Check out this jsfiddle.

Downloads

You can grab the library here or check out the source in github.

For you nerds, the library has AMD and node.js support.

Node

npm install aug
Leave a comment

Visits 1.2 is now in the app store. You can grab it here

Changelog:

  • Week and Month View
  • UI Tweaks
  • Bugfixes

Here's a screenshot of the new month view:

Visits 1.2

Leave a comment

Categories

Twitter