Skip to content

Instantly share code, notes, and snippets.

View narensulegai's full-sized avatar
:octocat:

Naren Sulegai narensulegai

:octocat:
View GitHub Profile
@narensulegai
narensulegai / .block
Last active July 12, 2022 17:54
Zoomable line chart
license: gpl-3.0
@narensulegai
narensulegai / printVar.js
Created January 16, 2022 00:27
Simple utitly function to inspect JavaScript a variable
function printVar(ob, tc = 0) {
tc += 1
const tabs = '\t'.repeat(tc)
const prototypes = (ob) => {
let res = ''
for (const e of Object.getOwnPropertyNames(ob.prototype)) {
if (e === 'constructor') {
res += e
@narensulegai
narensulegai / index.html
Last active November 24, 2017 04:15
Simple slider
<!DOCTYPE html>
<meta charset="utf-8">
<style>
.container {
height: 500px;
width: 50%;
margin: auto;
}
@narensulegai
narensulegai / .block
Last active July 18, 2017 14:56
Flower chart
license: gpl-3.0
@narensulegai
narensulegai / .block
Last active July 3, 2017 05:36
CSS pie chart
license: gpl-3.0
@narensulegai
narensulegai / .block
Last active June 26, 2017 17:46
Spider chart
license: gpl-3.0