Skip to content

Instantly share code, notes, and snippets.

View pilotmoon's full-sized avatar
🏠
Working from bed

Nick Moore pilotmoon

🏠
Working from bed
View GitHub Profile
@pilotmoon
pilotmoon / PopRichString+Markdown.m
Created January 21, 2023 17:41
Add formatting to NSAttributedString initilalized from Markdown
//
// PopRichString+Markdown.m
// Pop
//
// Created by Nicholas Moore on 29/11/2022.
//
#import "PopRichString+Markdown.h"
#import "NMKit.h"
@pilotmoon
pilotmoon / NetNewsWire.js
Last active February 15, 2023 16:42
PopClip Extension to add a URL to NetNewsWire
// #popclip
// name: NetNewsWire
// icon: iconify:carbon:satellite-radar
// requirements: [url]
// lang: js
const url = popclip.input.data.urls[0];
popclip.openUrl("feed:" + url, {
app: "com.ranchero.NetNewsWire-Evergreen"
});
@pilotmoon
pilotmoon / another.js
Last active July 27, 2023 08:36
random snippet example
sdfsfg
// aardvarks?
#popclip
name: Comment Out
icon: square filled monospaced /*
javascript: popclip.pasteText("/* " + popclip.input.text + " */");
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
-- #popclip
-- name: OF4
-- after: show-status
-- lang: applescript
if length of "{popclip browser url}" > 0 then
set theSource to "From web page: {popclip browser url}"
else
set theSource to "From application: {popclip app name}"
end if
set theNote to theSource & " on " & ((current date) as string) & return & return & "{popclip text}"
#!/bin/zsh
# #popclip
# name: Test
# icon: |
# square filled svg:<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" d="M9.153 5.408C10.42 3.136 11.053 2 12 2c.947 0 1.58 1.136 2.847 3.408l.328.588c.36.646.54.969.82 1.182c.28.213.63.292 1.33.45l.636.144c2.46.557 3.689.835 3.982 1.776c.292.94-.546 1.921-2.223 3.882l-.434.507c-.476.557-.715.836-.822 1.18c-.107.345-.071.717.001 1.46l.066.677c.253 2.617.38 3.925-.386 4.506c-.766.582-1.918.051-4.22-1.009l-.597-.274c-.654-.302-.981-.452-1.328-.452c-.347 0-.674.15-1.328.452l-.596.274c-2.303 1.06-3.455 1.59-4.22 1.01c-.767-.582-.64-1.89-.387-4.507l.066-.676c.072-.744.108-1.116 0-1.46c-.106-.345-.345-.624-.821-1.18l-.434-.508c-1.677-1.96-2.515-2.941-2.223-3.882c.293-.941 1.523-1.22 3.983-1.776l.636-.144c.699-.158 1.048-.237 1.329-.45c.28-.213.46-.536.82-1.182z"/></svg>
# identifier: com.pilotmoon.test.gist-50786cf53f8c2b4dc765c564703b7db7
# after: show-result
# description: test
echo -n "12346"
dsfdf