Skip to content

Instantly share code, notes, and snippets.

View amitabhaghosh197's full-sized avatar

amitabha ghosh amitabhaghosh197

View GitHub Profile
@amitabhaghosh197
amitabhaghosh197 / pegaiframegetElement.js
Created February 2, 2021 10:56
Pega iframeGetElements
var ilp = ilp || {};
ilp.getIframeElementsByClassName = function(item){
var iframe = window.parent.document.getElementsByTagName("iframe");
if(iframe.length > 0)
for(var j = 0; j < iframe.length; j++){
var $iframe = iframe[j];
var iframeDocument = $iframe.contentDocument? $iframe.contentDocument:$iframe.contentWindow.document;
var contentBody = iframeDocument.querySelector('.harnessBody');
var elementsByClassName = contentBody.querySelectorAll(item);
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<div id="man"></div>
@amitabhaghosh197
amitabhaghosh197 / SassMeister-input.scss
Last active July 6, 2018 12:15
Generated by SassMeister.com. #sass, #scss, #decimal round
// ----
// Sass (v3.4.25)
// Compass (v1.0.3)
// ----
@function decimal-round ($number, $digits: 0, $mode: round) {
$n: 1;
// $number must be a number
@if type-of($number) != number {
@amitabhaghosh197
amitabhaghosh197 / _decimal.scss
Created June 13, 2018 12:18 — forked from terkel/_decimal.scss
Rounding decimals in Sass
// _decimal.scss | MIT License | gist.github.com/terkel/4373420
// Round a number to specified digits.
//
// @param {Number} $number A number to round
// @param {Number} [$digits:0] Digits to output
// @param {String} [$mode:round] (round|ceil|floor) How to round a number
// @return {Number} A rounded number
// @example
// decimal-round(0.333) => 0
@amitabhaghosh197
amitabhaghosh197 / README.md
Created June 12, 2018 17:10 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.

OP: @leonardofed founder @ plainflow.


<picture>
<source
media="(min-width: 1280px)"
sizes="50vw"
srcset="opera-fullshot-200.webp 200w,
opera-fullshot-400.webp 400w,
opera-fullshot-800.webp 800w,
opera-fullshot-1200.webp 1200w,
opera-fullshot-1600.webp 1600w,
opera-fullshot-2000.webp 2000w"
@amitabhaghosh197
amitabhaghosh197 / mediaqueries.css
Last active May 5, 2018 10:56 — forked from needim/mediaqueries.css
Device Specific CSS Media Queries Collection #media-queries #css
/*
Based on:
1. http://stephen.io/mediaqueries
2. https://css-tricks.com/snippets/css/media-queries-for-standard-devices/
*/
/* iPhone 6 in portrait & landscape */
@media only screen
and (min-device-width : 375px)
and (max-device-width : 667px) {
@amitabhaghosh197
amitabhaghosh197 / javascript-important.md
Created April 27, 2018 11:39
[ Javascript Important] Some Important cheatsheet on javascript #javascript #underscorejs #important #jquery #noConflict

How to add No Conflict for Underscore

It's better to add a noConflict variable for underscore to avoid confliction for '_' symbol on other JS Libraries

var US = _.noConflict();