Moved to repo: /quenhus/uBlock-Origin-dev-filter
In order to keep filters up to date, please use this repo.
In order to keep filters up to date, please use this repo.
(require 'svg) | |
(defun replace-text (start end) | |
(interactive "r") | |
(let* ((str (buffer-substring start end)) | |
(scale (cadr (assoc :height (assoc 'default face-remapping-alist)))) | |
(width (float (car (window-text-pixel-size nil start end)))) | |
(height (float (cdr (window-text-pixel-size nil start end)))) | |
(family (face-attribute 'default :family)) | |
(ascent (* (aref (font-info family) 8) (if scale scale 1))) | |
(img (format "<?xml version='1.0' encoding='UTF-8'?> |
;; This elisp code uses use-package, a macro to simplify configuration. It will | |
;; install it if it's not available, so please edit the following code as | |
;; appropriate before running it. | |
;; Note that this file does not define any auto-expanding YaSnippets. | |
;; Install use-package | |
(package-install 'use-package) | |
;; AucTeX settings - almost no changes |
// ==UserScript== | |
// @name Prevent link mangling on Google | |
// @namespace LordBusiness.LMG | |
// @match 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== |
// Don't forget to add to the project: | |
// 1. DeepLabV3 - https://developer.apple.com/machine-learning/models/ | |
// 2. CoreMLHelpers - https://github.com/hollance/CoreMLHelpers | |
enum RemoveBackroundResult { | |
case background | |
case finalImage | |
} | |
extension UIImage { |
# Created by https://www.toptal.com/developers/gitignore/api/swiftpackagemanager,swift,xcode,macos | |
# Edit at https://www.toptal.com/developers/gitignore?templates=swiftpackagemanager,swift,xcode,macos | |
### macOS ### | |
# General | |
.DS_Store | |
.AppleDouble | |
.LSOverride |
// Run any SwiftUI view as a Mac app. | |
import Cocoa | |
import SwiftUI | |
NSApplication.shared.run { | |
VStack { | |
Text("Hello, World") | |
.padding() | |
.background(Capsule().fill(Color.blue)) |
#!/bin/bash | |
<<ABOUT_THIS_SCRIPT | |
----------------------------------------------------------------------- | |
Written by:William Smith | |
Professional Services Engineer | |
Jamf | |
bill@talkingmoose.net | |
https://gist.github.com/talkingmoose/9faf50deaaefafa9a147e48ba39bb4b0 |
--[[ | |
=== HammerText === | |
Based on: https://github.com/Hammerspoon/hammerspoon/issues/1042 | |
How to "install": | |
- Simply copy and paste this code in your "init.lua". | |
How to use: | |
- Add this init.lua to ~/.hammerspoon/Spoons/HammerText.spoon | |
- Add your hotstrings (abbreviations that get expanded) to the "keywords" list following the example format. |
#!/usr/bin/env bash | |
# This is a script that provides infinite history to get around Alfred's 3-month limit. | |
# It works by regularly backing up and appending the items in the alfred db to a | |
# sqlite database in the user's home folder. It also provides search functionality. | |
# https://www.alfredforum.com/topic/10969-keep-clipboard-history-forever/?tab=comments#comment-68859 | |
# https://www.reddit.com/r/Alfred/comments/cde29x/script_to_manage_searching_backing_up_and/ | |
# Example Usage: | |
# alfred-clipboard.sh backup |