Skip to content

Instantly share code, notes, and snippets.

@akngs
akngs / README.md
Last active January 17, 2016 23:36 — forked from mbostock/.block
Canvas Donut for retina display
@akngs
akngs / index.html
Created May 29, 2016 14:38
Simple d3 example
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Simple d3 example</title>
<script src="//d3js.org/d3.v3.min.js"></script>
</head>
<body>
<script>
d3.select("body").append("p").text("New paragraph!");
@akngs
akngs / index.js
Created July 10, 2017 15:26
Gist from mistakes.io
"hello, world"; // edit this to begin
@akngs
akngs / wordfreq.md
Last active November 26, 2017 08:56
Extract frequent words from URL

How to run

  1. Install Python 3
  2. Install KoNLPy
  3. Run python wordfreq.py --xpath './/div[@class="statement"]/div[@class="content glossary"]/text()' --url http://pokr.kr/meeting/1933823653/dialog
@akngs
akngs / .block
Last active December 11, 2017 13:30
Interactive and visual explanation of SVG path's "arc" command
license: gpl-3.0
@akngs
akngs / .block
Last active December 16, 2017 05:07
Curvature Blindness Illusion
license: gpl-3.0
@akngs
akngs / README.md
Last active October 27, 2019 02:55
Images

Some images ;)

@akngs
akngs / track_external_links.js
Created May 27, 2016 03:31
GA external link tracker
@akngs
akngs / .block
Last active May 5, 2020 17:45
D3 implementation of an agent-based predator-prey model.
license: gpl-3.0
@akngs
akngs / stream.py
Created September 2, 2020 15:23
Streaming test
from itertools import chain
def compare(snapshot, old, new):
for old_row in old:
try:
new_row = next(new)
except StopIteration:
break