Skip to content

Instantly share code, notes, and snippets.

View shishirarora3's full-sized avatar

shishir arora shishirarora3

  • Microsoft Corporation
  • bangalore, india
View GitHub Profile
@shishirarora3
shishirarora3 / loop.js
Created August 29, 2021 20:00
snippet to run a script in loop
var neededHr = 19;
var neededMin = 00;
var dateToBeBooked = '01/09/2021';
const call = (start_booking_date,booking_start_time_hrs,booking_end_time_hrs)=>fetch("https://www.apnacomplex.com/facilities/confirm_booking/", {
"headers": {
"accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",
"accept-language": "en-US,en;q=0.9,es;q=0.8",
@shishirarora3
shishirarora3 / cloudSettings
Last active February 21, 2020 01:59
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-02-20T18:48:58.585Z","extensionVersion":"v3.4.3"}
https://gist.github.com/denis111/c3e08bd7c60febc1de8219930a97c2f6
@shishirarora3
shishirarora3 / index.html
Created April 6, 2019 06:05
WEEKLY CODING CHALLENGE - Full Page slider
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>
Hello Slider
</title>
</head>
<body>
<div class="slider">
<div class="slide slide-1">
27317.97
rt NVM_DIR="$HOME/.nvm"
. "/usr/local/opt/nvm/nvm.sh"mkdir -p /data/db
mongod
sudo rm -rf `find / -iname '*jetbrain*'` && rm -rf `find / -iname '*wstorm*'` && rm -rf `find / -iname '*webstorm*'` && rm -rf `find / -iname ‘*idea*’` && rm -rf `find / -iname ‘*intellij*’`
To delete web storm files
// jquerify.js
// https://github.com/bgrins/devtools-snippets
// Add jQuery to any page that does not have it already.
(function () {
const addScript = (sc) =>{
var s = document.createElement('script');
s.setAttribute('src', sc);
document.body.appendChild(s);
@shishirarora3
shishirarora3 / index.html
Last active December 9, 2018 02:49
Flexbox YouTube Thumbnail Grid
<main role="main">
<section class="videos" id="featured-videos">
<div class="video-grid front-page" id="front-page-videos">
<ul class="video-list featured">
<li class="video featured">
<a data-fancybox href="https://www.youtube.com/embed/Zq6Crtglztk?autoplay=1&controls=0&showinfo=0&color=white&rel=0" class="featured-video">
<figure style="background-image: url(https://img.youtube.com/vi/Zq6Crtglztk/hqdefault.jpg);">
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/50598/video-thumb-placeholder-16-9.png" />
<figcaption>Swap-Meet Speed for Roadkill Nights</figcaption>
#app{
text-align:center;
input{
width:200px;
background-color:lightgrey;
border:0;
height:1.2em;
font-size:1.5em;
}
button{
@shishirarora3
shishirarora3 / index.html
Created November 12, 2018 10:54
AngularJS Tutorials // source https://jsbin.com/johaye
<!DOCTYPE html>
<html>
<head>
<title>AngularJS Tutorials</title>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.2/angular.js"></script>
</head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/foundation/5.5.3/css/foundation.css">
<body>
<div ng-app="app">
if(!('bind' in Function.prototype)){
Function.prototype.bind = function() {
var fn = this;
var context = arguments[0];
var args = Array.prototype.slice.call(arguments, 1);
return function() {
return fn.apply(context, args.concat([].slice.call(arguments)));
}
}
}