recentpopularlog in

handcoding : snippets   25

Save Time with Expert-Level TextExpander Snippets
(These looks like they could be handy TextExpander snippets to have around.)
“As you can see, it calculates the next upcoming day of the week. For example, when I look on a Wednesday for the next Thursday, I get tomorrow’s date.

“Sometimes, however, what I want is the date of next week’s Thursday. For that I use a slightly adapted version of the script and make new corresponding abbreviations like ‘nwmon’ for next week’s Monday. You can see in the table below examples from when I called the script on July 1, 2015 (Wednesday).”
textexpander  snippets  dates  2019 
april 2019 by handcoding
Typinator - Testimonials from former TextExpander users
Hmm—this makes an interesting case for Typinator over TextExpander.
typinator  textexpander  snippets  software  mac  osx  macos  2019 
march 2019 by handcoding
TextExpander abbreviation design - All this
“So, since delimited expansion doesn’t get me what I want, I use immediate expansion and a trick. The trick is to always start my abbreviations with a semicolon. There are no situations in my writing or programming in which a semicolon will be followed by anything other than whitespace. In English, a semicolon is always followed by a space; and in programming it’s almost always a statement delimiter—illegal to use in a variable name.”
textexpander  semicolons  2010  leancrew  drdrang  prefixes  snippets 
may 2018 by handcoding
Hugh Guiney on Twitter: "p { width: 100%; max-width: 39em; } Alphabet-and-a-half rule: to maximize readability, line lengths should be no longer than the number of letters in the alphabet + half. 26 * 1.5 = 39.… https://t.co/1rBBOahcRO"
(Well, this is an interesting rule of thumb.)

@LordPancreas: @justmarkup @chriscoyier p {
width: 100%;
max-width: 39em;
}

“Alphabet-and-a-half rule: to maximize readability, line lengths should be no longer than the number of letters in the alphabet + half. 26 * 1.5 = 39.”
css  snippets  typography  2018  twitter  linemeasure 
april 2018 by handcoding
Caner Sahin on Twitter: "img { position: relative; } img:before { position: absolute; content: "f127" " Broken image of " attr(alt); top: 0; left: 0; width: 100%; height: 100%; z-index: 2; font-family: "Fontawesome" }… https://t.co/ajtE2nD
This looks like a potentially interesting CSS snippet for calling attention to broken images:

@shncnr: @justmarkup img {
position: relative;
}
img:before {
position: absolute;
content: "\f127" " Broken image of " attr(alt);
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 2;
font-family: "Fontawesome"
}
css  images  twitter  snippets  broken  2018 
april 2018 by handcoding
Public Groups
via @TextExpander: "Switching keyboards can get complicated. Stick to the TE keyboard and just use the Emoji Public Group instead"
textexpander  2016  snippets  mac  software 
november 2016 by handcoding
GitHub - drdrang/te-url-snippets: A set of TextExpander snippets for getting and transforming the URLs of current browser pages.
"These are the TextExpander snippets I use to capture the URLs of pages I'm browsing and, in some cases, transform them. They use either AppleScript directly or Python with the appscript library and work with both Safari and Google Chrome."

The multibrowser logic works this way:

If Safari is running, regardless of whether Chrome is running, get the URL from Safari.
If Chrome is running, and Safari isn't, get the URL from Chrome.
safari  urls  textexpander  2016  snippets 
november 2016 by handcoding
davidwaterston/textexpander-dates-nextday: A small group of TextExpander snippets that can be used to quickly and easily insert any date in the next week into a document, by referencing it by name.
These are “a small group of TextExpander snippets that can be used to quickly and easily insert any date in the next week into a document, by referencing it by name. For example, to insert the date of the next Friday after the current date, simply type ;nfri."
textexpander  snippets  dates  2016 
august 2016 by handcoding
Group: Text - Thought Asylum
This page has heaps of TextExpander snippets covering things like case conversion, text padding, tabs to spaces, and spaces to tabs.
textexpander  snippets  convert  case  tabs  spaces  2015 
may 2016 by handcoding
TextExpander: Clipboard Underlining - Home - Thought Asylum
This post goes over a trick of using JavaScript snippets with functions within TextExpander.
textexpander  2015  javascript  snippets  functions 
may 2016 by handcoding
Throwaway TextExpander Snippet Tips — MacSparky
"Don’t forget that you can have the same fill-in snippet repeat multiple times in a single TextExpander snippet. To do so, simply copy and paste the snippet syntax (e.g. %filltext:name=Sample Fill In%) in the snippet wherever you want it to appear. Then, when you trigger the fill-in snippet typing it once in the first instance fills it in at all of its other instances."
textexpander  fillins  snippets  2016 
march 2016 by handcoding
TextExpander 5 JavaScript snippets - BrettTerpstra.com
"I mentioned the release of TextExpander 5 last week, and the fact that it now allows snippets to be written using JavaScript.

