Skip to content

Instantly share code, notes, and snippets.

Avatar

Bipin Radhakrishnan rbipin

View GitHub Profile
@rbipin
rbipin / pm-Prereq-token-Auth.js
Created May 17, 2019
Postman Prerequest to get the oauth token and send it with actual request
View pm-Prereq-token-Auth.js
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 Apr 2, 2018
Reusing the same HttpClient object, the right way to call different URI's with same HttpClient object
View HttpClientWebApiConnection.cs
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 Mar 23, 2018
Aspx Gridview with a main header and subheader
View GridViewWithSubheader.aspx.vb
''' <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 Jan 4, 2018
Some useful DB2 Queries
View Foreignkey.sql
/*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'
You can’t perform that action at this time.