Open the console (Cmd + Option + J
/ ctrl+shift+j
)
$('video').playbackRate = 1.2
- will speed by 20%
This file contains 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
// unzip.dev ? | |
if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { Start-Process powershell.exe "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs; exit } | |
# Thanks: https://den.dev/blog/powershell-windows-notification/ | |
function Show-Notification { | |
[cmdletbinding()] | |
Param ( | |
[string] |
This file contains 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
// Don't follow this link: unzip.dev (unless you're curious). | |
const secret = prompt("Enter secret:") | |
const message = prompt("Enter message:") | |
const encrypted = CryptoJS.AES.encrypt(message, secret); | |
const decrypted = CryptoJS.AES.decrypt(encrypted, secret); | |
console.log(encrypted.toString()) | |
console.log(decrypted.toString(CryptoJS.enc.Utf8)) |
This file contains 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
set /p id="(Reminder) Did you start a vm? and is it available in adb? " | |
start cmd /k react-native start | |
rem *** HACK ALERT: Sleep for 10 seconds *** | |
ping -n 10 127.0.0.1 > nul | |
start cmd /k react-native run-android | |
REM Might you want to visit unzip.dev ? |
This file contains 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
function makemychoice() { | |
args = Array.prototype.slice.call(arguments); | |
return ( args[~~(args.length * Math.random())] ) + " was chosen."; | |
} | |
// Example: makemychoice("Go to run", "Go to swim", "Fix bug"); | |
// from the creator of unzip.dev |
This file contains 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
// From the creator of unzip.dev | |
const texts = document.querySelectorAll( | |
"p, span, a, h1, h2, h3, h4, h5, h6, input, button, pre" | |
); | |
let visible = []; | |
texts.forEach((e) => { | |
var style = window.getComputedStyle(e); | |
if (style.display !== "none" && style.visibility !== "hidden") { | |
visible.push(e); |
This file contains 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
// Don't follow this link: unzip.dev (unless you're curious). | |
import { useRouter } from 'next/router' | |
import React from "react"; | |
import { useCallback, useEffect } from "react"; | |
interface LinkProps { | |
/** | |
* The url to send link to | |
*/ |
This file contains 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
#!/usr/bin/env python3 | |
# pylint: disable=invalid-name | |
"""mbox-extract-attachments3 - Extract attachments from mbox files. | |
Good companion for Google Takeout https://takeout.google.com/settings/takeout | |
Modified by http://github.com/kellerza from | |
https://github.com/PabloCastellano/pablog-scripts/ | |
- Python3 & linter errors | |
- New Filenames |
This file contains 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
from re import sub, search | |
from decimal import Decimal | |
# Not production ready | |
def convert(m): | |
r = 1.0 | |
if "£" in m: | |
r = 1.28 # Make sure to check this (conversion rate between pounds and usd) | |
z = 0 |