"You can find the documentation for JavaScript in TextExpander in the help book. I started playing with it a bit over the weekend, and thought I’d share a couple of findings."

Also, this example script looks like it could be handy in its own right:
"As an example of some of my experimentation, I’ve added a new group to the TE-tools called “Next X.” It provides a JavaScript strftime library, which it nests into snippets for each day of the week. Then you can use nd.tue to insert the date for the next Tuesday in the calendar while typing. nd.sun through nd.sat are available.

"By default, dates are inserted in the format “Tuesday, June 02.” Each snippet has a line at the top like this:"
textexpander  javascript  scripting  snippets  2015  bretterpstra 
february 2016 by handcoding
Fun with TextExpander and Scripting | Smile
"TextExpander 5 adds support for JavaScript snippets, which can be run on all of your devices – Macs, iPads, and iPhones. Here is a sample script which rounds the current date to the nearest 5 minute interval:"
textexpander  javascript  snippets  2016 
february 2016 by handcoding
TextExpander Snippets — MacSparky
These TextExpander snippets — such as for Markdown, and date and times — look like they could be pretty handy.
textexpander  snippets  2016  mac  osx  software 
january 2016 by handcoding
textexpander snippet repository - Google Search
Oh, neat—a Google search for “textexpander snippet repository” turns up all sorts of promising-looking sites.
textexpander  2015  software  mac  snippets 
december 2015 by handcoding
Biting the TextExpander bullet - All this
"Changing the prefix on all my [TextExpander] snippets was pretty easy, thanks to my reaffix script. Here are the steps I took:"
TextExpander  leancrew  drdrang  2015  snippets 
september 2015 by handcoding
Smile Blog: All About Suggested Snippets
"As you type, TextExpander will let you know what you type the most, and suggest you make it into a snippet.

"You may have noticed these suggestions appearing in the corner of your screen through Notification Center."
textexpander  snippets  suggestions  software  mac  osx  2015 
september 2015 by handcoding
Fixing TextExpander prefixes - All this
"Luckily for me, the Python Standard Library includes the plistlib module, which has several methods for reading, parsing, and writing plist files. I used it to make a little script for changing the prefixes (and suffixes, if that’s what you’re into) of snippets in a TextExpander library. I call it reaffix, and I typically use it this way:"
textexpander  snippets  python  prefix  2015 
july 2015 by handcoding
TextExpander | EmmaTech
"Maybe you need to URL encode a string, hyphen­ate a bunch of words together or remove all HTML tags from some­thing in your clip­board. Thanks to reg­u­lar expres­sions and text for­mat­ting libraries in Python, Ruby, Perl or any other script­able lan­guage, this is easy as pie."
textexpander  2011  regex  regexp  replace  snippets 
january 2015 by handcoding
TextExpander snippet prefixes again - All this
"Today I added another script to the repository on GitHub. This one, called teprefix, changes the abbreviation prefixes in a TextExpander library file."
textexpander  snippets  software  2011 
june 2014 by handcoding
My top five TextExpander snippets | Macworld
Among others, this post goes over a TextExpander snippet to paste the clipboard as plain text.
textexpander  snippets  clipboard  plaintext  2013 
may 2013 by handcoding
TextExpander: Change Clipboard Case - Home - Thought Asylum
This post goes over a handful of TextExpander snippets to convert clipboard text to uppercase, lowercase, title case, and sentence case.
textexpander  clipboard  uppercase  lowercase  titlecase  sentencecase  snippets  2011  software 
may 2013 by handcoding
HTML Select list of States in the US [html] [select] [us] [states]
This page has a code snippet of a list of US states written as select/option elements.
html  snippets  select  states  option 
august 2006 by handcoding
HTML Select List of Countries [html] [select] [countries]
This page has a code snippet of a country list written as select/option elements.
html  countries  select  option  snippets 
august 2006 by handcoding

Copy this bookmark:





to read