Skip to content

Instantly share code, notes, and snippets.

View sh1ma's full-sized avatar
😼
AnonChan

Kota Amasaka sh1ma

😼
AnonChan
View GitHub Profile
@JunichiIto
JunichiIto / vending-machine-suica-problem.md
Last active September 6, 2021 16:49
Suica版自動販売機問題の問題文です。

Suica版自動販売機問題

下記の課題を改変したプログラミング問題です。

TDD Boot Camp(TDDBC) - TDDBC大阪3.0/課題

ステップ0 Suicaのチャージ

  • Suicaには100円以上の任意の金額をチャージできる
  • Suicaは現在のチャージ残高を取得できる。
  • 注意:実際のSuicaはチャージ可能な金額の単位が決まっているが、仕様が複雑になるので、ここでは任意の金額をチャージできることにする
@mpppk
mpppk / clean_architecture.md
Last active May 14, 2024 07:12
クリーンアーキテクチャ完全に理解した

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

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

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

2021/1/22追記:

@jakeajames
jakeajames / patchfinder64.c
Last active August 4, 2022 10:16
"kppless" sandbox profile patch for iOS 12
addr_t Find_platform_profile() {
uint64_t string = Find_strref("\"failed to initialize platform sandbox", 1, 0, false);
if (!string) {
string = Find_strref("\"failed to initialize platform sandbox", 1, 1, false);
if (!string) {
return 0;
}
}
string -= KernDumpBase;
@therefromhere
therefromhere / firestore_emulator.py
Last active January 17, 2022 19:45
OBSOLETE, see comment below ||| Connection to the Firestore emulator in python, since it wasn't at that time supported by the official SDK, see https://github.com/googleapis/google-cloud-python/issues/7500
import os
from unittest import mock
import grpc
from google.auth.credentials import Credentials
from google.cloud import firestore
from google.cloud.firestore_v1.gapic import firestore_client
from google.cloud.firestore_v1.gapic.transports import firestore_grpc_transport
@schirrmacher
schirrmacher / frida-struct-pointer-pointer.js
Last active February 3, 2024 12:32
Frida: How to read a struct or a struct pointer or a pointer of a struct pointer?
/*
typedef struct {
int size;
char* data;
} test_struct;
void some_func(test_struct **s);
@d-kuro
d-kuro / ghq.md
Last active January 24, 2021 07:02
ghq と fzf で Git リポジトリと go get したやつをいい感じに管理する

ghq と fzf で Git リポジトリと go get したやつをいい感じに管理する

ghq とは

https://github.com/motemen/ghq

いい感じに git のリポジトリ管理するやつ 基本は git clone と置き換える感じで使う

インストール

@yattom
yattom / vending_machine.md
Last active July 15, 2023 19:14
プログラミングのお題: 自動販売機 (設計進化重視バージョン)

自動販売機のプログラムをTDDで書いてみよう!

飲み物の自動販売機の動きを、プログラムで表現してください。

最終的な自動販売機の全機能は、不確定です。 テスト駆動開発のアプローチを有効活用して、 進化的に設計をどんどん変えていきましょう。

命名のヒント

@voluntas
voluntas / pyre.md
Last active July 30, 2020 11:36
pyre 使ってみた
@juampynr
juampynr / CHANGELOG.md
Created March 27, 2018 09:35
Sample CHANGELOG

Change Log

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

[Unreleased] - yyyy-mm-dd

Here we write upgrading notes for brands. It's a team effort to make them as