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
| # The Whop chop: how we cut a Rails test suite and CI time in half | |
| > Evil Martians cut Whop’s Rails test suite and CI time in half using profiling, factory optimizations, and parallelization. Learn how we speed up tests and boost reliability. | |
| - Date: 2025-09-03T00:00:00.000Z | |
| - Authors: Igor Platonov, Travis Turner | |
| - Categories: Developer Community, Rails | |
| - URL: https://evilmartians.com/chronicles/the-whop-chop-how-we-cut-a-rails-test-suite-and-ci-time-in-half | |
| --- |
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
| #!/usr/bin/env node | |
| import path from "path"; | |
| import url from "url"; | |
| const __dirname = path.dirname(url.fileURLToPath(import.meta.url)); | |
| console.log({ __dirname }); |
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
| const { useState, useEffect, useRef } = React; | |
| const GITHUB_USERS_API_URL = "https://api.github.com/users"; | |
| const GITHUB_CLIENT_ID = "8b7993e07c6a5750c784"; | |
| const GITHUB_CLIENT_SECRET = "fd815b52e8b01fd07995f30ba54f3b799d9ef93e"; | |
| const USER_CACHE_MAX_SIZE = 5; | |
| const useCache = (cacheMaxSize) => { | |
| const { current: cache } = useRef(new Map()); |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"/> | |
| <title>Reduce + Spread vs Reduce + Property #jsbench #jsperf</title> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script> | |
| <script src="./suite.js"></script> | |
| </head> | |
| <body> | |
| <h1>Open the console to view the results</h1> |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>Math Birthdays</title> | |
| <link rel="stylesheet" href="https://unpkg.com/flatpickr/dist/flatpickr.min.css"> | |
| <link rel="stylesheet" type="text/css" href="https://npmcdn.com/flatpickr/dist/themes/material_green.css"> | |
| <style> |
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
| (function () { | |
| 'use strict'; | |
| var fs = require('fs'); | |
| var https = require('https'); | |
| var cursor = ''; | |
| var pushes = []; |
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
Show hidden characters
| { | |
| "env": { | |
| "browser": true | |
| }, | |
| "extends": "eslint:recommended", | |
| "rules": { | |
| "indent": [ | |
| "error", | |
| 4 | |
| ], |
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
| .github-avatar { | |
| font-family: Roboto, sans-serif; | |
| } | |
| .header { | |
| background-color: #2196F3; | |
| padding: 15px; | |
| color: white; | |
| } | |
| .user-search { | |
| float: right; |
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
| @ECHO OFF | |
| SET /A TIMER = 15 | |
| :LOOP | |
| SHUTDOWN /A | |
| TIMEOUT /T | |
| GOTO LOOP |