Skip to content

Instantly share code, notes, and snippets.

View .zshrc
# zshlocal
if [ -e ~/.zshlocal ]; then
source ~/.zshlocal
fi
# fzf
export FZF_DEFAULT_OPTS="--height 40% --reverse --multi --border --bind='ctrl-t:toggle-preview'"
# vcs_infoロード
autoload -Uz vcs_info
# PROMPT変数内で変数参照する
View Dockerfile
FROM ubuntu:latest
RUN apt-get update -y -q && apt-get upgrade -y -q && apt-get -y install sudo
RUN DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y -q curl build-essential ca-certificates git
RUN curl -s https://storage.googleapis.com/golang/go1.9.linux-amd64.tar.gz| tar -v -C /usr/local -xz
ENV PATH $PATH:/usr/local/go/bin
ENV GOOS linux
ENV GOARCH amd64
WORKDIR /go
@gtongy
gtongy / .env
Last active May 12, 2019 07:17
RxSwift S3 Upload Sample
View .env
AWS_IDENTITY_POOL_ID="xxxxxxx"
View ProjectForm.js
import React from 'react';
import InputProjectName from './InputProjectName.js';
import RadioColors from './RadioColors.js';
export class ProjectForm extends React.Component {
constructor(props) {
super(props);
this.state = {
projectName: "",
selectedUsersOption: [],
@gtongy
gtongy / main.go
Last active October 20, 2017 02:07
bool配列を用いた素数判定プログラム
View main.go
/*
素数判定プログラム
アルゴリズムとしてエラストテネスの篩を使い、
素数かどうか判定するのにbool配列を使用する
*/
package main
import (
"fmt"
"math"