Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View rajkumarpb's full-sized avatar
🎯
Focusing

Rajkumar rajkumarpb

🎯
Focusing
View GitHub Profile
@rajkumarpb
rajkumarpb / issues-jdbc.txt
Created September 19, 2017 14:13
Spring JDBC Stored Procedure
**Custom Stored Procedure**
package com.web.helper;
import java.util.List;
import java.util.Map;
import oracle.jdbc.OracleTypes;
import org.springframework.jdbc.core.JdbcTemplate;
@rajkumarpb
rajkumarpb / main.go
Created September 8, 2017 07:17 — forked from alyssaq/main.go
GET and POST golang API
/*
* Sample API with GET and POST endpoint.
* POST data is converted to string and saved in internal memory.
* GET endpoint returns all strings in an array.
*/
package main
import (
"encoding/json"
"flag"
@rajkumarpb
rajkumarpb / auth.go
Created September 8, 2017 07:17 — forked from tristanwietsma/auth.go
Golang web server example
package main
import (
"encoding/base64"
"net/http"
"strings"
)
type handler func(w http.ResponseWriter, r *http.Request)
[{
branchName : 'BITLU',
loginName : 'Mahanim',
customerName : 'Usain Bolt',
customerId : 1,
leadCode : 'L101',
leadStatus : 'Open',
productNamee : 'Fire',
grossPremium : 150.0
},
@rajkumarpb
rajkumarpb / array-flatten.js
Created December 6, 2016 10:35
Flat an array of arrays
var inArr = [[[1, 2],],[3],[[4, 5],[6]]];
var result = [];
function flattenArray(arr) {
for (var i = 0; i < arr.length; i++) {
if (Array.isArray(arr[i]))
flattenArray(arr[i]);
else
result.push(arr[i]);
}
return result;
https://github.com/spring-projects/spring-integration-samples/tree/master/intermediate/rest-http
http://www.aptuz.com/blog/is-postgres-nosql-database-better-than-mongodb/
@rajkumarpb
rajkumarpb / nodemon-tut.txt
Last active April 7, 2016 04:11
Monitor Nodejs app for crash
https://howtonode.org/deploying-node-upstart-monit
Imp -----> https://keymetrics.io/2015/03/26/pm2-clustering-made-easy/
https://www.statuscake.com/
@rajkumarpb
rajkumarpb / nodetips.txt
Created March 29, 2016 06:39
node tips
https://medium.com/@faisalabid/7-tips-for-a-node-js-padawan-e7c0b0e5ce3c#.ksv7nyez4
http://thejackalofjavascript.com/maintaining-a-private-npm-registry/