例文を組み込んだAlfred Workflowを作りました: Alfred Git Commit Message Example
以下転載:
以下転載:
| class Car{ | |
| private Wheels wheel; | |
| private Battery battery; | |
| /*Somewhere in our codebase we instatiate the objects required by this class. | |
| There are two methods for implementing DI: | |
| 1. Constructor based | |
| 2. Setter based | |
| */ | |
A curated list of AWS resources to prepare for the AWS Certifications
A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.
| from typing import Tuple, NamedTuple, List, Optional, Dict | |
| class SpendResult(NamedTuple): | |
| is_successful: bool | |
| remaining_balance: int | |
| class Bank(object): |
| """ | |
| An implementation of TOTP as described in https://tools.ietf.org/html/rfc6238#section-4 aka Google Authenticator Style 2-factor Auth | |
| """ | |
| import base64 | |
| import datetime | |
| import hashlib | |
| import hmac | |
| import sys | |
| import struct | |
| import time |
| #!/usr/bin/env python | |
| import zipfile | |
| import string | |
| from lxml import etree | |
| def read_docx(filepath): | |
| # todo: Add test to make sure it's a docx | |
| zfile = zipfile.ZipFile(filepath) | |
| # return the xml |