Skip to content

Instantly share code, notes, and snippets.

View fi3ework's full-sized avatar
😮‍💨
recovering from burn out

fi3ework

😮‍💨
recovering from burn out
View GitHub Profile
@fi3ework
fi3ework / Mac OS X: Open in Visual Studio Code
Created March 18, 2019 06:57 — forked from tonysneed/Mac OS X: Open in Visual Studio Code
Add a command to Finder services in Mac OSX to open a folder in VS Code
- Open Automator
- File -> New -> Service
- Change "Service Receives" to "files or folders" in "Finder"
- Add a "Run Shell Script" action
- Change "Pass input" to "as arguments"
- Paste the following in the shell script box: open -n -b "com.microsoft.VSCode" --args "$*"
- Save it as something like "Open in Visual Studio Code"
TypeScript 7 hrs 11 mins █████████▍░░░░░░░░░░░ 44.9%
JavaScript 3 hrs 29 mins ████▌░░░░░░░░░░░░░░░░ 21.9%
Rust 1 hr 39 mins ██▏░░░░░░░░░░░░░░░░░░ 10.3%
Python 55 mins █▏░░░░░░░░░░░░░░░░░░░ 5.8%
Markdown 48 mins █░░░░░░░░░░░░░░░░░░░░ 5.0%
@fi3ework
fi3ework / benchmark-for-c90b46e.md
Last active April 4, 2023 12:04
Benchmark for c90b46e

tldr;

The metrics of benchmarks executed in sequence within the same job in GitHub Action have too much fluctuation, making the metrics unreliable.

Detail

Here's the five benches run for vitejs/vite#12723. Runs agained the commit in PR (c90b46e) and the one (3f4d109) before it. As patak described

@fi3ework
fi3ework / dist.mjs
Last active April 2, 2024 08:12
webpack ESM library output diff
/******/ var __webpack_modules__ = ([
/* 0 */,
/* 1 */
/***/ ((module) => {
module.exports = "cjs";
/***/ })
/******/ ]);
@fi3ework
fi3ework / test_js_normal_entry-inline_no-var-leak_bundle.js
Created April 24, 2024 07:14
remove single inlined module IIFE wrapper
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ([
/* 0 */
/*!********************************************!*\
!*** ./entry-inline/no-var-leak/module.js ***!
\********************************************/
/*! unknown exports (runtime-defined) */
/*! runtime requirements: module */
/*! CommonJS bailout: module.exports is used directly at 1:0-14 */
/*! Statement (ExpressionStatement) with side effects in source code at 1:0-33 */