Skip to content

Instantly share code, notes, and snippets.

View arup-b's full-sized avatar
🥰
Awesome GitHub

Arup Bhattacharya arup-b

🥰
Awesome GitHub
View GitHub Profile
@arup-b
arup-b / designer.html
Created August 28, 2014 09:45
designer
<link rel="import" href="../topeka-elements/category-icons.html">
<link rel="import" href="../core-icon/core-icon.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
[
{
"name": "UNLEADED PREMIUM GASOLINE",
"rvp": 7.8,
"rmoct" : 93
},
{
"name": "UNLEADED REGULAR GASOLINE",
"rvp": 9.3,
"rmoct" : 87
@arup-b
arup-b / calculated.json
Last active August 29, 2015 14:09
This JSON used in the Octane Calculator App
[{"ComponentName":"TOLUENE","RVP":1.3,"ButaneCredit":0.128 ,"Octane":103.5,"CalculatedPrice":350.5213675214},
{"ComponentName":"MTBE","RVP":8.2,"ButaneCredit":-0.008 ,"Octane":108,"CalculatedPrice":336.7679158448},
{"ComponentName":"ETBE","RVP":4,"ButaneCredit":0.075 ,"Octane":111,"CalculatedPrice":354.704799474},
{"ComponentName":"VIRGIN XYLENES","RVP":0.3,"ButaneCredit":0.148 ,"Octane":103.5,"CalculatedPrice":353.6015779093},
{"ComponentName":"REFORMATE - 94 RON","RVP":2.6,"ButaneCredit":0.103 ,"Octane":89.2,"CalculatedPrice":322.6837606838},
{"ComponentName":"REFORMATE - 98 RON","RVP":2.8,"ButaneCredit":0.099 ,"Octane":92.3,"CalculatedPrice":327.2343852728},
{"ComponentName":"REFORMATE - 100 RON","RVP":3,"ButaneCredit":0.095 ,"Octane":94.1,"CalculatedPrice":329.6183431953},
{"ComponentName":"REFORMATE - 104 RON","RVP":3.4,"ButaneCredit":0.087 ,"Octane":98,"CalculatedPrice":334.8862590401},
{"ComponentName":"C9+ AROMATICS","RVP":0.1,"ButaneCredit":0.152 ,"Octane":105.5,"CalculatedPrice":357.5509533202},
{"C
@arup-b
arup-b / Accordion List: Nightly.markdown
Created August 23, 2015 05:51
Accordion List: Nightly
@arup-b
arup-b / Customizing An Ionicon.markdown
Created August 24, 2015 17:14
Customizing An Ionicon
@arup-b
arup-b / Zigzag Horizontal Rule.markdown
Created August 29, 2015 05:47
Zigzag Horizontal Rule
@arup-b
arup-b / index.html
Created September 6, 2015 14:50
qOEebb
<html ng-app="ionicApp">
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
<title>Side Menus</title>
<link href="http://code.ionicframework.com/1.0.0-beta.9/css/ionic.css" rel="stylesheet">
<script src="http://code.ionicframework.com/1.0.0-beta.9/js/ionic.bundle.js"></script>
</head>
@arup-b
arup-b / Ionic : Slidebox with Dynamic Slides.markdown
Created September 10, 2015 10:09
Ionic : Slidebox with Dynamic Slides
@arup-b
arup-b / duplicateFinder.js
Last active September 16, 2016 07:06
Function to check if an Array has duplicate elements
var ar = ['https://scontent.cdninstagram.com/t50.2886-16/13351747_1548398895467100_1473273865_n.mp4',
'https://scontent.cdninstagram.com/t50.2886-16/13427635_553906271448787_1921670084_s.mp4',
'http://planetairsport.digitalsign.social/files/ae5fbf6e17d3f99a65742fff88abe1fd.jpg',
'http://planetairsport.digitalsign.social/files/2242d160aec87a46a7c9a12395b02c80.jpg',
'http://planetairsport.digitalsign.social/files/09e72e18197a3c19eb48e364e1486b50.jpg',
'https://scontent.cdninstagram.com/t50.2886-16/13647809_902603383185427_359341575_n.mp4',
'http://planetairsport.digitalsign.social/files/bfde5b157d067023e5216ea2316c4cb7.jpg',
'https://scontent.cdninstagram.com/t50.2886-16/13728792_1738082423127752_382512439_n.mp4',
'http://planetairsport.digitalsign.social/files/d6ed32c3784bd6883db17c6282203727.jpg',
'http://planetairsport.digitalsign.social/files/c82e093fcab76c4105d74221ed1fa78e.jpg',
@arup-b
arup-b / center-align.scss
Last active December 26, 2019 04:52
Centering elements (other than texts) inside a <ion-col></ion-col> is painful. Apply the following CSS in your respective component level scss or global theme to align items centrally.
.center{
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-webkit-box-direction: normal;
-moz-box-direction: normal;
-webkit-box-orient: horizontal;
-moz-box-orient: horizontal;