Skip to content

Instantly share code, notes, and snippets.

View frodo821's full-sized avatar
:octocat:
Working from home

frodo821

:octocat:
Working from home
View GitHub Profile
[style]
based_on_style = "google"
column_limit = 120
indent_width = 2
continuation_indent_width = 2
split_before_closing_bracket = true
split_before_first_argument = true
dedent_closing_brackets = true
coalesce_brackets = true
@frodo821
frodo821 / unittest.h
Last active September 7, 2024 17:20
Cヘッダファイル1つのみの簡易的なユニットテストライブラリ
#ifndef UTILS_UNITTEST_H_
#define UTILS_UNITTEST_H_
#include <stdio.h>
#if defined(linux) || defined(__linux__)
#include <linux/unistd.h>
#elif defined(unix) || defined(__unix__) || defined(__APPLE__)
#include <unistd.h>
#else
#error "Unsupported platform. This header can only be used on linux-like OS."
#endif
@frodo821
frodo821 / propositions.py
Last active April 15, 2021 12:41
真理計算ができるだけのスクリプト
from abc import ABC, abstractmethod
class Proposition(ABC):
def __and__(self, other):
return CompositeProposition('and', self, other)
def __or__(self, other):
return CompositeProposition('or', self, other)
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active July 26, 2025 19:20
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example