Skip to content

Instantly share code, notes, and snippets.

@ushiboy
ushiboy / README.md
Created June 20, 2020 01:19
picmd example

picmd example

Host (Raspberry PI) Side

Install

Deploy app.py and requirements.txt to Raspbian.

Login to Raspbian and set up the Python environment (You need python3-venv to use venv).

@ushiboy
ushiboy / elm-guide-memo.md
Created November 23, 2018 01:36
勉強会用

Elmガイドの歩き方

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

An Introduction to Elm

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

@ushiboy
ushiboy / index.js
Created October 6, 2018 13:13
Redux No combineReducer and reduce-reducer
/* @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 September 8, 2018 02:47
recordもどき
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 September 2, 2022 06:36
Selenium WebdriverでE2Eテストする実験
{
"presets": [
"env"
],
"plugins": [
"transform-async-to-generator"
],
"env": {
"development": {
"presets": [
@ushiboy
ushiboy / .babelrc
Last active October 14, 2017 13:27
observable-store sample
{
"presets": [
"env",
"react"
],
"plugins": [
"transform-flow-strip-types"
]
}
@ushiboy
ushiboy / .babelrc
Created December 31, 2016 11:19
2016 development tool
{
"presets": [
"es2015",
"react"
],
"env": {
"development": {
"presets": [
"power-assert"
]
@ushiboy
ushiboy / .babelrc
Created August 21, 2016 13:52
React UnitTest Practice
{
"presets": [
"es2015",
"react"
],
"env": {
"development": {
"presets": [
"power-assert"
]
@ushiboy
ushiboy / .gitignore
Last active August 2, 2016 14:13
SVG Text
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 July 5, 2016 03:36
Redux Progress Case
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();