- リストでチェックボックスのついてるやつをReact + Fluxでつくる
- このときのjsレイヤのデータ構造をどうするか
- 単純にリストにするとアクションを適用するオブジェクトを選ぶのにfilterしないといけないのでは?
{
package main | |
import ( | |
"fmt" | |
"log" | |
"os" | |
"os/signal" | |
"syscall" | |
"time" |
w = () => window.innerWidth * 0.95 | |
h = () => window.innerHeight * 0.95 | |
r = Math.random | |
men = () => { | |
base = "https://media.handon.club/custom_emojis/images/000/" | |
if(r() > 0.01) { | |
return `${base}008/726/original/mendako_anime.png` | |
} else { | |
p = r() | |
if(p > 0.67) { |
[2017-12-13 14:46:05] Starting Stratum on stratum+tcp://jp.lapool.me:3014 | |
[2017-12-13 14:46:05] 4 miner threads started, using 'yescrypt' algorithm. | |
[2017-12-13 14:46:08] Stratum difficulty set to 0.5 (0.00001) | |
[2017-12-13 14:46:10] CPU #2: 0.42 kH/s | |
[2017-12-13 14:46:10] accepted: 1/1 (diff 0.000), 0.42 kH/s yes! | |
[2017-12-13 14:46:10] CPU #1: 0.42 kH/s | |
[2017-12-13 14:46:10] CPU #0: 0.42 kH/s | |
[2017-12-13 14:46:10] CPU #3: 0.42 kH/s | |
[2017-12-13 14:46:20] CPU #3: 0.42 kH/s | |
[2017-12-13 14:46:20] accepted: 2/2 (diff 0.000), 1.67 kH/s yes! |
import React, { PropTypes } from 'react'; | |
import { Task } from '../../models'; | |
export default class TaskItem extends React.PureComponent { | |
static propTypes = { | |
task: Task.PropTypes.isRequired, | |
} | |
static contextTypes = { | |
changeInputTarget: PropTypes.func, | |
checkTask: PropTypes.func, |
import { createAction, handleActions } from 'redux-actions'; | |
import { takeEvery } from 'redux-saga'; | |
import { call, put } from 'redux-saga/effects'; | |
import { TodoState } from '../models'; | |
const CREATE_TASK = 'CREATE_TASK'; | |
const UPDATE_TASK = 'UPDATE_TASK'; | |
const CHECK_TASK = 'CHECK_TASK'; | |
const SUBMIT_TASK = 'SUBMIT_TASK'; | |
const CHANGE_INPUT = 'CHANGE_INPUT'; |
import { PropTypes } from 'react'; | |
import { Record } from 'immutable'; | |
import { recordOf } from 'react-immutable-proptypes'; | |
const TaskRecord = new Record({ | |
id: undefined, | |
name: '', | |
deadline: undefined, | |
checked: false, | |
}); |
// | |
// OCRClient.swift | |
// ReceiptManager | |
// | |
// Created by non on 2016/10/10. | |
// Copyright © 2016年 non. All rights reserved. | |
// | |
import Foundation | |
import Alamofire |
# -*- coding: utf-8 -*- | |
import lxml.html | |
import requests | |
from pathlib import Path | |
''' | |
urlを叩いてxpathを適用したelement[]を返すよ | |
''' | |
def getElement(url, xpath): | |
res = requests.get(url) |