javascript:void(function(){
const copyListener = event => {
document.removeEventListener("copy", copyListener, true);
event.preventDefault();
let clipboardData = event.clipboardData;
clipboardData.clearData();
clipboardData.setData("text/plain", "<<TEXT TO COPY>>");
};
document.addEventListener("copy", copyListener, true);A commit should be a wrapper for related changes. For example, fixing two different bugs should produce two separate commits. Small commits make it easier for other developers to understand the changes and roll them back if something went wrong. With tools like the staging area and the ability to stage only parts of a file, Git makes it easy to create very granular commits.
Committing often keeps your commits small and, again, helps you commit only related changes. Moreover, it allows you to share your code more frequently with others. That way it‘s easier for everyone to integrate changes regularly and avoid having merge conflicts. Having large commits and sharing them infrequently, in contrast, makes it hard to solve conflicts.
Encode/decode strings the AingCreations way. That is to map characters in a string to their respective indices and reconstructing the original string from that mapping
/**
* @param {string} str - The string to encode.
* @returns {object} - The object mapping each character to an array of its indices
*/
var encode = function(str) {
var mapping = {};
for (var i = 0; i < str.length; i++) {| { | |
| "breadcrumbs.enabled": false, | |
| // Window and Title Settings | |
| "window.title": " ", // Set window title to a blank space | |
| "window.menuBarVisibility": "compact", // Compact menu bar visibility | |
| "window.commandCenter": false, // Disable command center | |
| "workbench.editor.showTabs": "single", // Show only a single editor tab | |
| "workbench.editor.tabSizing": "shrink", // Shrink tab sizes to fit | |
| "workbench.editor.labelFormat": "short", | |
| // Update and Telemetry Settings |
| package main | |
| import ( | |
| "fmt" | |
| ) | |
| func main() { | |
| grades := []int32{73, 67, 38, 33} | |
| fmt.Println(grades) |
| SELECT DISTINCT city | |
| FROM station | |
| WHERE city REGEXP '^[^aeiouAEIOU]' | |
| or city REGEXP '[^aeiouAEIOU]$'; |
| // disable AI features on Firefox | |
| user_pref("browser.ml.enable", false); | |
| user_pref("browser.ml.chat.enabled", false); | |
| user_pref("browser.ml.chat.sidebar", false); | |
| user_pref("browser.ml.chat.shortcuts", false); | |
| user_pref("browser.ml.chat.page", false); | |
| user_pref("browser.ml.chat.page.footerBadge", false); | |
| user_pref("browser.ml.chat.page.menuBadge", false); | |
| user_pref("browser.ml.chat.menu", false); | |
| user_pref("browser.ml.linkPreview.enabled", false); |
I was experiencing a significant amount of dropped frames during video playback after switching to Wayland and finally was able to find a fix that worked for me
During youtube playback I would experience 10+ frames dropped all at once, causing a noticable skip.
Saw a few people having similar issues:
https://forum.manjaro.org/t/my-browser-drops-a-bunch-of-frames-while-playing-youtube-videos/168839