I hereby claim:
- I am miraclx on github.
- I am miraclx (https://keybase.io/miraclx) on keybase.
- I have a public key ASDqJGBAchG6iEbgiaOBRjmyKeUf_nx8Jo_sWtbqXr6K_go
To claim this, I am signing this object:
| use std::{cmp::min, convert::TryFrom, fmt}; | |
| // ((2 ^ 26) - 1) | |
| const MAX_26_BIT_VALUE: u32 = 0x3ffffff; | |
| // ((2 ^ 64) - 1) | |
| const MAX_64_BIT_VALUE: u64 = 0xffffffffffffffff; | |
| // ((2 ^ 90) - 1) | |
| const MAX_90_BIT_VALUE: u128 = ((MAX_26_BIT_VALUE as u128) << 64) | (MAX_64_BIT_VALUE as u128); | |
| #[derive(Default, Eq, PartialEq, Ord, PartialOrd, Copy, Clone, Debug)] |
| #!/usr/bin/env zsh | |
| function get_active_players() { | |
| for m in `qdbus | egrep -i 'org.mpris.MediaPlayer2|plasma-browser-integration'` | |
| if [[ `qdbus $m /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlaybackStatus` == 'Playing' ]]; then | |
| echo $m | |
| fi | |
| } | |
| function get_player_metadata() { |
| First, not hibernate | |
| You actually want to disable hybrid sleep | |
| You may not already know it, but trust me | |
| That's what you want | |
| Okay? Good |
| Correct timestamps on WhatsApp media artifacts | |
| # How it works | |
| WhatsApp saves its media files in the format `{TYPE}-{YYYY}{MM}{DD}-WA{NNNN}.{EXT}` | |
| ## Examples | |
| - Image: `IMG-20190806-WA0026.jpg` | |
| - Sticker: `STK-20191126-WA0010.webp` | |
| - Audio: `AUD-20181227-WA0045.opus` | |
| - Animated Gifs: `VID-20190103-WA0003.mp4` |
I hereby claim:
To claim this, I am signing this object:
| // ==UserScript== | |
| // @name GitHub Repo Size | |
| // @namespace https://gist.github.com/miraclx/aad03f43fe8ac85682b0243f4f242f0d | |
| // @description Calculate repo size and inject into GitHub page | |
| // @icon https://github.githubassets.com/favicons/favicon.png | |
| // @version 0.2.0 | |
| // @author miraclx | |
| // @license Apache-2.0 | |
| // @supportURL https://gist.github.com/miraclx/aad03f43fe8ac85682b0243f4f242f0d | |
| // @grant GM_xmlhttpRequest |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"/> | |
| <title>join_split vs split_flat</title> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script> | |
| <script src="./suite.js"></script> | |
| </head> | |
| <body> | |
| <h1>Open the console to view the results</h1> |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"/> | |
| <title>array accumulation by concat vs push</title> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script> | |
| <script src="./suite.js"></script> | |
| </head> | |
| <body> | |
| <h1>Open the console to view the results</h1> |