This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: MIT | |
| // OpenZeppelin Contracts (last updated v5.5.0) (interfaces/draft-IERC6093.sol) | |
| pragma solidity >=0.8.4; | |
| /** | |
| * @dev Standard ERC-20 Errors | |
| * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 tokens. | |
| */ | |
| interface IERC20Errors { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: MIT | |
| // OpenZeppelin Contracts (last updated v5.5.0) (interfaces/draft-IERC6093.sol) | |
| pragma solidity >=0.8.4; | |
| /** | |
| * @dev Standard ERC-20 Errors | |
| * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 tokens. | |
| */ | |
| interface IERC20Errors { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: MIT | |
| // OpenZeppelin Contracts (last updated v5.5.0) (interfaces/draft-IERC6093.sol) | |
| pragma solidity >=0.8.4; | |
| /** | |
| * @dev Standard ERC-20 Errors | |
| * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC-20 tokens. | |
| */ | |
| interface IERC20Errors { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.nio.file.Files | |
| import java.nio.file.Path | |
| import java.nio.file.attribute.BasicFileAttributes | |
| import kotlin.system.exitProcess | |
| import kotlin.streams.toList | |
| fun main(vararg args: String) { | |
| val dir = try { | |
| Path.of(args[0]) | |
| } catch (_: Exception) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def main(): | |
| try: | |
| checker = CompareChangesLib( | |
| owner="your-github-owner", | |
| repo="your-repo", | |
| access_token="ghp_xxx", | |
| local_repo_path=".", | |
| branch_a="origin/main", | |
| branch_b="my-feature-branch" | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import subprocess | |
| import json | |
| import os | |
| import sys | |
| from typing import List, Set | |
| import unittest | |
| import requests | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # if BUILD_ID is unset, compute metadata that will be used in builds | |
| ifeq ($(strip $(BUILD_ID)),) | |
| VCS_REF := $(shell git rev-parse --short HEAD) | |
| BUILD_TIME_EPOCH := $(shell date +"%s") | |
| BUILD_TIME_RFC_3339 := \ | |
| $(shell date -u -r $(BUILD_TIME_EPOCH) '+%Y-%m-%dT%I:%M:%SZ') | |
| BUILD_TIME_UTC := \ | |
| $(shell date -u -r $(BUILD_TIME_EPOCH) +'%Y%m%d-%H%M%S') | |
| BUILD_ID := $(BUILD_TIME_UTC)-$(VCS_REF) | |
| endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import socket | |
| from struct import pack | |
| from time import sleep | |
| # |--------------- UDP HEADER --------------| | |
| # | SOURCE PORT | DESTINATION PORT | = 32 bits | |
| # |--------------------|--------------------| | |
| # | LENGTH | CHECKSUM | = 32 bits | |
| # |-----------------------------------------| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import socket | |
| from struct import pack | |
| from time import sleep | |
| # | |
| # |--------------------|--------------------| | |
| # | SOURCE PORT | DESTINATION PORT | | |
| # |--------------------|--------------------| | |
| # | SEQUENCE NUMBER | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import uuid | |
| from django.db import models | |
| from zero10.abstract_models import ModelWithCreatedAndUpdatedFields | |
| class MLModel(ModelWithCreatedAndUpdatedFields): | |
| id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) | |
| name = models.CharField( |
NewerOlder