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 Copilot prompt | |
* | |
* Goal: implement a performant frontend cache for huge PDF‑diff JSON blobs. | |
* | |
* Requirements | |
* — Tech: TypeScript + React, Dexie.js (IndexedDB wrapper), lz‑string, Web Worker. | |
* — Key format: `${pathname}/${fileName}?v1=${ver1}&v2=${ver2}` (strip base URL first). | |
* — API surface: | |
* • generateCacheKey(pathname: string, file: string, ver1: string, ver2: string): string |
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 GitHub Copilot Agent. Analyze the repository to determine the current TinyMCE version by inspecting only the existing codebase—this includes package and lock files, local or CDN script references, and wrapper packages like @tinymce/tinymce-react, tinymce-angular, or tinymce-vue. Do not rely on external metadata or assumptions. Use this information to generate a **TinyMCE Upgrade Report** that outlines how to upgrade from the current version to the latest available version as inferred from the codebase. The report must include only changes relevant to how TinyMCE is currently implemented in the project. The output should be in markdown format with **bold section titles only** (no markdown headers), and follow this structure exactly: **1 Executive Summary** (state the current version and proposed target version based on observable evidence in the codebase, along with a summary of benefits); **2 Breaking Changes & Deprecations** (list only those changes that affect features or configurations used in the |
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 Node { | |
constructor(data, children = []) { | |
this.data = data; | |
this.children = children; | |
} | |
add(data) { | |
let node = new Node(data); | |
this.children.push(node); | |
} |
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 Node { | |
constructor(data, next = null) { | |
this.data = data; | |
this.next = next; | |
} | |
} | |
class LinkedList { | |
constructor() { | |
this.head = null; |
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
{ | |
"workbench.colorTheme": "Material Theme", | |
"editor.lineHeight": 25, | |
"editor.letterSpacing": 0.5, | |
"workbench.startupEditor": "newUntitledFile", | |
"editor.rulers": [80], | |
"workbench.colorCustomizations": { | |
"editorRuler.foreground": "#ff4081" | |
}, | |
"editor.tabSize": 2, |
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
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change. | |
export PATH="$PATH:$HOME/.rvm/bin" | |
# Load Nerd Fonts with Powerlevel9k theme for Zsh | |
POWERLEVEL9K_MODE='nerdfont-complete' | |
source ~/powerlevel9k/powerlevel9k.zsh-theme | |
# Customise the Powerlevel9k prompts | |
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(ssh dir vcs newline status) | |
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=() |
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
# Download the latest stable version of VS Code and store it in a temporary location | |
wget https://vscode-update.azurewebsites.net/latest/linux-deb-x64/stable -O /tmp/code_latest_amd64.deb | |
# Now, install the newly downloaded VS Code | |
sudo dpkg -i /tmp/code_latest_amd64.deb |