Skip to content

Instantly share code, notes, and snippets.

View git-ashish's full-sized avatar
🏠
Freelancing – Open to exciting opportunities

Ashish Singh git-ashish

🏠
Freelancing – Open to exciting opportunities
View GitHub Profile
@git-ashish
git-ashish / .block
Created February 28, 2024 14:57 — forked from AntonOrlov/.block
Radial Bar Chart built with D3
license: gpl-3.0
@git-ashish
git-ashish / puppeteer-gif.js
Created September 20, 2021 18:40 — forked from bambooom/puppeteer-gif.js
use puppeteer to generate gif
const fs = require('fs');
const puppeteer = require('puppeteer');
const GIFEncoder = require('gifencoder');
const PNG = require('png-js');
function decode(png) {
return new Promise(r => {png.decode(pixels => r(pixels))});
}
@git-ashish
git-ashish / .block
Created May 28, 2021 08:46 — forked from HarryStevens/.block
Spin the Earth
license: gpl-3.0
@git-ashish
git-ashish / .block
Created May 28, 2021 08:46 — forked from HarryStevens/.block
Transparent Earth
license: gpl-3.0
@git-ashish
git-ashish / .block
Created April 26, 2021 13:04 — forked from mbostock/.block
D3 Show Reel
license: gpl-3.0
@git-ashish
git-ashish / index.html
Created April 23, 2019 15:19
.Astronomy Star Chart
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.17/d3.min.js"></script>
<style>
body {
background: black;
}
@git-ashish
git-ashish / .block
Created July 29, 2020 11:27 — forked from rpgove/.block
EuroVis 2019 Twitter interaction network
license: bsd-3-clause
height: 600
@git-ashish
git-ashish / energy.json
Last active May 27, 2020 07:40
d3 sankey demo; Highlight all connecting paths of a node
{"nodes":[
{"name":"Agricultural 'waste'"},
{"name":"Bio-conversion"},
{"name":"Liquid"},
{"name":"Losses"},
{"name":"Solid"},
{"name":"Gas"},
{"name":"Biofuel imports"},
{"name":"Biomass imports"},
{"name":"Coal imports"},
@git-ashish
git-ashish / .block
Created June 20, 2019 06:51 — forked from mbostock/.block
Bounded Force Layout
license: gpl-3.0
@git-ashish
git-ashish / index.html
Created June 15, 2019 07:31 — forked from MoritzStefaner/.block
Force-based label placement
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html lang="en">
<head>
<meta charset="utf-8">
<title>Force based label placement</title>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?2.6.0"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.layout.js?2.6.0"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.geom.js?2.6.0"></script>
</head>
<body>