Skip to content

Instantly share code, notes, and snippets.

View arunkp's full-sized avatar

Arun Rao arunkp

View GitHub Profile
@arunkp
arunkp / Google-analytics
Created January 4, 2018 16:25
Submit local analytics
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-111975679-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-111975679-1');
</script>
<html>
<head>
<style class="cp-pen-styles">#featureAnimation,#featureBox{background-color:#fff;overflow:hidden;line-height:normal;font-size:80%;z-index:1000;}#featureAnimation{position:fixed;visibility:hidden;}#featureBox{position:absolute;}.star{position:absolute;background-color:#161616;display:none;z-index:1001;}.dot{position:absolute;background-color:#91e600;}.page-box{opacity:0;}</style>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/gsap/1.11.2/TweenMax.min.js'></script></head>
<body id="home" class="fixed-header">
<div id="featureBox"></div><div class="feature" id="featureAnimation"><div id="featureBackground" style="pointer-events:none;"></div></div>
<script type="text/javascript">
/* verge 1.9.1+201402130803 | https://github.com/ryanve/verge | * MIT License 2013 Ryan Van Etten | Script to fetch viewport dimensions */
! function(a, b, c) {
@arunkp
arunkp / appointment.js
Last active April 5, 2022 11:55
appointments
// Make sure you have node installed on your machine. If not install using NVM: https://github.com/nvm-sh/nvm#installing-and-updating
// Install these dependencies https://www.npmjs.com/package/puppeteer and https://www.npmjs.com/package/node-schedule
// just run node appointment.js
// Increase your system volume so that you hear continuous beeps or alerts.
// Its easy to stop the script: just do "Control + C" and it will stop the script
// Post your comments below if you find any updates on this code.
const puppeteer = require("puppeteer");
const schedule = require("node-schedule");