Skip to content

Instantly share code, notes, and snippets.

@tsuz
tsuz / Dockerfile
Last active Feb 14, 2021
Example of adding local timezone into Docker (example for Asia/Tokyo) - Dockerに日本時間を導入する方法
View Dockerfile
############################
# 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 Aug 22, 2019
Multi-stage Dockerfile for building gatsbyjs app
View Dockerfile
# 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 Mar 18, 2017
JavaScript Curry - curry from Haskel in JS
View curry.js
function curry(/*arguments*/) {
function getArgs(args) {
return [].slice.call(args);
}
function method() {
return arguments;
}
@tsuz
tsuz / EventSystem.js
Last active Oct 18, 2018 — forked from yitsushi/EventSystem.js
EventSystem that I use with React.js to communicate between components
View EventSystem.js
"use strict"
class EventSystem{
constructor() {
this.queue = {};
this.maxNamespaceSize = 50;
}