Skip to content

Instantly share code, notes, and snippets.

@Saluev
Saluev / emoji.py
Created December 10, 2023 17:17
Emoji regular expression for Python
"""
Regular expressions for matching emoji sequences.
For parsing single emoji, use either
re.match(EMOJI_SEQUENCE, string)
# or
EMOJI_REGEXP.match(string)
To match multiple emojis or custom patterns, insert `EMOJI_SEQUENCE` into pattern:
@0xdevalias
0xdevalias / decompile-apple-shortcuts.md
Last active November 4, 2025 11:46
A few notes on decompiling Apple Shortcuts workflows into their raw XML 'source code'.
@sloanlance
sloanlance / IPA Reader Lambda (S3).py
Created April 4, 2023 16:10 — forked from katie7r/IPA Reader Lambda (S3).py
IPA Reader Lambda function (with S3 storage of saved audio files)
import boto3
import os
from contextlib import closing
from botocore.exceptions import ClientError
def object_exists(s3, bucket, key):
try:
boto3.resource('s3').Object(bucket, key).load()
return True
@dk949
dk949 / comments_of_the_world.md
Last active October 14, 2025 12:43
Comments in different programming languages

Comments in different programming languages

This document lists comment styles and languages (and dialects) that use it. The list is based on the one used in NERD commenter.

Comment types are grouped by the types of symbols used. Each example is organised as a comment block followed by a list of languages.

Note1: the number of languages is quite large, and much of this

@oliveratgithub
oliveratgithub / html_element_overflow_debug_bookmarklet.js
Created June 29, 2022 15:14
🪟 HTML element size overflow debugging: browser bookmarklet to add colorful borders around all DOM elements on a page using CSS.
javascript:document.querySelectorAll(%22*%22).forEach(function(a)%7Ba.style.outline%3D%221px%20solid%20%23%22%2B(~~(Math.random()*(1%3C%3C%2024))).toString(16)%7D)
@oliveratgithub
oliveratgithub / html_form_field_values_bookmarklet.js
Created June 29, 2022 14:39
📋 Store and refill HTML web form field values: a dynamic browser bookmarklet to re-fill a form with pre-defined values in 1-click. Great help for repeated testing of web forms.
javascript:(function()%7Bfunction%20copyToClipboard%20(text)%20%7B%20window.prompt%20(%22Copy%20to%20clipboard%20Using%20Ctrl+C%20and%20then%20paste%20into%20destination%20bookmarklet%22,%20text);%20%7D%20function%20addToForms(i,form)%20%7Bvar%20str%20=%20'';%20var%20obj%20=%20document.forms%5Bi%5D.querySelectorAll(%5B'textarea',%20'select',%20'input'%5D);%20for%20(var%20j=0;%20j%3Cobj.length;%20j++)%20%7B%20if%20(obj%5Bj%5D.type%20==%22checkbox%22%7C%7Cobj%5Bj%5D.type%20==%22radio%22)%20%7Bstr%20+=%20%22setVal(%22%20+%20i%20+%20%22,f,'%22%20+%20obj%5Bj%5D.name%20+%20%22',%22%20+%20obj%5Bj%5D.checked%20+%20%22);%22;%7D%20else%20%7B%20str%20+=%20%22setVal(%22%20+%20i%20+%20%22,f,'%22%20+%20obj%5Bj%5D.name%20+%20%22','%22%20+%20escape(obj%5Bj%5D.value)%20+%20%22');%22;%7D%7D%20return%20str;%7Dvar%20forms%20=%20document.forms;%20var%20str%20=%20%22%22;%20var%20f%20=%20new%20Array();for%20(var%20i=0;i%3Cforms.length;i++)%7Bf.push('%22'%20+%20forms%5Bi%5D.name%20+%20'%22'%20);%20str%20+=%20addToForms(i,forms%5Bi%5
@oliveratgithub
oliveratgithub / contenteditable_on.js
Last active April 24, 2025 22:59
📝 On-page Website Content Editing: contentEditable browser bookmarklets to start/stop live-edit mode
javascript:document.body.contentEditable=true;
@hidao80
hidao80 / url-sticky.js
Last active December 9, 2024 17:47
A bookmarklet that saves and edits the memo associated with the url in the browser.
/**
* Copyright (c) 2022 hidao80
* Released under the MIT license
* https://opensource.org/licenses/mit-license.php
*/
/*
README
========
url-sticky
@rmorey
rmorey / gen.sh
Created August 17, 2021 19:58
List of Uniform Type Identifiers
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -dump | grep uti: | cut -c 29- | sort | uniq > utis.txt

iPhone

Model(s) Physical Size Points (Standard) Points (Zoomed) Scale Device Resolution Screen Resolution
iPhone 17 Pro Max 6.9" 440 x 956 375 x 812 @3x 1320 x 2868 1320 x 2868
iPhone 17 Pro 6.3" 402 x 874 320 x 693 @3x 1206 x 2622 1206 x 2622
iPhone Air 6.5" 420 x 912 375 x 812 @3x 1260 x 2736 1260 x 2736
iPhone 17 6.3" 402 x 874 320 x 693 @3x 1206 x 2622 1206 x 2622
iPhone 16 Pro Max 6.9" 440 x 956 375 x 812 @3x 1320 x 2868 1320 x 2868