Skip to content

Instantly share code, notes, and snippets.

View champierre's full-sized avatar

Junya Ishihara champierre

View GitHub Profile
// ==UserScript==
// @name Auto Rubocop Suggestion
// @namespace https://champierre.com/
// @version 1.0
// @description Automatically fill the title and body of suggestions provided by reviewdog/action-rubocop
// @author champierre
// @match https://github.com/*
// @grant none
// ==/UserScript==
@champierre
champierre / all.geojson
Last active January 30, 2023 08:09
観光マップ用サンプルGeoJSONファイル
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@champierre
champierre / csv-to-json.js
Last active October 4, 2022 01:53
https://github.com/geolonia/japanese-addresses/pull/123 で csv ファイルから patches 用の json ファイルに変換するために使った。
#!/usr/bin/env node
const fs = require('fs')
const csvParse = require('csv-parse/lib/sync')
const csvFile = process.argv[2]
const reference = process.argv[3]
const buffer = fs.readFileSync(csvFile)
const formatDate = date => {
const year = date.getFullYear();
@champierre
champierre / kaleidoscope.pde
Created August 28, 2021 02:49
Scratchで楽しく学ぶアート&サイエンス 改訂第2版 p.98(初版ではp.118) 「万華鏡を描くProcessingプログラム」
int n = 64;
void setup(){
size(600, 600);
}
void draw() {
if (mousePressed == true) {
for (int i = 1; i <= n; i++) {
float[] rmouse = rotate(mouseX - 300, mouseY - 300, 360.0 / n * i);
@champierre
champierre / test.js
Last active July 14, 2018 16:23
Scratch 3.0 Extension Test
class Test {
constructor() {}
getInfo() { // 拡張機能の各種情報
return {
id: 'test',
name: 'Test', // 拡張機能の名前
blocks: [ // 各ブロックの定義
{
@champierre
champierre / gist:d091d8b81fdfdad33c7106eb0995bd37
Created April 2, 2018 14:04
地図バー x monument.to マッピングパーティ 気づいたこと
- 案内板は文字が消えてしまっていくけど、デジタルでとっておけばずっと保存できそう。
- OCR -> 翻訳 手間がかからない。
- どれが monumen.to として適切な案内板なのかわからないのがあった。
- 橋の由来とか好きなのであとから写真をアップロードしたい
- AR 的に表示したい 例. https://play.google.com/store/apps/details?id=com.nianticproject.scout&hl=ja
- 現在地がとれなかった
- 観光地で広めたい
- ガイドに紹介する。直接来ている人に宣伝する
- あとで場所が確認しづらい
- 直接スマホでできるようにしたい
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

プロフィール

石原淳也

みんなでつくる案内板データベースモニュメントや、スマートフォンでクイズラリーが楽しめるまちクエストなど 位置情報を活かしたサービスを開発・運営しています。他にも様々なWebサービスやiPhone・Androidアプリの開発を行うかたわら、子供たちにプログラミングを教える活動もおこなっています。東京大学工学部機械情報工学科卒。

» 写真

モニュメントの説明

@champierre
champierre / aikido.py
Created March 9, 2018 14:44
合気道の審査技イメージトレーニングアプリ(Pythonista 3用)
import speech
import time
import random
def finish_speaking():
# Block until speech synthesis has finished
while speech.is_speaking():
time.sleep(0.1)
wazas = [
import bpy
import sys
if __name__ == "__main__":
# Get object file path from 1st argument after "--".
# Get png file path from 2nd argument after "--".
argv = sys.argv
argv = argv[argv.index("--") + 1:] # get all args after "--"
obj_file = argv[0]