Skip to content

Instantly share code, notes, and snippets.

View oshikryu's full-sized avatar

Ryuta Oshikiri oshikryu

  • San Francisco, CA
View GitHub Profile
@oshikryu
oshikryu / eslint.json
Created November 8, 2018 21:01
Sample eslint.json
{
"rules": {
"indent": [
2,
2
],
"quotes": [
2,
"single"
@oshikryu
oshikryu / actions.js
Last active December 6, 2019 20:47
polling-endpoint-saga
import * as types from './types';
export const watchPollEndpoint = () => {
return {
types: types.WATCH_POLL_ENDPOINT,
}
}
export const stopPolling = () => {
return {
@oshikryu
oshikryu / poll.js
Last active December 6, 2019 21:26
poll-interval
import React from 'react';
export class MyComponent extends React.Component {
constructor(props) {
super(props);
this.state = {
items: [],
}
componentDidMount() {
@oshikryu
oshikryu / poll-action.js
Last active December 6, 2019 19:30
Updated component-redux
import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { actions as pollActions} from './actions';
export class MyComponent extends React.Component {
componentDidMount() {
const { actions } = this.props;
actions.watchPollEndpoint();
@oshikryu
oshikryu / Keybase.md
Created September 12, 2021 14:43
Keybase

Keybase proof

I hereby claim:

  • I am oshikryu on github.
  • I am oshikryu (https://keybase.io/oshikryu) on keybase.
  • I have a public key ASB_h8uI0zXzQCcwGXbzNnP5ZFckFXCZrAFjryxJ_EpPUgo

To claim this, I am signing this object: