Skip to content

Instantly share code, notes, and snippets.

@glyv0x
glyv0x / select_nfts_browser_console.js
Last active November 13, 2024 17:33
Select multiple Magic Eden NFTs based on Inscription IDs/search terms. Intended for browser dev consoles
const searchAndSelectFirst = async () => {
const ids = [
"enter inscription IDs/search terms here, up to 30"
];
console.log(
"Click into the website to make it focused. Script starting in 5 seconds..."
);
await new Promise((resolve) => setTimeout(resolve, 5000));
@glyv0x
glyv0x / Basic Dark.xccolortheme
Last active November 23, 2020 14:48
Xcode - Basic Dark color theme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>DVTConsoleDebuggerInputTextColor</key>
<string>1 1 1 1</string>
<key>DVTConsoleDebuggerInputTextFont</key>
<string>SFMono-Bold - 11.5</string>
<key>DVTConsoleDebuggerOutputTextColor</key>
<string>1 1 1 1</string>
@glyv0x
glyv0x / LongPressGestureRecognizer.swift
Last active November 13, 2017 14:55 — forked from myell0w/LongPressGestureRecognizer.swift
A UIGestureRecognizer that fires either on long-press or on a force-touch (3D Touch ™️)
import UIKit.UIGestureRecognizerSubclass
final class MNTLongPressGestureRecognizer: UILongPressGestureRecognizer {
var triggerWithForceTouch = true
override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent) {
super.touchesBegan(touches, with: event)
handleTouches(touches, with: event)
}
@glyv0x
glyv0x / pdf2droid.jsx
Created August 24, 2017 15:18
pdf2droid - Photoshop Script that generates PNGs for Android development from PDFs. Ideal for iOS vectorized asset conversion.
#target Adobe Photoshop CC 2015.5
bringToFront()
var folder = Folder.selectDialog()
var files = folder.getFiles(/\.(pdf)$/i)
var densities = [54, 72, 108, 144, 216, 288]
var folderNames = ['ldpi', 'mdpi', 'hdpi', 'xhdpi', 'xxhdpi', 'xxxhdpi']
for (var i = 0; i < folderNames.length; i++) {