This RFC (Request for Comments) template is designed to make software design decisions transparent, asynchronous, and inclusive. It serves as a structured way to propose, discuss, and document significant technical decisions before implementation begins.
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
| You are an expert in knowledge management and are a component of GitHub Copilot coding agent. | |
| Your task is to consolidate the following into a single collection of non - redundant, high quality facts that can be used to help with future coding tasks across the repository. | |
| - Facts that are redundant or very similar should be combined and rephrased into a single coherent fact. | |
| - Facts that are outdated should be removed. | |
| Think through each decision silently; only output a valid JSON object for each fact, each on its own separate line, in the following format. | |
| Do not include any other text in your response, no markdown, no newlines or unnecessary whitespace. | |
| You are an expert in knowledge management and are a component of GitHub Copilot coding agent. | |
| Your task is to consider the given facts and use them to answer the question. |
So you want to write a sync system for a web app with offline and realtime support? Good luck. You might find the following resources useful.
-
Database in a browser, a spec (Stepan Parunashvili)
What problem are we trying to solve with a sync system?
-
The web of tomorrow (Nikita Prokopov)
Notes from Coed:Ethics conference, London, 13 July 2018
- Imam Salem bin Ali Jaber preached in Yemen against Islamic extremism; guest at a wedding of relative; hit by a US Hellfire missile fired from a drone. Relative Faisal made contact with Cori, went to Washington DC. No explanation ever made by government (although compensation was paid).
- Decision-making process behind the attack not known exactly. But there is significant evidence that such attacks serve to further radicalise people; attack results in ~3x more new recruits than extremists killed by attack.
- Most drone attacks are not on named individuals, but rather "signature strikes" — a euphemism for killing people the military doesn't even know, but who match a certain behavioural pattern (perhaps based on metadata — Hayden: "we kill people based on metadata"
- Skynet (known through Snowden relevations): use machine learning to try to find courier
With the introduction of GitHub's Squash and Merge feature, this has become less prevelant, however it's still useful in scenarios where GitHub's interface is unavailable.
Let's talk through two ways to do a squash and merge on the command line.
When to use it
- When you have not merged main into your feature branch
- There are no merge conflicts
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
| class TTLMap { | |
| constructor(TTL) { | |
| this.ttl = TTL; | |
| this.timeoutData = {}; | |
| this.data = new Map(); | |
| } | |
| _clearTimeout(key) { | |
| clearTimeout(this.timeoutData[key]); | |
| delete this.timeoutData[key]; |
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 puppeteer = require('puppeteer'); | |
| const cheerio = require('cheerio'); | |
| async function run() { | |
| const browser = await puppeteer.launch(); | |
| const page = await browser.newPage(); | |
| await page.goto('https://news.ycombinator.com'); | |
| let content = await page.content(); | |
| var $ = cheerio.load(content); |
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 | |
| docker images --format '{{.Size}}\t{{.Repository}}\t{{.Tag}}\t{{.ID}}' | sed 's/ //' | sort -h -r | column -t |
NewerOlder