Skip to content

Instantly share code, notes, and snippets.

View darshit-shah's full-sized avatar

Darshit Shah darshit-shah

View GitHub Profile
@darshit-shah
darshit-shah / index.html
Created March 8, 2018 12:20
Dynamic Tooltip width
<html>
<head>
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<style>
html, body {
background: black;
}
.tooltip {
background: transparent;
min-width: 50px;
@darshit-shah
darshit-shah / index.css
Last active March 2, 2023 02:39
Get Sheet data from Tableau Visualization link
td,
th {
padding: 0px 30px;
border: 2px solid white;
}
a {
color: blue;
}
@darshit-shah
darshit-shah / index.html
Last active December 30, 2016 23:38
Mouse hovering on how many Convex Polygons?
<!DOCTYPE html>
<meta charset="utf-8">
<script src="https://d3js.org/d3.v3.min.js"></script>
<canvas width="500" height="500"></canvas>
<div style="float:left">
<div>
Total Polygon<input type="text" id="totalPolygon" value="3" style="margin-left:20px;" />
</div>
<div>
Visible Polygon<input type="text" id="drawPolygon" value="3" style="margin-left:20px;" />
@darshit-shah
darshit-shah / index.html
Last active December 30, 2016 22:26
Generate Convex Polygons
<!DOCTYPE html>
<meta charset="utf-8">
<canvas width="500" height="500"></canvas>
<script>
var canvas = document.querySelector("canvas"),
context = canvas.getContext("2d");
var width = canvas.width,
height = canvas.height;
var counter=0;
@darshit-shah
darshit-shah / index.html
Last active September 15, 2016 06:00
WhatsApp Share
<a href="whatsapp://send?text=https%3A//byteprophecy.com" data-action="share/whatsapp/share">Share via Whatsapp</a>
<BR>
@darshit-shah
darshit-shah / CanvasGrid.v2.js
Last active September 1, 2016 10:18
CanvasGrid V2 - Dynamic Data - 1000000 Rows & 100 Columns
/*
// TODO
// 001 draw gridlines in initialStage
// 002 cell background and cell borders are to be drawn only if specified
// 003 Key down/up/left/right copy originalCanvas to new location and then render only required canvas
*/
var CanvasGrid = Object.create(HTMLElement.prototype);
@darshit-shah
darshit-shah / CanvasGrid.v2.js
Last active September 1, 2016 10:13
Canvas Grid V2 - RSS Feeds
/*
// TODO
// 001 draw gridlines in initialStage
// 002 cell background and cell borders are to be drawn only if specified
// 003 Key down/up/left/right copy originalCanvas to new location and then render only required canvas
*/
var CanvasGrid = Object.create(HTMLElement.prototype);
@darshit-shah
darshit-shah / index.html
Last active January 23, 2020 08:10
Text Background Color using CSS Transition
<style>
.clip-text {
font-size: 50px;
font-weight: bold;
text-align: center;
color: #fff;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
font-family: arial
}
@darshit-shah
darshit-shah / README.md
Last active January 23, 2020 08:09
Word Cloud

Word Cloud