Skip to content

Instantly share code, notes, and snippets.

View raval08255's full-sized avatar

Patel Arti Kumari Prakash Bhai raval08255

View GitHub Profile
function interceptNetworkRequests(ee) {
const open = XMLHttpRequest.prototype.open;
const send = XMLHttpRequest.prototype.send;
const isRegularXHR = open.toString().indexOf('native code') !== -1;
// don't hijack if already hijacked - this will mess up with frameworks like Angular with zones
// we work if we load first there which we can.
if (isRegularXHR) {
@raval08255
raval08255 / file.md
Created November 20, 2022 09:40 — forked from ichord/gist:9808444
PDF to Image

PDF to Image

<script src="http://cdnjs.cloudflare.com/ajax/libs/processing.js/1.4.1/processing-api.min.js"></script><html>
<!--
  Created using jsbin.com
  Source can be edited via http://jsbin.com/pdfjs-helloworld-v2/8598/edit
-->
<body>
  <canvas id="the-canvas" style="border:1px solid black"></canvas>
@raval08255
raval08255 / ppt-to-png-custom-scale.py
Created November 17, 2022 11:13 — forked from aspose-com-gists/ppt-to-png-custom-scale.py
Convert PowerPoint PPT or PPTX to PNG in Python
import aspose.slides as slides
import aspose.pydrawing as drawing
# Load presentation
pres = slides.Presentation("presentation.pptx")
# Loop through slides
for index in range(pres.slides.length):
# Get reference of slide
slide = pres.slides[index]