Skip to content

Instantly share code, notes, and snippets.

@tanmaypatel
tanmaypatel / test.html
Last active August 29, 2015 14:22
Positioning!
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>Affordable Healthcare</title>
<link href='http://fonts.googleapis.com/css?family=Roboto:400,900,700,400italic,500' rel='stylesheet' type='text/css'>
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<style>
html, body
@tanmaypatel
tanmaypatel / area-to-path.js
Created September 8, 2015 17:52
Area tag to SVG Path Element
var coordinatesData = "412,156, 427,161, 429,163, 444,153, 453,155, 457,159, 452,168, 459,174, 455,178, 460,179, 463,193, 460,203, 441,214, 436,217, 458,238, 469,257, 479,267, 478,269, 479,285, 458,309, 436,310, 414,305, 410,323, 397,334, 379,313, 389,316, 401,320, 399,305, 382,300, 371,290, 367,296, 366,298,338,274, 332,272, 300,239, 316,238, 316,234, 313,230, 328,225, 333,213, 338,196, 333,181, 337,166, 345,145";
var coordsTokens = coordinatesData.split(/\s*,\s*/);
var pathData = "";
for(var i = 0; i < coordsTokens.length; i+=2)
{
if(i<2)
{
pathData += "M"
@tanmaypatel
tanmaypatel / index.html
Created November 15, 2018 07:33
MQTT Client in React
<nav class="navbar navbar-dark bg-primary">
<a class="navbar-brand" href="#">MQTT Demo</a>
</nav>
<div id="root" class="container-fluid">
</div>