Skip to content

Instantly share code, notes, and snippets.

# https://github.com/mpppk/messagen
# https://qiita.com/mpppk/items/76298ac7ff9f2d31a0bf
Definitions:
- Type: Root
Templates:
- "{{.Intro}}{{.Main}}{{.Outro}}"
- Type: Intro
Templates:
@mpppk
mpppk / kotsuhi.json
Created January 2, 2020 10:02
kotsuhi
[
{
"description": "test-description",
"id": "df9584e4-a230-4a56-9e2b-32c286d7c58d",
"title": "東京!!!!↔横浜!!!!",
"transportations": [
{
"arrival": "東京",
"departure": "横浜",
"destination": "どこかビル",
@mpppk
mpppk / clean_architecture.md
Last active April 24, 2024 03:05
クリーンアーキテクチャ完全に理解した

2020/5/31追記: 自分用のメモに書いていたつもりだったのですが、たくさんのスターを頂けてとても嬉しいです。
と同時に、書きかけで中途半端な状態のドキュメントをご覧いただくことになっており、大変心苦しく思っています。

このドキュメントを完成させるために、今後以下のような更新を予定しています。

  • TODO部分を埋める
  • 書籍を基にした理論・原則パートと、実装例パートを分割
    • 現在は4層のレイヤそれぞれごとに原則の確認→実装時の課題リスト→実装例という構成ですが、同じリポジトリへの言及箇所がバラバラになってしまう問題がありました。更新後は、実装時の課題リストを全て洗い出した後にまとめて実装を確認する構成とする予定です。

2021/1/22追記:

@mpppk
mpppk / pokemon.ipynb
Last active June 30, 2019 05:22
pokemon.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mpppk
mpppk / scratch_1.go
Created February 8, 2019 06:13
getFuncDeclResultTypes
package main
import (
"fmt"
"go/ast"
"go/parser"
)
import "golang.org/x/tools/go/loader"
func main() {
@mpppk
mpppk / scratch_1.go
Created February 7, 2019 12:51
find return types of specified name method
package main
import (
"fmt"
"go/ast"
"go/parser"
)
import "golang.org/x/tools/go/loader"
func main() {
exports.handler = (a) => {
return a + a;
};
@mpppk
mpppk / add_header.go
Last active April 11, 2017 15:59
go concat
package main
import (
"io/ioutil"
"fmt"
)
func main(){
addHeader("a,b,c", "test.csv")
}
@mpppk
mpppk / wav2mp3.js
Last active March 18, 2017 04:57
wav2mp3
// execute 'brew install lame' before use this script
const fs = require('fs'),
path = require('path'),
execSync = require('child_process').execSync,
srcDir = process.argv[2] || '.',
dstDir = process.argv[3] || 'mp3';
try{ fs.mkdirSync(dstDir); }catch(e){}
fs.readdir(srcDir, (err, files) => {
Option Explicit
'searchRangeの中からsearchWordを値として持つセルを返す
Public Function getTargetCell(searchWord As String, searchRange As Variant) As Range
Dim targetCell As Range
If searchWord <> "" Then
'対応する作業の行を取得
Set targetCell = searchRange.Find(What:=searchWord)
If Not targetCell Is Nothing Then
Set getTargetCell = targetCell