Skip to content

Instantly share code, notes, and snippets.

@MichaReiser
MichaReiser / distribution.svg
Created August 16, 2023 10:53
Distribution of buffer/source length
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
--------------------------------------------------------------------------------
Command: ./target/release/ruff ./crates/ruff/resources/test/cpython/ --no-cache
Massif arguments: --pages-as-heap=yes --time-unit=B
ms_print arguments: massif.out.969108
--------------------------------------------------------------------------------
GB
1.872^ #
| @#
--------------------------------------------------------------------------------
Command: ./target/release/ruff ./crates/ruff/resources/test/cpython/ --no-cache
Massif arguments: --pages-as-heap=yes --time-unit=B
ms_print arguments: massif.out.967385
--------------------------------------------------------------------------------
GB
1.570^ :
| #:::
This file has been truncated, but you can view the full file.
[FAIL] compiler\accessorDeclarationEmitVisibilityErrors.ts: Incorrectly passed
[PASS] compiler\accessorWithInitializer.ts
[FAIL] compiler\accessorsInAmbientContext.ts: Incorrectly passed
[FAIL] compiler\aliasDoesNotDuplicateSignatures.ts: Incorrectly passed
[PASS] compiler\aliasInaccessibleModule2.ts
[FAIL] compiler\accessorAccidentalCallDiagnostic.ts: Incorrectly passed
[PASS] compiler\abstractIdentifierNameStrict.ts
[PASS] compiler\accessorWithRestParam.ts
[PASS] compiler\2dArrays.ts
[PASS] compiler\accessorWithLineTerminator.ts
// NOTE: This file is autogenerated. Do not modify.
// See packages/babel-types/scripts/generators/flow.js for script used.
// @flow
declare type BabelNodeBaseComment = {|
value: string;
start: number;
end: number;
loc: BabelNodeSourceLocation;
|};
// NOTE: This file is autogenerated. Do not modify.
// See packages/babel-types/scripts/generators/flow.js for script used.
// @flow
declare type BabelNodeBaseComment = {|
value: string;
start: number;
end: number;
loc: BabelNodeSourceLocation;
|};
@MichaReiser
MichaReiser / build.sh
Last active August 8, 2022 13:20
LLVM CreateGlobalStringPtr segmentation fault
clang++-7 -g -O3 main.cpp `llvm-config-7 --cxxflags --ldflags --system-libs --libs all` -o main

Run Docker Image

docker run -it quay.io/travisci/travis-node-js /bin/bash

Remove dangling files

rm /etc/profile.d/rvm.sh
@MichaReiser
MichaReiser / test.js
Last active July 3, 2017 11:20
in memory fs usage in webpack
it("does not add translations twice if file is recompiled after change", function (done) {
var testCase = path.join(__dirname, "../fileChange.js");
var fs = new MemoryFS();
fs.mkdirpSync(path.join(__dirname, "../"));
fs.writeFileSync(testCase, "require('./otherFile.js');\n" +
"i18n.registerTranslation('NEW_USER', 'New user');\n" +
"i18n.registerTranslation('DELETE_USER', 'Delete User');\n" +
"i18n.registerTranslation('WillBeDeleted', 'Delete');");
fs.writeFileSync(path.join(__dirname, "../otherFile.js"), "i18n.registerTranslation('DELETE_USER', 'Delete User');");