diff --git a/_data/stats.yml b/_data/stats.yml new file mode 100644 index 0000000..0a77479 --- /dev/null +++ b/_data/stats.yml @@ -0,0 +1,2 @@ +--- +active_dojos: 180 diff --git a/index.html b/index.html index 3be9163..0a79ad0 100644 --- a/index.html +++ b/index.html @@ -199,7 +199,7 @@

DecaDojo とは?

CoderDojo とは?

-

CoderDojo は7〜17歳を対象とした非営利のプログラミング道場です。2011年にアイルランドで始まり、世界では100カ国・2,000の道場、日本には180以上の道場があります。

+

CoderDojo は7〜17歳を対象とした非営利のプログラミング道場です。2011年にアイルランドで始まり、世界では100カ国・2,000の道場、日本には{{ site.data.stats['active_dojos'] }}以上の道場があります。

diff --git a/update_profile.rb b/update_profile.rb new file mode 100755 index 0000000..7d9d032 --- /dev/null +++ b/update_profile.rb @@ -0,0 +1,13 @@ +#!/usr/bin/env ruby + +require 'net/http' +require 'json' +require 'yaml' + +BASE_URL = 'https://coderdojo.jp' +DOJO_STATS = JSON.parse Net::HTTP.get(URI.parse "#{BASE_URL}/stats.json"), symbolize_names: true +STATS_PATH = '_data/stats.yml' + +stats = YAML.load_file(STATS_PATH) +stats['active_dojos'] = DOJO_STATS[:active_dojos] +YAML.dump stats, File.open(STATS_PATH, 'w') pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy