Skip to content

Instantly share code, notes, and snippets.

View 01en's full-sized avatar
🚀
Enter by the narrow gate

01en [archived] 01en

🚀
Enter by the narrow gate
View GitHub Profile
@01en
01en / cloudSettings
Last active April 29, 2021 23:35
VSCode Settings
{"lastUpload":"2021-04-29T23:35:06.773Z","extensionVersion":"v3.4.3"}
@01en
01en / post-checkout
Created May 9, 2020 06:45
git hook: checkout時に空コミット
#!/bin/bash
before=$1;
after=$2;
switch=$3;
if [ $before = $after -a $switch = 1 ] ; then
echo "create empty commit!";
git commit --allow-empty -m 'empty commit';
fi
@01en
01en / index.html
Created January 19, 2020 05:35
mapbox-国土地理院の地図(色別標高図)を表示
<div id="map"></div>
@01en
01en / display-a-map.markdown
Last active January 19, 2020 05:16
Display a map
@01en
01en / vscode-shortcut-keybindings.json
Created November 4, 2019 11:36
VSCodeのキーバインド設定
// 既定値を上書きするには、このファイル内にキー バインドを挿入します
[
{
"_comment": "Markdownのプレビュー表示",
"key": "shift+cmd+m",
"command": "markdown.showPreview",
"when": "editorLangId == 'markdown'"
},
{
"key": "cmd+o",
@01en
01en / cvim-my-setting.txt
Created August 10, 2019 08:00
Setting of cvim for Chrome Extensios
"""""""""""""""""""""""""""""""""""""""
""""" Basic Settings
"""""""""""""""""""""""""""""""""""""""
set noautofocus
set cncpcompletion
let scrollstep = 250
let locale = "jp"
let barposition = "bottom"
map gR reverseImage
map : ;

定理1:Small is beautiful

  • 大きな何かよりも小さい何かの方が,人間にはわかりやすいし,理解しやすい
  • 当然,保守も容易で結果的に費用対効果が大きくなる
  • システムリソースを小さく
  • 他のツールと簡単に結合・再利用できる

定理2:1つのプログラムには1つのことをうまくやらせる

  • やるべきことの本質を理解できているはず.このプログラムが書けないならば,それは理解できていないということ
  • 小さくするには,目的を絞る必要がある
  • 1つのプログラムで1つの問題を解決
@01en
01en / Moves-get-accessToken.php
Created February 17, 2019 12:59
Movesで利用するアクセストークンを取得。
<?php
// 設定項目
$client_id = '<client_id>' ; // クライアントID
$uuuent_secret = '<client_secret>' ; // クライアントシークレット
$redirect_uri = ( !isset($_SERVER['HTTPS']) || empty($_SERVER['HTTPS']) ? 'http://' : 'https://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] ; // このプログラムを設置するURL
$scope = 'activity location' ; // アプリの権限
// セッションスタート
@01en
01en / how-to-use-nature-remo-api.md
Last active November 18, 2018 05:06
Nature Remo APIの使い方メモ

Nature Remo APIの使い方

環境設定

使い方

curl -H "accept: application/json" -H "Authorization: Bearer [取得したAccessToken]" -X GET "https://api.nature.global/[API Path]"
  • jqコマンドで見るといい