Skip to content

Instantly share code, notes, and snippets.

@akngs
akngs / index.md
Created January 27, 2023 07:46
Skyrock
View index.md

In the distant future, the company Skyrock offers cutting-edge automated algorithmic trading services to the masses. Utilizing advanced AI technology, the algorithm scours the vast expanse of the cyber-universe, consuming news articles, blog posts, and social media feeds to predict fluctuations in the stock market.

One fateful day, the algorithm detected a sudden surge in online discussion regarding a border dispute between the mighty nations of China and India. Analyzing this data, the algorithm made bold predictions about the potential economic ramifications of a potential conflict. Without hesitation, the algorithm began executing trades, buying and selling stocks at lightning speed.

As the algorithm’s predictions spread like wildfire through the media, tensions between China and India began to rise. Economic pressures mounted, and the leaders of both nations found themselves in a precarious position. Desperate to gain a strategic advantage in the market, they were forced to consider aggressive actions.

@akngs
akngs / stream.py
Created September 2, 2020 15:23
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
@akngs
akngs / README.md
Last active October 27, 2019 02:55
Images
View README.md

Some images ;)

@akngs
akngs / .block
Last active December 16, 2017 05:07
Curvature Blindness Illusion
View .block
license: gpl-3.0
@akngs
akngs / .block
Last active December 11, 2017 13:30
Interactive and visual explanation of SVG path's "arc" command
View .block
license: gpl-3.0
@akngs
akngs / .block
Last active May 5, 2020 17:45
D3 implementation of an agent-based predator-prey model.
View .block
license: gpl-3.0
@akngs
akngs / wordfreq.md
Last active November 26, 2017 08:56
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 July 10, 2017 15:26
Gist from mistakes.io
View index.js
"hello, world"; // edit this to begin
@akngs
akngs / index.html
Created May 29, 2016 14:38
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 03:31
GA external link tracker
View track_external_links.js