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 collections | |
| horiz_edges = [ | |
| [">", "<", ">", ">"], | |
| ["<", " ", "<", ">"], | |
| [">", ">", "<", " "], | |
| ["<", " ", ">", "<"], | |
| [" ", " ", ">", ">"], | |
| ] | |
| assert len(horiz_edges) == 5 |
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
| cmake_minimum_required(VERSION 3.12) | |
| # A reproduction of the example given in | |
| # https://cmake.org/cmake/help/latest/command/target_link_libraries.html#linking-object-libraries | |
| project(CMakeTest) | |
| # Object Libraries may be used as the <target> (first) argument of target_link_libraries to specify dependencies of their sources on other libraries. For example, the code | |
| add_library(A SHARED a.c) | |
| target_compile_definitions(A PUBLIC A) |
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 asyncio | |
| import sys | |
| import typing | |
| """ | |
| vite.config.ts has these lines: | |
| function djb2Hash(str: string): number { | |
| let hash = 5381 |
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 asyncio | |
| import json | |
| import pathlib | |
| import random | |
| import signal | |
| import typing | |
| """ | |
| vite.config.ts has these lines: |
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
| getReactRerenderReasonStack = (fiberNode) => { | |
| const NoFlags = 0; | |
| const PerformedWork = 1; | |
| const Placement = 2; | |
| const Update = 4; | |
| const ChildDeletion = 16; | |
| const ContentReset = 32; | |
| const Callback = 64; | |
| const DidCapture = 128; | |
| const ForceClientRender = 256; |
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 | |
| """ | |
| Find the oldest TODO comment that still exists in the codebase. | |
| This script traverses git history commit-by-commit, finds commits that add TODOs, | |
| and checks whether each TODO still exists in the current version of the code. | |
| """ | |
| import asyncio | |
| import re |
OlderNewer