Skip to content

Instantly share code, notes, and snippets.

View pchw's full-sized avatar

Hiroshi HORIKI pchw

View GitHub Profile

issues を使って仕事をする

issues について

issue の作成

issue をコードから開く

コードスニペットへのリンクを作成する

タスクリストについて

クエリパラメータでプルリクエストとissuesの自動化を行う

プルリクエストとissuesにファイルを貼り付ける

他のユーザをプルリクエストやissuesに紐付ける

自分のissuesやプルリクエストを表示する

@pchw
pchw / bookmarklet.js
Created June 5, 2018 01:59
bookmarklet for append branch name into fixed bar on GitHub PR files tab
javascript:(function(){document.getElementsByClassName('diffbar')[0].appendChild(document.getElementsByClassName('head-ref')[0]);})();
@pchw
pchw / nta-go-redirect-bookmarklet.js
Created April 4, 2018 00:09
nta.go.jpのURLをnta-go.comで変換して遷移するようにするブックマークレット
javascript: (function() {document.querySelectorAll('a').forEach(function(e) {if (e.href) {var h = e.href;if (/https?:\/\/www\.nta\.go\.jp/.test(h)) {e.href = h.replace(/^http/, 'https://api.nta-go.com/redirect?url=http');e.text = '[★]' + e.text;}}});})();
@pchw
pchw / main.js
Created June 6, 2017 16:11
KeyboardAvoidingViewSample
import Expo, { Constants } from 'expo';
import React from 'react';
import {
StyleSheet,
Text,
View,
KeyboardAvoidingView,
TextInput,
TouchableOpacity,
ScrollView
@pchw
pchw / converter.coffee
Created October 24, 2016 01:54
reversible state converter
module.exports =
converter: (targetObjs, beforeObj, afterObj, isCheckBefore, isReverse, callback)->
if isReverse
if isCheckBefore
conditions = _.merge {}, afterObj
updates = _.merge {}, beforeObj
else
if isCheckBefore
conditions = _.merge {}, beforeObj
updates = _.merge {}, afterObj
$ ./node_modules/mocha/bin/mocha -r coffee-script -R spec ./sampletest.coffee
describeA
◦ testA1: beforeEach - A
testA1
✓ testA1
◦ testA2: beforeEach - A
testA2
✓ testA2
@pchw
pchw / .gitignore
Last active August 29, 2015 14:17 — forked from uzimith/gulpfile.js
node_modules
.DS_Store
template.js
bundle.js.map
bundle.js
index.html
lib
@pchw
pchw / defensives.md
Created March 21, 2015 07:51
defensive items
item Max Health Shield Armor Effect
Reflex Block 200 - - 200までのダメージを1.2秒間防ぐ
Crucible 700 - - 200までのダメージを1.2秒間防ぐ(近くのチームメイトも)
Aegis 200 110 25 200までのダメージを1.5秒間防ぐ
Atlas Pauldron - 25 70 4m以内の敵の攻撃速度を5秒間65%低下
Metal Jacket - 35 155 -
Fountain of Renewal 200 60 30 自分と近くの味方を3秒間減ったパーセンテージにつき2回復
@pchw
pchw / hoge.coffee
Created March 3, 2015 14:30
serialize stream
through2 = require 'through2'
stream = require 'stream'
ReadableStream = stream.Readable
WritableStream = stream.Writable
cb = ->
filter = through2.obj (chunk, enc, callback)->
console.log 'locked'
chunk.sales = "$#{chunk.sales}"
@push chunk
@pchw
pchw / foo.coffee
Created February 16, 2015 06:17
for-of vs _.map
_ = require('underscore')
class Bar
constructor: ->
@bar = "Bar!"
baz: 'Bar!'
class Foo extends Bar
constructor: ->
@foo = "Foo!"