Skip to content

Instantly share code, notes, and snippets.

View noomorph's full-sized avatar

Yaroslav Serhieiev noomorph

  • Wix.com
  • Ukraine
  • 02:09 (UTC +03:00)
View GitHub Profile
@noomorph
noomorph / mac_ramdisk.sh
Created February 21, 2024 12:48
Serve *.tar as RAM disk
#!/bin/bash
# Path to the tar archive
TarPath="$1"
# Ensure a tar path is provided
if [[ -z "$TarPath" || ! -f "$TarPath" ]]; then
echo "Usage: $0 <path_to_tar>"
exit 1
fi
@noomorph
noomorph / jest.config.js
Last active February 10, 2024 12:05
Detox + Allure2 adapter (alpha version)
/** @type {import('@jest').Config} */
module.exports = {
rootDir: '..',
testMatch: ['<rootDir>/e2e/**/*.test.js'],
testTimeout: 120000,
maxWorkers: 1,
globalSetup: 'detox/runners/jest/globalSetup',
globalTeardown: 'detox/runners/jest/globalTeardown',
// ↓ Pay attention
reporters: [
@noomorph
noomorph / process-sorting-issue.trace.json
Created November 8, 2022 10:42
Illustration for the broken process sorting in Perfetto
[
{"ph":"M","args":{"name":"primary"},"ts":1667904017982000,"tid":0,"pid":513,"name":"process_name"},
{"ph":"M","args":{"sort_index":0},"ts":1667904017982000,"tid":0,"pid":513,"name":"process_sort_index"},
{"ph":"M","args":{"name":"lifecycle"},"ts":1667904017982000,"tid":0,"pid":513,"name":"thread_name"},
{"ph":"M","args":{"sort_index":0},"ts":1667904017982000,"tid":0,"pid":513,"name":"thread_sort_index"},
{"ph":"B","name":"node_modules/.bin/detox test -c stub e2e/01.sanity.test.js","pid":513,"tid":0,"cat":"lifecycle","ts":1667904017982000,"args":{"level":10,"cwd":"/Users/yaroslavs/Projects/wix/Detox/detox/test","data":{"id":"eae799ff-4b8f-5ac2-67ab-fd124f6c02d5","contexts":[],"detoxConfig":{"configurationName":"stub","apps":{"example":{"name":"example"}},"artifacts":{"rootDir":"artifacts/stub.2022-11-08 10-40-17Z","plugins":{"log":{"enabled":true,"keepOnlyFailedTestsArtifacts":false},"screenshot":{"shouldTakeAutomaticSnapshots":true,"takeWhen":{},"enabled":true,"keepOnlyFailedTestsArtifacts":false},"vid
@noomorph
noomorph / anecdote.md
Last active November 19, 2019 16:01
My translations to Hebrew

מינו לשרברב מתמחה צעיר.
אירעה תאונה וזימנו אותם להגיע בהקדם האפשרי.
הם נוסעים שמה ורואים מנהול (כוות כניסה) שממנו זורם שטף צואה עצום.
אין מה לעשות, השרברב מתקרב למנהול ו… צולל.
אחרי כדקה הוא מופיע על פני הצואה הנוזלי וצועק: ״תביא מפתח ברגים 19 מ״מ!״

generator.js:1:9: error: 'identifier' expected after 'function'
function* seq(n) {
~~~~~~~~^
shell returned 2
import Constants from './Constants';
Constants.DEFAULT_COLOR = 'red';
export default function Screen() {}
const MAX_SIZE = 6E5;
let TOP = new Uint32Array(MAX_SIZE + 1);
let CURRENT = new Uint32Array(MAX_SIZE + 1);
function lcs_size(a: Uint16Array, b: Uint16Array): number {
const R = a.length, C = b.length;
let row = 0, col = 0, chrcode = 0;
TOP.fill(0);
function createCombinationsIterable(sets) {
function len(arr) {
return arr.length;
}
function inc(digits, bases) {
var n = digits.length;
var ne = 0;
var sum = 0, mod = 0;
var excess = 1;

#word-of-the-day-eng :: meetup 01

Markdown presentation writer, powered by Electron
(function ($, moment) {
var PLUGIN = 'monthPicker';
function formatValue(value, locale, format) {
return moment(value).locale(locale).format(format);
}
function template() {
var options = this.options,
actions = this.actions;