Skip to content

Instantly share code, notes, and snippets.

View bpbhat77's full-sized avatar

Prashanth Bhat bpbhat77

  • Infinera
  • Bengaluru,India
View GitHub Profile
@bpbhat77
bpbhat77 / arrayunique.js
Created October 7, 2016 03:52
6 ways to get unique values of an Array in Javascript
Array.prototype.unique1 = function()
{
var n = [];
for(var i = 0; i < this.length; i++)
{
if (n.indexOf(this[i]) == -1) n.push(this[i]);
}
return n;
}
@bpbhat77
bpbhat77 / designer.html
Last active August 29, 2015 14:08
designer
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../paper-toggle-button/paper-toggle-button.html">
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<link rel="import" href="../paper-calculator/paper-calculator.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<link rel="import" href="../google-map/google-map.html">
<link rel="import" href="../core-menu-button/core-menu-button.html">
@bpbhat77
bpbhat77 / designer.html
Last active August 29, 2015 14:08
designer
<link rel="import" href="../topeka-elements/category-icons.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;