pyproject.schema.json was copied from https://gist.github.com/zevisert/086638d2145d937a33bf570ace8cba4a
View ShapeSortExample.java
This file contains 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
package com.example.hssf; | |
import org.apache.poi.hssf.usermodel.HSSFClientAnchor; | |
import org.apache.poi.hssf.usermodel.HSSFSheet; | |
import org.apache.poi.hssf.usermodel.HSSFSimpleShape; | |
import org.apache.poi.hssf.usermodel.HSSFWorkbook; | |
import org.apache.poi.poifs.filesystem.POIFSFileSystem; | |
import org.junit.Test; | |
import java.io.File; |
View .golangci.yml
This file contains 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
linters-settings: # 設定のデフォルト値は、https://github.com/golangci/golangci-lint/blob/master/.golangci.example.yml で確認できる | |
depguard: # packagesに宣言されているモジュールの取り扱いに関するルール。ブラックリスト形式で使っているので、列挙したものを使うとエラーになる。 | |
list-type: blacklist | |
packages: | |
- golang.org/x/xerrors # go 1.13で必要な機能はすべてerrorsに取り込まれたので使わない | |
- github.com/rs/zerolog # ログ出力用のライブラリはプロジェクト内部に作ったファクトリ関数経由で使うため | |
packages-with-error-message: | |
- golang.org/x/xerrors: "エラー処理は標準のerrorsを使って下さい。スタックトレースが必要な場合のみpkg/errorsを使って下さい" | |
- github.com/rs/zerolog: "ログ出力は example.com/myproject/logger#Newから利用して下さい" | |
dupl: # コードのコピペを検出するルール。 閾値のトークン数を越えるものをエラーにする |
View .yarnrc
This file contains 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
--disable-self-update-check false | |
--child-concurrency 1 | |
--network-timeout 1000000 |
View DomainName_GetAtt.yml
This file contains 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
Resources: | |
MyCustomDomain: | |
Type: AWS::ApiGatewayV2::DomainName | |
Properties: | |
DomainName: api.example.com | |
DomainNameConfigurations: | |
- CertificateArn: arn:aws:acm:ap-northeast-1:759044339783:certificate/e17e4147-4f27-4ccb-ab1d-a1d6300f118a | |
EndpointType: REGIONAL | |
Outputs: | |
WayWay: |
View uBlacklist用ブラックリスト
This file contains 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
https://chrome.google.com/webstore/detail/ublacklist/pncfbmialoiaghdehhbnbhkkgmjanfhe | |
*://qiita.com/* | |
*://matome.naver.jp/* | |
*://kyoko-np.net/* | |
*://blog.livedoor.com/* | |
*://dev.classmethod.jp/* |
View hello.test.ts
This file contains 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 assert = require('assert'); | |
it("hello", () => { | |
assert.equal({geeting:"WayWayWa", Fu:{Ho:1}}, | |
{ greeting: "Hello", Fu:{Fe:1}}); | |
}); | |
View bash-on-windows-init.sh
This file contains 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
#!/bin/bash | |
# run sudo apt update or similar and feed the password for the rest to run smooth | |
# this is for the old bash based on ubuntu 14.04 | |
sudo apt update && sudo apt dist-upgrade -y | |
# Instlall NodeJS, Yarn and npm related dependencies | |
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - | |
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list |
View git-blame-pr.js
This file contains 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
const { spawn, spawnSync } = require('child_process'); | |
const readline = require('readline'); | |
const blame = spawn('git', ['blame', '--first-parent', process.argv[2]]); | |
const lines = readline.createInterface({ input: blame.stdout }); | |
const lookup = hash => { | |
const ret = spawnSync('git', ['show', '--oneline', hash]); | |
const msg = /Merge\s+(?:pull\s+request|pr)\s+\#?(\d+)\s/i; | |
const matcher = msg.exec(ret.stdout.toString()); |
NewerOlder