Skip to content

Instantly share code, notes, and snippets.

View vhpoet's full-sized avatar
🕉️

Vahe Hovhannisyan vhpoet

🕉️
View GitHub Profile
@vhpoet
vhpoet / example.md
Last active November 1, 2016 22:58
five-bells-condition browser usage

index.html

<html>
<head>
    <script src="./bundle.js"></script>
</head>
<body>Open the console and call methods on FiveBellsCondition</body>
</html>
@vhpoet
vhpoet / timeAgoFormatter.js
Last active September 15, 2016 18:38
TimeAgo "a few seconds ago" formatter
timeAgoFormatter = (value, unit, suffix) => {
if (unit !== 'second') {
return [value, unit + (value !== 1 ? 's' : ''), suffix].join(' ')
}
if (suffix === 'ago') {
return 'a few seconds ago'
}
if (suffix === 'from now') {
@vhpoet
vhpoet / designer.html
Created August 6, 2014 21:46
designer
<link rel="import" href="../components/polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
#smoothie_chart {
left: 540px;
top: 180px;
position: absolute;