Skip to content

Instantly share code, notes, and snippets.

@qezz
qezz / noMangleGoogle.user.js
Last active September 29, 2021 09:09 — forked from radiantly/noMangleGoogle.user.js
Prevent Google from mangling links (Works on TamperMonkey, Firefox)
// ==UserScript==
// @name Prevent link mangling on Google
// @namespace LordBusiness.LMG
// @include https://www.google.com/search*
// @grant none
// @version 1.1
// @author radiantly
// @description Prevent google from mangling the link when copying or clicking the link on Firefox
// ==/UserScript==
@qezz
qezz / playground.rs
Created August 3, 2015 16:21 — forked from anonymous/playground.rs
Shared via Rust Playground
fn main() {
enum Void {}
let res: Result<u32, Void> = Ok(0);
// Err doesn't exist anymore, so Ok is actually irrefutable.
// `Void` must be covered here
let Ok(num) = res;
}
@qezz
qezz / playground.rs
Last active August 29, 2015 14:26 — forked from anonymous/playground.rs
Shared via Rust Playground
struct Yell { name: &'static str }
impl Drop for Yell {
fn drop(&mut self) {
println!("{} dropped!", self.name);
}
}
fn main() {
let bob = Yell { name: "Bob" };
let carol = Yell {