Skip to content

Instantly share code, notes, and snippets.

View ynunokawa's full-sized avatar

Yusuke Nunokawa ynunokawa

View GitHub Profile
@ynunokawa
ynunokawa / index.html
Created February 4, 2017 06:56
bat program for resas2arcgis!
<!DOCTYPE html>
<html><!--origin change-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="initial-scale=1.0, width=device-width, maximum-scale=1.0, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="translucent-black">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>resas2arcgis</title>
@ynunokawa
ynunokawa / index.html
Last active February 3, 2017 06:16
you can run resas2arcgis with an array of citycodes in pref.
<!DOCTYPE html>
<html><!--origin change-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="initial-scale=1.0, width=device-width, maximum-scale=1.0, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="translucent-black">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>resas2arcgis</title>
for i in `seq 361 369`
do
cityCode=`expr 11000 + $i`
curl -X POST -w "%{http_code}\n" https://resas2arcgis.herokuapp.com/api/uploadarcgis --data-urlencode resasurl="https://opendata.resas-portal.go.jp/api/v1/municipality/company/perYear?cityCode=${cityCode}&simcCode=20&prefCode=11&sicCode=E" -d mappingfact="cityCode" -d resaskey="FWlx9CeiMI3lVMvPgRavi1U4EnTh1YmU73nzqc0W" --data-urlencode agollayer="https://services1.arcgis.com/RVzd6I1g6h9fqyZM/arcgis/rest/services/saitama/FeatureServer/0" -d hierarchy="result/data[2]/value" -d ufield="JCODE" -d nfield="num_company20"
done
@ynunokawa
ynunokawa / index.html
Last active November 25, 2016 06:09
最小コードの CSS でスクロール時のイライラを解消する for Leaflet.js
<html>
<head>
<meta charset=utf-8 />
<title>最小コードの CSS でスクロール時のイライラを解消する for Leaflet.js</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<!-- Load Leaflet from CDN-->
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.0.2/dist/leaflet.css" />
<script src="https://unpkg.com/leaflet@1.0.2/dist/leaflet.js"></script>
@ynunokawa
ynunokawa / index.html
Last active September 20, 2016 09:41
<html>
<head>
<meta charset=utf-8 />
<title>Map</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<!-- Load Leaflet from CDN-->
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.0.0-rc.3/dist/leaflet.css" />
<script src="https://unpkg.com/leaflet@1.0.0-rc.3/dist/leaflet-src.js"></script>
@ynunokawa
ynunokawa / index.html
Last active September 20, 2016 10:08
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"/>
<title>Shop List</title>
<link rel="shortcut icon" href="img/favicon.ico">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/css/bootstrap.min.css" />
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/bootstrap-social/4.10.1/bootstrap-social.min.css" />
<!--<link rel="stylesheet" href="assets/style.css" />-->
@ynunokawa
ynunokawa / index.html
Last active September 7, 2016 03:39
in-view.js
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>in-view.js</title>
<style>
img {
width: 50%;
filter: grayscale(100%);
-webkit-filter: grayscale(100%);
@ynunokawa
ynunokawa / index.html
Last active September 5, 2016 04:37
無料 wifi スポット
<html>
<head>
<meta charset=utf-8 />
<title>無料 wifi スポット</title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<!-- Load Leaflet from CDN-->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/leaflet/1.0.0-rc.3/leaflet.css" />
<script src="https://cdn.jsdelivr.net/leaflet/1.0.0-rc.3/leaflet-src.js"></script>

Leaflet

an open-source JavaScript library for mobile-friendly interactive maps

モバイル フレンドリーなインタラクティブ マップのためのオープンソース JavaScript ライブラリ

Leaflet is the leading open-source JavaScript library for mobile-friendly interactive maps. Weighing just about 33 KB of JS, it has all the mapping features most developers ever need.

Leaflet はモバイル フレンドリーなインタラクティブ マップのためのオープンソース JavaScript ライブラリです。たった 33 KB という軽量な JavaScript ファイルだけで、ほとんどの開発者が必要とするマッピング機能のすべてを担っています。

Leaflet is designed with simplicity, performance and usability in mind. It works efficiently across all major desktop and mobile platforms, can be extended with lots of plugins, has a beautiful, easy to use and well-documented API and a simple, readable source code that is a joy to contribute to.

Leaflet はシンプル、パフォーマンス、ユーザビリティを重視してデザインされています。すべての主要なデスクトップとモバイル プラットフォームで効率よく動作し、多くのプラグインによる拡張が可能です。また、美しさ、使いやすさ、そしてドキュメントが豊富な API とシンプルで可読性の高いソースコードを提供しています。開発者はソースコードへの貢献を楽しむことができます。

DevRel Meetup Tokyo

  • お客様になってもらうというよりファンを増やしたい
  • Googleはコミュニティを作るけど自分たちでやらない
    • 外から人を引っ張ってきてリーダーになってもらう
    • androidの悪口を言ってくれるのが素晴らしい
    • iPhoneと比較するのが素晴らしい
    • 開発者が聞きたいのはそこ
  • 金銭は絡まず真心を持ったおもてなしで返す
  • さくらインターネット -> 今使っている方より昔使っていた方の方が多い