Skip to content

Instantly share code, notes, and snippets.

View appikonda's full-sized avatar

Sandeep Appikonda appikonda

View GitHub Profile
@appikonda
appikonda / local.js
Created May 3, 2023 21:35
Local Storage
function utmLocalstorageTag() {
const queryString = window.location.search; // url query string
const urlParams = new URLSearchParams(queryString); // get parameters in url
// get required parameters for the LocalStorage management
const utm_medium_value = urlParams.get('utm_medium');
if (utm_medium_value) {
const previousMediumValue = getItem("_utmMedium"); // check for previous UTM medium value in LocalStorage
@appikonda
appikonda / cookies.js
Created March 27, 2023 07:20
create and retrieve cookies
function utmCookieTag() {
const queryString = window.location.search; // url query string
const urlParams = new URLSearchParams(queryString); // get parameters in url
// get required parameters for the cookie management
const utm_medium_value = urlParams.get('utm_medium')
if (utm_medium_value) {
const previousCookie = getCookie("_utmMedium"); // check for previous cookie
if (previousCookie) {
import java.util.ArrayList;
import java.util.List;
public class InterviewQuestion {
public static void main(String[] args) {
int arr[] = { 2, 2, 3, 4 };
int num = 4;
System.out.println("Number is: " + num + "and its count :" + countNum(arr, num));
@appikonda
appikonda / test.py
Created April 13, 2020 18:49
adding element to json
import json
# a Python object (dict):
x = [{
"name": "John",
"age": 30,
"city": "New York"
},
{
"name": "sandeep",
@appikonda
appikonda / test.md
Last active February 4, 2020 23:31

Result

Alt text

Alt text

@appikonda
appikonda / ora.md
Last active February 11, 2020 23:32
Oracle DB issues

Resolve ORA-011033: ORACLE initialization or shutdown in progress


sqlplus "sys as sysdba"


SQL> select status, database_status from v$instance;

STATUS       DATABASE_STATUS
@appikonda
appikonda / MERN.md
Last active November 21, 2019 22:17
MERN Stack CURD App

create a react application

npx create-react-app react-merm-app

@appikonda
appikonda / test.sas
Created September 30, 2019 14:04
macros
%macro test(start, finish, inc, limit);
%let y=0;
%end;
%do i= %sysevalf(&start) %to %sysevalf(&finish);/* %by &inc;*/
%if (&y < &limit) %then %do;
%let y = %SYSEVALF(&i**2);
%put the value of i is &i , &y;
%let start =%SYSEVALF(&i+ &inc);
@appikonda
appikonda / test.sas
Created September 30, 2019 14:04
macros
%macro test(start, finish, inc, limit);
%let y=0;
%end;
%do i= %sysevalf(&start) %to %sysevalf(&finish);/* %by &inc;*/
%if (&y < &limit) %then %do;
%let y = %SYSEVALF(&i**2);
%put the value of i is &i , &y;
%let start =%SYSEVALF(&i+ &inc);
@appikonda
appikonda / Mintty.md
Last active January 25, 2021 10:05
Mintty Themes for Windows