This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as PropTypes from 'prop-types'; | |
| import * as React from 'react'; | |
| import { connect, Dispatch } from 'react-redux' | |
| import { ActionCreator } from 'typescript-fsa'; | |
| import { openExternal } from './reducer' | |
| interface ExternalLinkPropTypes { | |
| href: string, | |
| target?: string, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { IpcMessageEvent, ipcRenderer } from 'electron' | |
| import { Channel, eventChannel, SagaIterator } from 'redux-saga'; | |
| import { apply, call, fork, put, take } from 'redux-saga/effects'; | |
| import { ActionCreator } from 'typescript-fsa' | |
| function createIpcChannel(action: ActionCreator<any>): Channel<{}> { | |
| return eventChannel(emit => { | |
| ipcRenderer.on(action.type, (_event: IpcMessageEvent, payload: any) => { | |
| emit(payload); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM ruby:2.5-alpine | |
| WORKDIR /app | |
| COPY . /app | |
| RUN bundle install | |
| ENV APP_ENV production | |
| EXPOSE 8080 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| web: bin/hubot -a slack |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| require "yaml" | |
| require "open-uri" | |
| d = Date.today; h = YAML.load_file(open("https://raw.githubusercontent.com/holiday-jp/holiday_jp/master/holidays.yml")).keys | |
| exit (1..5).include?(d.wday) && !h.include?(d) ? 0 : 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| repos = %w( | |
| dotfiles | |
| ) | |
| authors = %w( | |
| kechol | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # anyframe-source-git-ls-tree | |
| git ls-tree -r --name-only HEAD | |
| # Local Variables: | |
| # mode: Shell-Script | |
| # End: | |
| # vim: ft=zsh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| require 'json' | |
| cson = [] | |
| del = '/' | |
| begin | |
| ghqlist = `ghq list --full-path` | |
| ghqroot = File.expand_path(`git config --get ghq.root` || '~/.ghq').strip | |
| rescue => e |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function __ssh_peco_ctrl_s -d 'Select hosts from ssh config' | |
| grep 'Host ' ~/.ssh/config | awk '{print $2}' | peco | read host | |
| [ -n "$host" ]; and ssh $host | |
| commandline -f repaint | |
| end | |
| function __git_branch_peco_ctrl_b -d 'Select branch and checkout' | |
| git branch | awk '{print $2}' | peco | read branch | |
| [ -n "$branch" ]; and git checkout $branch | |
| commandline -f repaint |