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 / pctrends-2019.csv
Last active May 31, 2019 09:13
Indian Parliamentary Elections 2019 – Parliamentary Constituency Trends Dataset – http://results.eci.gov.in/pc/en/trends/statewiseU011.htm. Part of work https://github.com/git-ashish/india-elects-2019
We can make this file beautiful and searchable if this error is corrected: It looks like row 7 should actually have 10 columns, instead of 4. in line 6.
Constituency,Const. No.,Leading Candidate,Leading Party,Trailing Candidate,Trailing Party,Margin,Status,Winning Candidate,Winning Party
Andaman & Nicobar Islands,1,KULDEEP RAI SHARMA,Indian National Congress,VISHAL JOLLY,Bharatiya Janata Party,7812,Result Declared,BISHNU PADA RAY,Bharatiya Janata Party
Amalapuram ,7,CHINTA ANURADHA,Yuvajana Sramika Rythu Congress Party,GANTI HARISH MADHUR (BALAYOGI),Telugu Desam,120576,Result Declared,DR PANDULA RAVINDRA BABU,Telugu Desam
Anakapalli,5,Dr.Beesetti Venkata Satyavathi,Yuvajana Sramika Rythu Congress Party,ADARI ANAND KUMAR,Telugu Desam,47932,Result Declared,MUTTAMSETTI SRINIVASA RAO (AVANTHI),Telugu Desam
Anantapur,19,TALARI RANGAIAH,Yuvajana Sramika Rythu Congress Party,J.C. PAVAN REDDY,Telugu Desam,61991,Result Declared,J.C. DIVAKAR REDDI,Telugu Desam
Aruku ,1,GODDETI. MADHAVI,Yuvajana Sramika Rythu Congress Party,KISHORE CHANDRA DEO,Telugu Desam,91398,Result Declared,KOTHAPALLI GEETHA,Yuvajana Sramika Rythu Congress Party
Bapatla ,15,NANDIGAM SURESH,Yuvajana
@git-ashish
git-ashish / lat_lng_jitter.js
Created May 30, 2019 11:54 — forked from michiel/lat_lng_jitter.js
Add jitter to latitude/longitude
//
// Make a few assumptions and add noise to latitude/longitude position
// Ex, console.log(jitter(-26.4853429150483, -49.072945734375, 5));
//
var rad_Earth = 6378.16;
var one_degree = (2 * Math.PI * rad_Earth) / 360;
var one_km = 1 / one_degree;
function randomInRange(from, to, fixed) {
@git-ashish
git-ashish / README.md
Created May 23, 2019 07:27
India Parliamentary Constituency TopoJSON
@git-ashish
git-ashish / README.md
Created May 16, 2019 17:15 — forked from veltman/README.md
Canvas scatterplot with quadtree

Canvas scatterplot w/ quadtree for point picking on hover, per: https://twitter.com/mbostock/status/733317794419212288

If you don't want the full Voronoi effect because your chart has some big dead zones, you could add a distance threshold and only trigger the highlighting when the nearest point is within that distance.

If you need behavior that more closely mimics mouse/touch because your shapes have significant dimensions or their layer order matters, you could try colorpicking instead.

@git-ashish
git-ashish / .block
Created May 16, 2019 16:58 — forked from pbeshai/.block
Animate thousands of points with canvas and D3
license: mit
height: 620
border: no
@git-ashish
git-ashish / README.md
Created May 16, 2019 16:47 — forked from veltman/README.md
Mystery box
@git-ashish
git-ashish / README.md
Created May 16, 2019 04:35 — forked from veltman/README.md
Flocking boids
@git-ashish
git-ashish / README.md
Created May 16, 2019 04:35 — forked from veltman/README.md
Flocking boids
@git-ashish
git-ashish / .block
Created May 15, 2019 09:25 — forked from mbostock/.block
Chained Transitions
license:gpl-3.0
@git-ashish
git-ashish / .block
Created May 15, 2019 08:21 — forked from mbostock/.block
Projection Transitions
license: gpl-3.0