Skip to content

Instantly share code, notes, and snippets.

View rbipin's full-sized avatar

Bipin Radhakrishnan rbipin

View GitHub Profile
@rbipin
rbipin / pm-Prereq-token-Auth.js
Created May 17, 2019 19:48
Postman Prerequest to get the oauth token and send it with actual request
getToken=true;
var envlevel=pm.environment.get('env');
var userName='';
var password='';
var auth_audience='';
var auth_scope='';
//console.log(envlevel);
switch(envlevel){
@rbipin
rbipin / HttpClientWebApiConnection.cs
Last active April 2, 2018 21:58
Reusing the same HttpClient object, the right way to call different URI's with same HttpClient object
using System;
using System.Net.Http;
using System.Threading.Tasks;
/// <summary>
/// WebApi connection
/// </summary>
namespace WebApiConnectionNameSpace
{
public class WebApiConnection
@rbipin
rbipin / GridViewWithSubheader.aspx.vb
Last active March 23, 2018 19:04
Aspx Gridview with a main header and subheader
''' <summary>
''' Create a Subheader above the actual grid header
''' </summary>
''' <param name="sender"></param>
''' <param name="e"></param>
Protected Sub DataGrid_RowCreated(sender As Object, e As UI.WebControls.GridViewRowEventArgs) Handles datagrid.RowCreated
Dim datagrid As GridView = Nothing
Dim headercell As TableHeaderCell = Nothing
Dim gridsubheaderrow As GridViewRow = Nothing
Dim gridFooterCell As TableCell = Nothing
@rbipin
rbipin / Foreignkey.sql
Last active January 4, 2018 05:38
Some useful DB2 Queries
/*Foreign Key Of Table*/
SELECT
A.TBNAME,
REFTBNAME,
COLNAME
FROM SYSIBM.SYSRELS A,
SYSIBM.SYSFOREIGNKEYS B
WHERE A.RELNAME = B.RELNAME
AND A.TBNAME = B.TBNAME
AND A.TBNAME='Table_Name'