Skip to content

Instantly share code, notes, and snippets.

Avatar

Alan Kang akngs

  • Box and Whisker
  • South Korea
View GitHub Profile
@akngs
akngs / stream.py
Created Sep 2, 2020
Streaming test
View stream.py
from itertools import chain
def compare(snapshot, old, new):
for old_row in old:
try:
new_row = next(new)
except StopIteration:
break
View README.md

Some images ;)

@akngs
akngs / .block
Last active Dec 16, 2017
Curvature Blindness Illusion
View .block
license: gpl-3.0
@akngs
akngs / .block
Last active Dec 11, 2017
Interactive and visual explanation of SVG path's "arc" command
View .block
license: gpl-3.0
@akngs
akngs / .block
Last active May 5, 2020
D3 implementation of an agent-based predator-prey model.
View .block
license: gpl-3.0
@akngs
akngs / wordfreq.md
Last active Nov 26, 2017
Extract frequent words from URL
View wordfreq.md

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 / index.js
Created Jul 10, 2017
Gist from mistakes.io
View index.js
"hello, world"; // edit this to begin
@akngs
akngs / index.html
Created May 29, 2016
Simple d3 example
View index.html
<!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 / track_external_links.js
Created May 27, 2016
GA external link tracker
View track_external_links.js
@akngs
akngs / README.md
Last active Jan 17, 2016 — forked from mbostock/.block
Canvas Donut for retina display
View README.md