Skip to content

Instantly share code, notes, and snippets.

ushiboy ushiboy

Block or report user

Report or block ushiboy

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
View elm-guide-memo.md

Elmガイドの歩き方

現時点で日本語訳なドキュメントが見当たらないので、公式を気合いで読む。 このメモは各章の要点だけ適当にメモったもの。

An Introduction to Elm

ElmはJavaScriptにコンパイルされる関数型言語。 WebサイトやWebアプリケーションを作るためのツール(Reactみたいな感じ)。 シンプルさ、使いやすさ、品質の高さを重視している。

@ushiboy
ushiboy / index.js
Created Oct 6, 2018
Redux No combineReducer and reduce-reducer
View index.js
/* @flow */
import '@babel/polyfill';
import { createStore, applyMiddleware } from 'redux';
import ReduxThunk from 'redux-thunk';
type AppState = {
counter: CounterState,
message: MessageState,
child: ChildState
}
@ushiboy
ushiboy / record.js
Created Sep 8, 2018
recordもどき
View record.js
function toRecord(origin) {
function check(lock, prop) {
if (!lock) {
throw new Error('Changes outside $mutate');
} else if (prop === '$mutate') {
throw new Error('$mutate can never be changed');
}
}
@ushiboy
ushiboy / .babelrc
Last active Dec 16, 2017
Selenium WebdriverでE2Eテストする実験
View .babelrc
{
"presets": [
"env"
],
"plugins": [
"transform-async-to-generator"
],
"env": {
"development": {
"presets": [
@ushiboy
ushiboy / .babelrc
Last active Oct 14, 2017
observable-store sample
View .babelrc
{
"presets": [
"env",
"react"
],
"plugins": [
"transform-flow-strip-types"
]
}
@ushiboy
ushiboy / .babelrc
Created Dec 31, 2016
2016 development tool
View .babelrc
{
"presets": [
"es2015",
"react"
],
"env": {
"development": {
"presets": [
"power-assert"
]
@ushiboy
ushiboy / .babelrc
Created Aug 21, 2016
React UnitTest Practice
View .babelrc
{
"presets": [
"es2015",
"react"
],
"env": {
"development": {
"presets": [
"power-assert"
]
View .gitignore
bundle.js
### https://raw.github.com/github/gitignore/c751b70cc6ec57de20f918dbf05448333ffa2191/Node.gitignore
# Logs
logs
*.log
npm-debug.log*
# Runtime data
@ushiboy
ushiboy / app.js
Last active Jul 5, 2016
Redux Progress Case
View app.js
import React from 'react';
import { render } from 'react-dom';
import { createStore, bindActionCreators, applyMiddleware } from 'redux';
import { Provider, connect } from 'react-redux';
import thunk from 'redux-thunk';
const START = Symbol();
const UPDATE_PROGRESS = Symbol();
const COMPLETE = Symbol();
@ushiboy
ushiboy / index.php
Created Feb 26, 2016
Closure::bindTo warning
View index.php
<?php
class Hoge
{
static function foo()
{
return function() {
echo "test";
};
}
You can’t perform that action at this time.