Skip to content

Instantly share code, notes, and snippets.

T Suzuki tsuz

Block or report user

Report or block tsuz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tsuz
tsuz / Dockerfile
Created Aug 22, 2019
Example of adding local timezone into Docker (example for Asia/Tokyo)
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;
}
You can’t perform that action at this time.