Skip to content

Instantly share code, notes, and snippets.

@cieloazul310
cieloazul310 / .block
Last active November 25, 2017 05:23
D3 Grouping Bar Chart
license: gpl-3.0
@cieloazul310
cieloazul310 / README.md
Last active November 30, 2017 09:53
B.LEAGUE クラブ決算情報 2016-2017

B.LEAGUE クラブ決算情報 2016-2017

[B.LEAGUE 2016-17シーズン(2016年度)クラブ決算概要][pdf](2017年11月29日公表)に情報を加えてCSVファイル化したものです。

表の決算数値の単位は千円です。
つまり北海道の営業収入438,540は、
438,540 × 1000 = 438,540,000円、すなわち4億3854万円を表しています。

注意事項

@cieloazul310
cieloazul310 / README.md
Last active December 14, 2017 14:58
D3 Multi values Chart
@cieloazul310
cieloazul310 / README.md
Last active April 20, 2018 20:18
国内主要サッカースタジアム周辺の人口

国内主要サッカースタジアム周辺の人口

国内主要サッカースタジアム周辺の人口を求めました。

ファイル

1. stadiums.geojson

GeoJSON形式のファイルです。 属性値に人口の数値を持ちます。

@cieloazul310
cieloazul310 / index.html
Created July 30, 2018 10:02
J2 2017 Revenue & Points
<html>
@cieloazul310
cieloazul310 / README.md
Last active July 25, 2019 14:05
Jクラブ個別経営情報開示資料 (2006-2017)

Jクラブ個別経営情報開示資料(2006〜2018)

Jリーグが2019年7月23日に公開したJクラブ個別経営情報開示資料をCSVファイルにしました。

表の決算数値の単位は百万円です。
例えば北海道コンサドーレ札幌の営業収益2676は、
2676 × 1000000 = 2,676,000,000円、すなわち26億7600万円を表しています。

データに関して

(defvar size 200)
(deftime time 1)
(defn transition [from to]
(/ (max 0 (- (min time to) from)) (- to from))
)
(defn transitionVec [p q from to]
(vec2/+ p (vec2/* (vec2/- q p) [(transition from to) (transition from to)]))
)
;; Example: Replicator
(deftime time 1)
(defn sin-transition [s]
(sin (* (/ time s) PI))
)
(defn path/replicator
[xform n path]
(->> (reduce #(conj % (mat2d/* (last %) xform))
[(mat2d/ident)]
;; Example: Replicator
(deftime time 0.5)
(defn sin-transition [t]
(sin (* (/ time t) PI))
)
(def timedeg (deg
(* 40 (sin-transition 1))
))
(def w 20)
(def items 2)
(def size (* w items))
(def r (/ w (sqrt 3)))
(defn hoge [x y i] (transform
(mat2d/*
(translate [
(if (even? (floor (/ i (+ items 1)))) x (+ x (/ w 2)))
y