Skip to content

Instantly share code, notes, and snippets.

View tsuz's full-sized avatar

T Suzuki tsuz

  • Tokyo, Japan
  • 14:33 (UTC +09:00)
View GitHub Profile
@tsuz
tsuz / index.html
Created November 9, 2021 11:27
Maxzoom 16 vs 19 - line layer https://jsfiddle.net/9wqoksav/2/
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Swipe between maps</title>
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no">
<link href="https://api.mapbox.com/mapbox-gl-js/v2.4.1/mapbox-gl.css" rel="stylesheet">
<script src="https://api.mapbox.com/mapbox-gl-js/v2.4.1/mapbox-gl.js"></script>
<style>
body { margin: 0; padding: 0; }
@tsuz
tsuz / index.html
Last active November 9, 2021 11:24
Maxzoom = 16 vs 19 for POI https://jsfiddle.net/9wqoksav/
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Swipe between maps</title>
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no">
<link href="https://api.mapbox.com/mapbox-gl-js/v2.4.1/mapbox-gl.css" rel="stylesheet">
<script src="https://api.mapbox.com/mapbox-gl-js/v2.4.1/mapbox-gl.js"></script>
<style>
body { margin: 0; padding: 0; }
@tsuz
tsuz / README.md
Last active September 22, 2021 07:07
Test

Test

@tsuz
tsuz / README.md
Last active July 28, 2021 03:16
土砂災害警戒区域
@tsuz
tsuz / Dockerfile
Last active February 14, 2021 12:17
Example of adding local timezone into Docker (example for Asia/Tokyo) - Dockerに日本時間を導入する方法
############################
# STEP 1 build executable binary
############################
FROM golang:1.11-alpine as builder
ARG SSH_PRIVATE_KEY
RUN apk update \
&& apk add openssh \
&& apk add git mercurial \
@tsuz
tsuz / Dockerfile
Created August 22, 2019 16:54
Multi-stage Dockerfile for building gatsbyjs app
# stage: 1
FROM node:11-alpine AS build
ARG GATSBY_API_BASE_HOST
ENV GATSBY_API_BASE_HOST $GATSBY_API_BASE_HOST
ARG GATSBY_BASE_URL
ENV GATSBY_BASE_URL $GATSBY_BASE_URL
@tsuz
tsuz / curry.js
Last active March 18, 2017 09:24
JavaScript Curry - curry from Haskel in JS
function curry(/*arguments*/) {
function getArgs(args) {
return [].slice.call(args);
}
function method() {
return arguments;
}
@tsuz
tsuz / EventSystem.js
Last active October 18, 2018 16:49 — forked from yitsushi/EventSystem.js
EventSystem that I use with React.js to communicate between components
"use strict"
class EventSystem{
constructor() {
this.queue = {};
this.maxNamespaceSize = 50;
}