Skip to content

Instantly share code, notes, and snippets.

View ksurendra's full-sized avatar

Suren K ksurendra

View GitHub Profile
@ksurendra
ksurendra / Java-8-Path-Example.java
Last active August 6, 2018 16:27
Example usage of Java Path
import java.nio.file.Path;
import java.nio.file.Paths;
List<TagBean> superCategories = new ArrayList<>();
List<TagBean> categories = new ArrayList<>();
List<TagBean> channels = new ArrayList<>();
List<TagBean> shows = new ArrayList<>();
String filePath = "/etc/tags/namespace/shows/super-category/category/channel/show/show-name"
@ksurendra
ksurendra / Component - az.component.html
Created September 21, 2018 22:18
Complete Angular Example
<div class="row">
<div class="col-md-4" *ngFor="let key of blobsList | keys">
<p><img src="{{blobsList[key].blobURL}}" height="100" width="100"></p>
<p><a class="btn btn-default" href="#">{{blobsList[key].blobName}}</a></p>
</div>
</div>
@ksurendra
ksurendra / JAQStack-SeattleCodeCamp-Sep2018.pptx
Last active October 8, 2018 13:38
The JAQ Stack Presentation Slides At Seattle Code Camp Sep 2018
@ksurendra
ksurendra / jakartaee-projects.csv
Last active December 21, 2018 22:25
Eclipse JakartaEE Projects List
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 6.
No,Eclipse Foundation Project Name,Scope,Related Oracle Java EE Project,JSR
1,Eclipse Project for JAX-WS,Eclipse Project for JAX-WS provides the API and TCK for,Java API for XML-Based Web Services (JAX-WS) 2.2,JSR 224
2,Eclipse Project for Interceptors,"Eclipse Project for Interceptors provides the API and TCK for Interceptors, starting from the specification defined by JSR-318",Interceptors 1.2,JSR 318
3,Eclipse Project for JASPIC,"Eclipse Project for JASPIC provides the API and TCK for Java Authentication Service Provider Interface for Containers, starting from the specification defined by JSR-196.",Java Authentication Service Provider Interface for Containers 1.1,JSR 196
4,Eclipse Project for Interceptors,"Eclipse Project for Interceptors provides the API and TCK for Interceptors, starting from the specification defined by JSR-318.",Interceptors 1.2,JSR 318
5,Eclipse Project for JASPIC,"Eclipse Project for JASPIC provides the API and TCK for Java Authentication Service Provider Interface for Containers, st
@ksurendra
ksurendra / bitbucket-pipeline-angular-production-build-deploy.yml
Created March 19, 2019 14:30
Example Angular Production Build and Deploy To External Server Using Bitbucket Pipelines
# Sample build file
# @author Suren Konathala
# -----
image: node:8
pipelines:
default:
- step:
caches:
- node
@ksurendra
ksurendra / sample.feature
Created April 26, 2019 18:08
Sample Cucumber Test Feature
Feature: Add a measurement
In order to have source information to examine later
I want to be able to capture a measurement of several metrics at a specific time
Scenario: Add a measurement with valid (numeric) values
# POST /measurements
When I submit a new measurement as follows:
| timestamp | temperature | dewPoint | precipitation |
| "2015-09-01T16:00:00.000Z" | 27.1 | 16.7 | 0 |
Then the response has a status code of 201
@ksurendra
ksurendra / Swagger2Config.java
Created April 26, 2019 18:12
Swagger configuration file
package com.weathertracker;
import static springfox.documentation.builders.PathSelectors.regex;
import java.util.Collections;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.builders.ApiInfoBuilder;
import springfox.documentation.builders.PathSelectors;
import springfox.documentation.builders.RequestHandlerSelectors;
import springfox.documentation.service.ApiInfo;
@ksurendra
ksurendra / TestsInPom.xml
Created April 27, 2019 00:20
Including Cucumber tests in pom.xml files
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.6.0</version>
<executions>
<execution>
<id>install-tester</id>
<phase>generate-sources</phase>
<goals>
<goal>exec</goal>
@ksurendra
ksurendra / AddTasksToRunCucumberFromPom.xml
Created April 27, 2019 00:25
Adding tasks to run cucumber tests from pom.xml
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.6.0</version>
<executions>
<execution>
<id>integration-test</id>
<phase>verify</phase>
<goals>
<goal>exec</goal>
@ksurendra
ksurendra / USDZ Sample 1
Last active July 22, 2019 19:00
Universal Scene Description Zip - USDZ Sample Files