This repository contains the configuration files as described in VS Code Tips for FORM Developers.
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
| #!/bin/bash | |
| # | |
| # Create an empty commit reusing author, date and message from an existing commit. | |
| # | |
| # Usage: | |
| # git phantom <commit-ish> | |
| # | |
| set -euo pipefail | |
| if [ $# -ne 1 ]; then |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| #!/bin/bash | |
| # | |
| # @file openssl-bench.sh | |
| # | |
| # Runs an OpenSSL SHA-256 benchmark and prints the time (in seconds) | |
| # to process 1 terabyte. | |
| # | |
| # Usage: | |
| # openssl-bench.sh [NUM_CPUS] | |
| # |
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
| You will help improve a given program based on specified requirements. The original program and the intended improvements will be provided. | |
| **Before writing any code modifications, follow these preliminary steps:** | |
| 1. **Outline Your Implementation:** | |
| - Present an overview of your planned modifications. | |
| 2. **Identify Potential Issues:** | |
| - Consider and list possible problems or edge cases that may arise. | |
| 3. **Finalize the Specification:** | |
| - Clearly define the finalized specification for the improvements. |
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
| #!/bin/bash | |
| # | |
| # @file shachk | |
| # | |
| # Check SHA sums for the files in the current directory. | |
| # | |
| set -eu | |
| set -o pipefail | |
| algorithm=512 |
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
| #!/bin/bash | |
| # | |
| # List branches sorted by commit dates. | |
| # | |
| # Usage: | |
| # git latest [--all|--tags] | |
| # | |
| set -eu | |
| set -o pipefail |
code = """
for i in range(100):print(i%3//2*"Fizz"+i%5//4*"Buzz"or-~i)
"""
quote = '"'
import base64
import sys
import zlib
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 time | |
| import ray | |
| delay = 0.01 | |
| context = ray.init() | |
| num_cpus = ray.available_resources()["CPU"] | |
| def busy_wait(duration): |
NewerOlder