Posts Tagged With: interface

Find Current IP Address

Tagged with: , , , , , , , ,

Find the IP address of all the active interfaces.


ifconfig | egrep -o '^[a-z0-9]{1,12}|inet addr:[0-9.]+'
No Comments »

Chainable interface in JavaScript

Tagged with: , , , , , ,

Creating Chainable interfaces in javascript…


(function() {
	function _init() {
		return this;
	}

	_init.prototype = {
		"myFunction": function() {
			return this;
		}

		// Put all the functions here - make sure all 'return this;'
	}

	chainer = function() {
		return new _init();
	}
})();

Roll out your own JavaScript Interfaces

[tags][/tags]

No Comments »