Skip to content

Instantly share code, notes, and snippets.

View soravgarg123's full-sized avatar

Sorav Garg soravgarg123

View GitHub Profile
curl --location 'https://ems.psuad.ac.ae/pdfcreator/lib/html5/annotationHandler.php?did=GettingStarted' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'save=1' \
--data-urlencode 'data=<?xml version="1.0" encoding="UTF-8" ?>
<xfdf xmlns="http://ns.adobe.com/xfdf/" xml:space="preserve">
<fields />
<annots><text subject="Sticky" page="0" rect="404.493157,788.36853,427.743162,765.118525" name="c2e3774e-1522-b434-8262-d62ea710199f" title="Syed Amer" date="D:20230518112611+5.5'\''30'\''" color="#FFFF00" creationdate="D:20230518112611+5.5'\''30'\''" icon="Comment"><contents-richtext><body xmlns="http://www.w3.org/1999/xhtml" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/" xfa:spec="2.0.2" xfa:APIVersion="Acrobat:10.1.3"><p dir="ltr"><span dir="ltr" style="font-size:10.0pt;text-align:left;color:#000000;font-weight:normal;font-style:normal">test</span></p></body></contents-richtext><popup flags="print,nozoom,norotate" page="0" rect="349.28481,839.16021,469.28484,779.160195" open="
<!doctype html>
<html>
<head>
<title>Socket.IO chat</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font: 13px Helvetica, Arial; }
form { background: #000; padding: 3px; position: fixed; bottom: 0; width: 100%; }
form input { border: 0; padding: 10px; width: 90%; margin-right: .5%; }
form #send_msg { width: 8%; background: rgb(130, 224, 255); border: none; padding: 10px; }
@soravgarg123
soravgarg123 / ICS.php
Created August 5, 2017 08:52 — forked from jakebellacera/ICS.php
A convenient script to generate iCalendar (.ics) files on the fly in PHP.
<?php
/**
* ICS.php
* =======
* Use this class to create an .ics file.
*
* Usage
* -----
* Basic usage - generate ics file contents (see below for available properties):
@soravgarg123
soravgarg123 / index.php
Created August 3, 2017 14:17 — forked from amfeng/index.php
Stripe OAuth Example -- PHP
<?php
define('CLIENT_ID', 'YOUR_CLIENT_ID');
define('API_KEY', 'YOUR_API_KEY');
define('TOKEN_URI', 'https://connect.stripe.com/oauth/token');
define('AUTHORIZE_URI', 'https://connect.stripe.com/oauth/authorize');
if (isset($_GET['code'])) { // Redirect w/ code
$code = $_GET['code'];
@soravgarg123
soravgarg123 / slideshare-upload.php
Last active November 17, 2016 07:44 — forked from techslides/slideshare-upload.php
Slide Upload with SlideShare API and PHP cURL
<?php
//user provided settings
$apikey = 'API-KEY';
$secret = 'SECRET';
$username = 'USERNAME';
$password = 'PASSWORD';
$title = "YOUR-TITLE";
$file = rawurlencode('URL-TO-FILE');
$public = "Y";
<?php
/**
* Get Vimeo video id from url
*
* Supported url formats -
*
* https://vimeo.com/11111111
* http://vimeo.com/11111111
@soravgarg123
soravgarg123 / instantiate.html
Created December 31, 2015 18:43 — forked from pblca/instantiate.html
Getting Started Tutorial for Using PubNub with JavaScript
<!-- Include the PubNub Library -->
<script src="https://cdn.pubnub.com/pubnub.min.js"></script>
<!-- Instantiate PubNub -->
<script type="text/javascript">
var PUBNUB_demo = PUBNUB.init({
publish_key: 'Your Publish Key Here',
subscribe_key: 'Your Subscribe Key Here'
});