- Felix (@feba66), Joel (@space-admiral), James (@Green), and Jon (@jonchurch) in attendance
- What are goals of the Project?
- 2946 folks are in the discord
- Joel is the main dev lead
- Artokun is other dev and helping to manage the other devs
- 2 people have access to the codebase (artokun and Joel)
- Felix has already been using real concepts he has learned for Spacetraders in his CompSci studies
- The HTTP spec is a great compromise on technology because it is approachable for learners
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
| /** | |
| * Reads the first 8 bytes (magic bytes) from the provided file. | |
| * | |
| * @param {File} file - The file from which the magic bytes are to be read. | |
| * @returns {Promise<Uint8Array>} A promise that resolves to a `Uint8Array` containing the first 8 bytes of the file. | |
| * @throws {Error} Throws an error if the file cannot be read or if there's another reading issue. | |
| * | |
| * @example | |
| * const file = new File(["content"], "filename.txt"); | |
| * sniffMagicBytes(file).then(bytes => { |
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
| #!/bin/sh | |
| # Called by "git commit" with no arguments. The hook should | |
| # exit with non-zero status after issuing an appropriate message if | |
| # it wants to abort the commit. | |
| # | |
| # Will skip linting if the commit is a merge commit | |
| # to avoid introducing formatting diffs on already committed code | |
| PATH=$PATH:/usr/local/bin:/usr/local/sbin | |
| echo -------------------------------------------- |
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
| import axios, { AxiosInstance, AxiosRequestConfig } from 'axios'; | |
| interface Job { | |
| id: string; | |
| createdAt: string; | |
| status: 'queued' | 'processing' | 'completed' | 'failed'; | |
| priority?: number; | |
| retryCount?: number; | |
| data?: any; | |
| execute: () => void; |
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
| { | |
| "data": [ | |
| { | |
| "symbol": "COSMIC", | |
| "name": "Cosmic Engineers", | |
| "description": "The Cosmic Engineers are a group of highly advanced scientists and engineers who seek to terraform and colonize new worlds, pushing the boundaries of technology and exploration.", | |
| "headquarters": "X1-ZA40-15970B", | |
| "traits": [ | |
| { | |
| "symbol": "INNOVATIVE", |
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
| # input looks like | |
| # ~/proj/src/some/file/path.tsx(60,9): error jest/no-conditional-expect : Avoid calling `expect` conditionally` | |
| npm run lint -- --quiet | awk 'BEGIN { FS="(" }; {print $1O}' | uniq -u |
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 copyBranch() { | |
| navigator.clipboard.writeText( | |
| document.querySelector('.pr-header-branches').children[0].textContent | |
| ) | |
| } |
Some commits touch many files at once to do QoL or reformat code, with trivial diffs. These commits infamously muddy the output of git blame.
However, since git v2.23, git allows you to provide a list of commits to ignore in the blame. This feature is called "ignore revision(s)"
You can provide these commits in multiple ways:
- the CLI flag
--ignore-rev <commit> - the CLI flag
--ignore-revs-filewhich accepts a file infsck.skipListformat (commits seperated by newlines, # prefixed comments allowed as of Git 2.20) NOTE: at time of writing (git v2.25.1) this flag will evaluate the path relative to your repo root, not your current working directory!
- Enable
git config feature.manyFiles trueto opt in to a few settings to help speed up large repos. At time of writing it setsindex.version=4andcore.untrackedCache=true - Run
git gcto garbage collect unreachable objects, clean up reflog. Under the hood this runsgit prune && git repack && git rerere - Do you have a slow startup time for new shell sessions? Many devs are using some prompt that shows git status in your prompt. After every command it will use git to check the status of your index. When git is slow in general, this will slow down your interactive shells. One quick solution is to disable that status check in your prompt. For zsh you can do that by running
git config oh-my-zsh.hide-info true, add a--globalflag if you want to set this option globally.