Skip to content

Instantly share code, notes, and snippets.

View luoye00's full-sized avatar
🎯
Focusing

luoye00

🎯
Focusing
View GitHub Profile
@rproenca
rproenca / Clipboard.js
Last active January 21, 2025 03:16
Copy text to clipboard using Javascript. It works on Safari (iOS) and other browsers.
window.Clipboard = (function(window, document, navigator) {
var textArea,
copy;
function isOS() {
return navigator.userAgent.match(/ipad|iphone/i);
}
function createTextArea(text) {
textArea = document.createElement('textArea');
@aferriss
aferriss / loadVideo.js
Created July 25, 2018 20:06
Load a Video with Promise
module.exports = {
videos : function(asset){
return new Promise(function(resolve, reject){
var vElement = document.createElement('video');
vElement.autoplay = true;
vElement.muted = true;
vElement.loop = true;
vElement.playsinline = true;
vElement.playsInline = true;
@sts10
sts10 / rust-command-line-utilities.markdown
Last active May 18, 2025 08:59
A curated list of command-line utilities written in Rust

A curated list of command-line utilities written in Rust

Note: I have moved this list to a proper repository. I'll leave this gist up, but it won't be updated. To submit an idea, open a PR on the repo.

Note that I have not tried all of these personally, and cannot and do not vouch for all of the tools listed here. In most cases, the descriptions here are copied directly from their code repos. Some may have been abandoned. Investigate before installing/using.

The ones I use regularly include: bat, dust, fd, fend, hyperfine, miniserve, ripgrep, just, cargo-audit and cargo-wipe.

  • atuin: "Magical shell history"
  • bandwhich: Terminal bandwidth utilization tool