Skip to content

Instantly share code, notes, and snippets.

View xhiroga's full-sized avatar

Hiroaki Ogasawara xhiroga

View GitHub Profile
@Myndex
Myndex / WCAG2vsAPCA_someLightReading.md
Last active June 20, 2024 23:45
WCAG 2 vs APCA • A Contrast in Applied Maths

WCAG 2 vs APCA Contrast Shootout

A Response to Comments Regarding APCA vs WCAG2/1.4.3

We have on occasion heard the comment "APCA produces less contrast" — this is not true, though I see how some might come to that conclusion, it does not consider the totality of the new guidelines.

APCA does not produce contrast. APCA does nothing to the colors, it only predicts how a human will perceive them, and their effect on readability. And yes, if you try to compare APCA to the WCAG2 math it might appear that APCA allows lower contrast in some specific cases where one color is white or very bright, but across the entire range, APCA clearly, consistently, and correctly predicts contrast, while WCAG2 more often than not allows lower contrasts to pass that have even been shown to be unreadable, even with normal vision.

Here's an example a user brought to my attention recently:

@n0mimono
n0mimono / note.md
Last active June 15, 2022 20:38
相談的なやつのメモ

概要

「CTO採用したいんやがどんな人採用すればいいかわからん」と聞かれることあるので、自分のスタートアップのCTO感をここにふらっとまとめてみる。

CTO

そもそもCTOは

  • 経営チームのメンバーである
  • すなわち経営職である
@kauplan
kauplan / example.py
Last active June 27, 2021 01:06
ログインユーザ情報をユースケースクラスとビジネスロジッククラスで引き回す
#!/usr/bin/env python
# coding: utf-8
##
## ビジネスロジック
##
class BusinessLogic: # 「Service」や「Operation」でもよい
def __init__(self, login_user=None):
self.login_user = login_user
@reinvanoyen
reinvanoyen / terminal-prompt-git-branch-zsh.md
Last active July 20, 2024 21:03
Add Git Branch Name to Terminal Prompt (MacOS zsh)

Add Git Branch Name to Terminal Prompt (zsh)

Updated for MacOS with zsh

  • Catalina
  • Big Sur
  • Monterey
  • Ventura
  • Sonoma

screenshot

@prateekkathal
prateekkathal / data.ts
Created August 14, 2019 14:50
Seeding Databases Using NestJS
export const languages: ILanguage[] = [
{ name: 'English' },
{ name: 'French' },
{ name: 'Spanish' },
{ name: 'Russian' },
// ... and others ...
];
@vanbrands
vanbrands / FargateCF.md
Last active May 14, 2019 01:59
[AWS Ticket Cloudformation & ECS] #aws #ebanx

Cannot trigger a Fargate Task with a CloudWatch event using CloudFormation.

NetworkConfiguration and LaunchType are not supported.

Cloudformation Template:

ScheduleExample:
  Type: AWS::Events::Rule
  Properties:
 Description: Run every 1 hour.
@carceneaux
carceneaux / cf-veeam-parameter-retrieval.yaml
Created March 21, 2019 15:07
CloudFormation Template - API Gateway acting as Lambda Proxy with Custom Authorizer and CORS enabled.
---
AWSTemplateFormatVersion: '2010-09-09'
Description: AWS CloudFormation deployment for Veeam Parameter Retrieval solution.
Resources:
# API Gateway Configuration
ApiGateway:
Type: AWS::ApiGateway::RestApi
Properties:
Name: !Sub ${AWS::StackName}-API
@wreulicke
wreulicke / README.md
Last active October 8, 2023 13:28
Optimal Loggingの和訳

Optimal Logging

あなたのシステムで、失敗の根本的な原因を探すのにどのくらい時間がかかりますか?5分?5日? もし、5分近くで答えられたなら、あなたのプロダクションシステムやテストは素晴らしいロギングを持っていることでしょう。 多くの場合、ロギングや例外ハンドリングや(あえて言いますが)テストなどの一見、本質的ではない機能は実装の後に行われます。 例外ハンドリングやテストと同様に、あなたのシステムやテストの両方にロギングの戦略が本当に必要です。 ロギングの力を過小評価しないでください。最適なロギングは、デバッガの必要性を排除することさえできます。

最新のステータス: 追記: 2019/7/10

転職しました。長らくのご愛顧誠にありがとうございました。


転職先をちょくちょく探しています。

興味ある方は twitter @mizchi へのリプライorDM、または mizchi2w@gmail.com まで。

@shortjared
shortjared / list.txt
Last active July 19, 2024 21:20
List of AWS Service Principals
a4b.amazonaws.com
access-analyzer.amazonaws.com
account.amazonaws.com
acm-pca.amazonaws.com
acm.amazonaws.com
airflow-env.amazonaws.com
airflow.amazonaws.com
alexa-appkit.amazon.com
alexa-connectedhome.amazon.com
amazonmq.amazonaws.com