Skip to content

Instantly share code, notes, and snippets.

View kentaro-m's full-sized avatar
🦄
Happy coding everyday.

Kentaro Matsushita kentaro-m

🦄
Happy coding everyday.
View GitHub Profile

React Native Sample

React NativeでiOSサンプルアプリケーションを起動するまでを試す。

始め方

$ brew update
$ brew watchman

Facebook開発のファイル監視サービス「Watchhman」をインストールする。

@kentaro-m
kentaro-m / 0_reuse_code.js
Created March 20, 2017 10:09
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@kentaro-m
kentaro-m / exercise-errors.go
Last active May 1, 2017 04:40
a-tour-of-go
package main
import (
"fmt"
)
type ErrNegativeSqrt float64
func (e ErrNegativeSqrt) Error() string {
return fmt.Sprint("cannot Sqrt negative number: %v", float64(e))
<?
/////////////////////
// slack2html
// by @levelsio
/////////////////////
//
/////////////////////
// WHAT DOES THIS DO?
/////////////////////
//
#!/bin/bash
commit_message=`git log --format=%B -n 1 ${CIRCLE_SHA1}`
if [[ $commit_message != "Merge"* ]] ; then
echo 'deploy skip [excluded build]';
exit 0;
fi
pr_title=`curl -H "User-Agent: ${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}" \
@kentaro-m
kentaro-m / atomTestRunner.js
Created July 8, 2017 14:53
Test runner for Atom package test using mocha
import { allowUnsafeEval, allowUnsafeNewFunction } from 'loophole';
const { createRunner } = allowUnsafeEval(() => {
return allowUnsafeNewFunction(() => {
return require('atom-mocha-test-runner');
});
});
const chai = allowUnsafeEval(() => {
return allowUnsafeNewFunction(() => {

github-commenter

Comment on the pull request with the value received from stdin on Circle CI.

Install

$ npm install -g github-commenter

Usage

version: 2
defaults: &defaults
working_directory: ~/workspace
docker:
- image: circleci/node:6.12.0
environment:
CIRCLE_BUILD_IMAGE: ubuntu
ATOM_CHANNEL: stable
DISPLAY: :99

2 books / month 532 pages / month 18 pages / day

import React, {useCallback, useEffect, useState} from 'react';
import styled from '@emotion/styled/macro';
import * as yup from 'yup';
import { FontSize } from '../constants/base';
import MessageBox from './MessageBox';
import { authenticate } from '../service/user';
const Form = styled.form`
font-family: Noto Sans JP;
width: 25%;