Skip to content

Instantly share code, notes, and snippets.

View pavan-idapalapati's full-sized avatar

Pavan Kumar pavan-idapalapati

  • Divami Design Labs
  • Hyderabad, India
View GitHub Profile
@pavan-idapalapati
pavan-idapalapati / Something.js
Created November 26, 2019 11:56 — forked from jainofcsubham/Something.js
Client side PDF generation.
/**
* @param element The element that triggered this function.
* Downloads the results summary in PDF format.
*/
function downloadPDF(element) {
var orientation = 'l';
var left = 25
const filename = 'TrustedTechTeam-WSEstimate.pdf';
var html = $('.results').html();
@pavan-idapalapati
pavan-idapalapati / Duke POD Feature.md
Last active November 15, 2019 07:07
Duke Requirments

Duke Requirments:

POD Download Feature:

Android:

  • We have to keep both Pod processed documents and POD report in the same folder.
  • Need to add share functionality for the all the reports in the view report screen.
  • Need to add open folder functionality in Confirmation popup.
@pavan-idapalapati
pavan-idapalapati / http
Last active October 15, 2019 13:28
Swastya sahayak API
### Google API
POST https://fcm.googleapis.com/fcm/send
Content-Type: application/json
Authorization: key=AIzaSyDhhesUs7UNv7qRUci6UJz86D4znYiUcvc
{
"to": "dy870IR53ME:APA91bHT1Xwxtc61JPeoLeZzqH7uNtKBJ1KwIezXB3ps2dO03wRYbepQxNbDctKkDePLUVA7cT6xktzjbyhS3ECUcVtz9sq-H7tJUD1-sV46DtNx9ajTkrsOnvjXydA3iV0_Qbu6GUIj",
//"to": "caiKPwFuvNU:APA91bFDE1mvwTgRQd20OT0injWhFQ2PXDbQNeZ-0ttnmO9WRnvyX1I_3GdsWrD_bddq-j08AI1lzoqyLFQ-SvKE_wES4pADwXFTrWO1IfeZES4euRwh5ClDourjaWSr2aZHKYn8iVRi",
"data": {
"type": "OPINION_POLL",
@pavan-idapalapati
pavan-idapalapati / shopify-documention.md
Created September 12, 2019 15:08
Shopify documentation for TTT calculator

Shopify Documentation

Steps to integrate TTT calculator to shopify

Create the shoppify store in the shopify website and go to admin dashboard.

Go to themes page from side navbar -> select the actions dropdown and choose Edit code option.

@pavan-idapalapati
pavan-idapalapati / js
Created September 9, 2019 12:25
Android keypad event preventDefault solution
$('#test').on('input',function () {
var inputText = $(this).val();
console.log(inputText);
var resultText = inputText.replace(/[^0-9]/g, '');
$(this).val(resultText);
});
"use strict";
import gulp from "gulp";
import uglify from "gulp-uglify";
import babel from "gulp-babel";
const dirs = {
src: "src/*.js",
dest: "build"
}
@pavan-idapalapati
pavan-idapalapati / gist:fd536808cea5cebb7def428936b44163
Last active August 29, 2019 11:08
Spiceworks on-scroll fixed header functionality
//Html Code
//Note: fixed position style should be in inline style.
<header class="dell-infographic" id="app-fixed-header" style="position:fixed"></header>
//JS code
/*
* getting the fix header element
*/
@pavan-idapalapati
pavan-idapalapati / json
Created August 27, 2019 10:08
VS code settings
settings
@pavan-idapalapati
pavan-idapalapati / md
Last active July 18, 2019 07:43
IOS hacks
#Rounded Corners
button.layer.cornerRadius = button.frame.size.height/2;
#UI tab bar color settings
UITabbar.apperence().barTintColor = .black // background
UITabbar.apperence().tintColor = .red // icon fill color
var request = require("request");
var options = { method: 'POST',
url: 'https://31l6vlmvq9.execute-api.us-east-1.amazonaws.com/api/CRAIG@DUKE-AI.COM/multiupload',
headers:
{ 'Postman-Token': 'f4c08249-1705-462f-9df7-5996e8e832f8',
'cache-control': 'no-cache',
Authorization: 'eyJraWQiOiJZK0ZsRUFlNUhFemVLY2dIZnFTSjFLeCtQZHpLSkVvNjRESEt5QXcyYWdnPSIsImFsZyI6IlJTMjU2In0.eyJzdWIiOiIwMDBmZmUzMi1jM2FlLTRhNzktYmVhYS1kYzI3ZGYwZWQ5Y2EiLCJjb2duaXRvOmdyb3VwcyI6WyJ1c2VycyJdLCJlbWFpbF92ZXJpZmllZCI6ZmFsc2UsImlzcyI6Imh0dHBzOlwvXC9jb2duaXRvLWlkcC51cy1lYXN0LTEuYW1hem9uYXdzLmNvbVwvdXMtZWFzdC0xX0F0NG5hNzZzZSIsInBob25lX251bWJlcl92ZXJpZmllZCI6ZmFsc2UsImNvZ25pdG86dXNlcm5hbWUiOiJVU0VSMUBEVUtFLkFJIiwiYXVkIjoiNXEwNTY5b25mbzNia2VtMGN0aGJoNHJxbm0iLCJldmVudF9pZCI6IjAzNjk5ZjI2LTYwOTAtNGNmMC1iZjAzLWE5NGM2NjU2YTQwNSIsInRva2VuX3VzZSI6ImlkIiwiYXV0aF90aW1lIjoxNTYxMDQzODYxLCJleHAiOjE1NjEwNDc0NjEsImlhdCI6MTU2MTA0Mzg2MSwiZW1haWwiOiJVU0VSMUBEVUtFLkFJIn0.EVrRi40hhcJrj6zbgqOL2aEYLJuSU07bKLKyz6q1DDg1p9Hv3jFXuMBAic-kTIFVINjhPM6ujc9E5