This file contains 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
// Copyright (C) 2024 Igalia, S.L. | |
// This code is licensed under the terms of the MIT license | |
// (https://spdx.org/licenses/MIT.html). | |
// This is a polyfill for AsyncContext, including the web integration, without | |
// requiring user code transpilation. However, it only works in Chrome, and only | |
// enabling the `UnexposedTaskIds` feature. This can be enabled through a | |
// command line flag: `google-chrome --enable-blink-features=UnexposedTaskIds`. | |
// | |
// This polyfill has certain features that are known to be missing/incorrect: |
This file contains 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
#include <iostream> | |
#include <wordexp.h> | |
using namespace std; | |
char hexDigit(int digit) { | |
if (digit >= 0 && digit <= 9) { | |
return '0' + digit; | |
} else if (digit >= 10 && digit <= 15) { | |
return 'A' + digit - 10; |
This file contains 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 | |
# If this file isn't being run as a source, source it. | |
if (return 0 2>/dev/null); then | |
deactivate () { | |
goma_ctl ensure_stop | |
export PATH="$OLD_PATH" | |
unset OLD_PATH |
This file contains 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 | |
# Replace this | |
BASE_PATH = "/home/abotella/filenames_test/".encode("utf-8") | |
FILENAMES = [ | |
# Basic UTF-8 test (useless on its own, meant to check that multiple files | |
# work together) | |
"ûtf-∞".encode("utf-8"), | |
# UTF-8 starting with BOM |