Skip to content

Instantly share code, notes, and snippets.

View dileeph's full-sized avatar

Dileep Hareendran dileeph

View GitHub Profile
@dileeph
dileeph / grunt-exampl-1.js
Created June 16, 2017 18:56
grunt example 1
====package.json==========
{
"name": "app1",
"version": "1.0.0",
"devDependencies": {
"grunt": "^1.0.1"
}
}
======Gruntfile.js===================
@dileeph
dileeph / full-app-ng-view.htm
Created June 9, 2017 18:19
full-app-ng-view
===== index.html================
<html>
<head>
<script src="angular-1.4.8.js"></script>
<script src="angular-route-1.4.8.js"></script>
<script src="app1-main.js"></script>
<script src="app1-claim.js"></script>
</head>
<body>
@dileeph
dileeph / angular-filters.html
Created June 9, 2017 18:08
angular-filters.html
<html>
<head>
<script src="angular-1.4.8.js"></script>
</head>
<body ng-app="myapp">
<div ng-controller="aController">
{{ aValue | date}} <br/>
{{bValue | uppercase}}
<br/>
@dileeph
dileeph / modifiedclient.java
Created May 31, 2017 20:17
modified client for ComponentContext
/**
* Hook method called on activation of this service client.
* @param context BundleContext
*/
public void activate(ComponentContext context){
System.out.println(" >>> " + context.getProperties().get("cmp.name"));
}
/**
@dileeph
dileeph / PolicyServiceImpl.java
Created May 31, 2017 19:43
update to PolicyServiceImpl
//Modify getName() method as follows
public String getName(){
Depth1 d1 = new Depth1();
return "policywithdep-1.0" + d1.call(" deep call ");
}
@dileeph
dileeph / depths java classes.java
Created May 31, 2017 19:38
depths java classes.java
package com.y.d1;
import com.y.d2.Depth2;
public class Depth1 {
public String call(String x){
Depth2 d2 = new Depth2();
return "data service " + d2.call(x);
}
@dileeph
dileeph / non-osgi-dep-depth3
Created May 31, 2017 19:36
non-osgi-dep-depth3 pom
<groupId>com.y</groupId>
<artifactId>non-osgi-dep-depth3</artifactId>
<version>1.0.0</version>
<packaging>jar</packaging>
<name>non-osgi-dep-depth3</name>
@dileeph
dileeph / non-osgi-dep-depth2
Created May 31, 2017 19:35
non-osgi-dep-depth2 pom
<groupId>com.y</groupId>
<artifactId>non-osgi-dep-depth2</artifactId>
<version>1.0.0</version>
<packaging>jar</packaging>
<name>non-osgi-dep-depth2</name>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@dileeph
dileeph / non-osgi-dep-depth1
Created May 31, 2017 19:34
non-osgi-dep-depth1
<groupId>com.y</groupId>
<artifactId>non-osgi-dep-depth1</artifactId>
<version>1.0.0</version>
<packaging>jar</packaging>
<name>non-osgi-dep-depth1</name>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<groupId>com.x</groupId>
<artifactId>policy.service.a</artifactId>
<version>1.0.0</version>
<packaging>jar</packaging>
==================================
<dependency>
<groupId>com.x</groupId>
<artifactId>policy.service.api</artifactId>