Skip to content

Instantly share code, notes, and snippets.

@jeffikus
jeffikus / template.txt
Created January 28, 2022 19:26
3columnexample.wordpress.com Homepage Template
<!-- wp:group {"align":"full","style":{"border":{"width":"px"}},"layout":{"inherit":false}} -->
<div class="wp-block-group alignfull" style="border-width:px"><!-- wp:columns {"align":"wide"} -->
<div class="wp-block-columns alignwide"><!-- wp:column {"width":"25%","style":{"spacing":{"padding":{"top":"1em","right":"1em","bottom":"1em","left":"1em"}}}} -->
<div class="wp-block-column" style="padding-top:1em;padding-right:1em;padding-bottom:1em;padding-left:1em;flex-basis:25%"><!-- wp:group {"align":"full"} -->
<div class="wp-block-group alignfull"><!-- wp:image {"align":"center","id":68,"width":75,"height":75,"sizeSlug":"thumbnail","linkDestination":"none","className":"is-style-rounded"} -->
<div class="wp-block-image is-style-rounded"><figure class="aligncenter size-thumbnail is-resized"><img src="https://dotcomfsepatterns.files.wordpress.com/2021/03/pattern-woman.jpg?w=150" alt="" class="wp-image-68" width="75" height="75"/></figure></div>
<!-- /wp:image -->
<!-- wp:site-title {"textAlign":"center","style":
@JMichaelTX
JMichaelTX / Create Hyperlink with Custom Protocol from Selected Text.applescript
Created August 3, 2016 05:46
AppleScript to Create Rich Text Hyperlink with Custom Protocol from Selected Text
@JMichaelTX
JMichaelTX / JXA Resources.md
Last active November 10, 2024 04:58
JavaScript for Automation (JXA) Resources

JXA Resources

Revised: 2019-11-28 16:16 GMT-6

JXA

This is a list of the key resources I have found useful. If you know of others, please post in a comment below, and I will add to this list.

I have tried to order this list in the order that, to me, is best for learning JXA from scratch. We all learn a bit diferently, so adjust to suit your style/needs. Please post if you have suggestions on learning JXA.

@gruber
gruber / Paste URL From Safari Tab.scpt
Created June 29, 2015 00:01
Paste URL From Safari Tabs
set _old_delims to AppleScript's text item delimiters
set AppleScript's text item delimiters to {""}
tell application "System Events"
set _current_app to name of the first process whose frontmost is true
end tell
tell application "Safari"
set _urls to {}
repeat with i from 1 to 6 -- how many Safari windows to show URLs from
@Nostravinci
Nostravinci / Delete-all-tags-on-TaskPaper-entry
Last active August 29, 2015 14:05
TaskPaper — delete all tags on the selected entry
--I've made an AppleScript that will delete all tags on the selected entry. This helps to quickly clean an entry up, so you can start over with it.
tell application "TaskPaper"
tell front document
tell selected entry
delete every tag
end tell
end tell
end tell