Skip to content

Instantly share code, notes, and snippets.

View neet's full-sized avatar

Ryō Igarashi neet

View GitHub Profile
@ruizb
ruizb / advanced-example.md
Last active September 26, 2023 20:21
Reader monad example using fp-ts

The following section is not part of monet.js documentation, but I think it's worth showing how we can compose readers using fp-ts.

Reader composition

Let's say we have the following piece of code:

interface Dependencies {
  logger: { log: (message: string) => void }
 env: 'development' | 'production'
@mpppk
mpppk / clean_architecture.md
Last active April 30, 2024 14:19
クリーンアーキテクチャ完全に理解した

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

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

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

2021/1/22追記:

@shunirr
shunirr / criminal_jc.md
Last active February 26, 2024 05:51
女子中学生チケット詐欺事件

criminal_jc

@chun37
chun37 / yokohama_gomi.py
Last active August 17, 2017 03:37
横浜市資源循環局のイーオくんとお話できるよ
# -*- coding: utf-8 -*-
import requests
import json
import re
import sys
print u"このプログラムは横浜市資源循環局のイーオくんとお話できるプログラムだよ"
print u"終了したいときは[Ctrl+C]を押すか[/exit]と送ってね"
print u"---" * 20
print u"イーオだよ。こんにちは。"
print u"ゴミの名前を教えてくれたら、捨て方を案内するよ。粗大ごみの手数料を知りたい場合は、「自転車の手数料」のように話しかけてね。"
@chun37
chun37 / GetFF.py
Last active August 17, 2017 03:37
TwitterのFF内の人のIDをdbにまとめる
# -*- coding: utf-8 -*-
import tweepy
import sqlite3
import os
import time
if __name__ == "__main__":
auth = tweepy.OAuthHandler(CK, CS)
auth.set_access_token(AK, AS)
api = tweepy.API(auth)
path1 = os.path.isfile("followers.db")
@chun37
chun37 / week-of-month.py
Created July 17, 2017 17:55
年月日から何月の第何何曜日か、祝日であれば祝日名をプリント
# -*- coding: utf-8 -*-
import datetime
import sys
try:
g, y, m, d = sys.argv
except:
exit()
try:
t = datetime.date(int(y), int(m), int(d))
try:
@ZipFile
ZipFile / Pixiv App API.yaml
Last active April 28, 2023 01:31
Unofficial API specification extracted from Pixiv Android App
swagger: '2.0'
info:
title: "Pixiv App API"
description: "Unofficial API specification extracted from Pixiv Android App v5.0.17"
version: "1.0"
host: app-api.pixiv.net
schemes:
- https
@JamesMessinger
JamesMessinger / README.md
Last active March 9, 2024 17:58
VSCode GitHub Markdown Theme

GitHub Markdown Theme for Visual Studio Code

This CSS stylesheet allows you to preview markdown files in VSCode using GitHub's mardown theme. This CSS was taken directly from the official GitHub Markdown repo. I replaced their top-level .markdown-body class with the body tag so it would work in VSCode, and added styling for the html tag to match GitHub's fixed-width container.

Instructions

  1. Copy the CSS file to your computer
    Copy the github-markdown.css file below to your computer. You can put it anywhere you want, but I chose to put it in the same folder as my VSCode settings file.

  2. Edit your VSCode settings
    If you want to use this theme for all of your projects, then edit your User Settings file. If you just want to use this them

@skypenguins
skypenguins / minor_songs_of_idolmaster.md
Last active January 21, 2023 16:40
アイマスの非売品&入手困難・不可&マイナーな曲やCD一覧

【アイマスの非売品&入手困難・不可&マイナーな曲やCD一覧】

CD

765

  • 入手困難なCDとしてやたらと有名である。
@faithandbrave
faithandbrave / emscripten_cmake_build.md
Last active October 11, 2022 05:08
EmscriptenとCMakeでのビルド方法

EmscriptenとCMakeでのビルド方法

Emscriptenは、C++をJavaScriptにコンパイルする、LLVMベースのコンパイラ。

このドキュメントでは、特定のプロジェクトに依存せず、Emscripten向けに、CMakeを使用してC++プロジェクトをビルドする方法を紹介する。

バージョン

このドキュメントで扱う各ツールのバージョンは、以下のものとする: