Skip to content

Instantly share code, notes, and snippets.

@gKodes
gKodes / D.js
Last active August 29, 2015 14:10
ltg - HTML5 Custom tag lib
// D.js
(function(scope) {
// types.js
/**
* @doc function
* @name isArray
* @module ng
* @kind function
*
@gKodes
gKodes / demo.js
Last active August 29, 2015 14:00
nuWrap Input's Demo
var demo = angular.module('nu.Deno', ['nu', 'nu.Wrap.bs']);
demo.controller('wrap.inputs', ['$scope',
function($scope) {
$scope.demo = {
"password": "password",
"search": "ha happy",
"email": "email@gmail.com",
"url": "http://www.google.com",
"tel": "1938488192",

Springs Framework

IOC -- Inversion of Control

Simply said IOC help decouple (loosely couple) an application by handling its dependencies. Insted of the programer creating an instance for an given dependent object, the IOC Container holds the responsibility ([life cycle] creation, destruction, lifetime, configuration, and dependencies) for all the Object's and provides them as need using DI as Argument, Constructor, Setter & Interface Injector's.

The Springs Implementation of IOC / Confguration

Spring's has may Context's ([ApplicationContext][1] implementations) depending on the way they can be configured such as the couple of the few

FileSystemXmlApplicationContext -- Loads and configures based on an xml config file from a local or remote and URI's

@gKodes
gKodes / index.html
Created April 15, 2014 12:26
Using bootstrap CSS label as customized list items for nuList
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>nuList BootStrap Label Demo</title>
<link rel="stylesheet" type="text/css" href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="http://gkodes.github.io/ngul/dist/mime.fugue.min.css">
<link rel="stylesheet" type="text/css" href="http://gkodes.github.io/ngul/dist/theme.bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="http://gkodes.github.io/ngul/dist/theme.default.min.css">
@gKodes
gKodes / itr.cc
Created October 7, 2012 09:43
cpp inheritance generic iterators
/*
* Copyright 2012 Kamalakar Gadireddy @ gkodes.net
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software