Three or more hashtags.
#[^#]+#[^#]+#
Long hashtags (15+ characters): #hashtagpunchline
| # Requires "JSON Helper" app. Available for free in the Mac App Store: http://itunes.apple.com/us/app/json-helper-for-applescript/id453114608?mt=12 | |
| set numberOfParagraphs to 2 | |
| tell application "JSON Helper" | |
| set baconIpsum to fetch JSON from "http://baconipsum.com/api/?type=all-meat&start-with-lorem=1¶s=" & numberOfParagraphs | |
| set resultString to "" | |
| repeat with i from 1 to (count of items in baconIpsum) |
| <!doctype html> | |
| <!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ --> | |
| <html> | |
| <head> | |
| <title>iOS 8 web app</title> | |
| <!-- CONFIGURATION --> |
| (* | |
| insert base64 encoded image | |
| [description] | |
| encode selected image to base64 and insert it | |
| at caret position in current document on CotEditor | |
| [version] 1.0 |
| import sublime | |
| import sublime_plugin | |
| class NumberCommand(sublime_plugin.TextCommand): | |
| def run(self, edit): | |
| selection = self.view.sel() | |
| for region in selection: | |
| try: | |
| value = int(self.view.substr(region)) | |
| self.view.replace(edit, region, str(self.op(value))) |
| #!/usr/local/Cellar/python3/3.2.3/bin/python3.2 | |
| from pypeg2 import * | |
| import datetime | |
| numbers = [ | |
| "nul", | |
| "een", | |
| "twee", | |
| "drie", |
Hello there! This is a sample post for gist.io, a super-lightweight writing soapbox for hackers.
Now look up. Further. Above the post title. See that grey text with the gist ID?
Now back to me. That grey text is a link! Open that sucker in a new tab to see the source for this post. Also, I'm on a horse.
If you peek at it with a web inspector, you'll see that it is a second-level heading. You can use first level headings, but they'll look just like the second level ones, and the gods of the HTML5 outlining algorithm will frown upon you.
| on handle_string(str) | |
| set arrayWithDate to my theSplit(str, "@") | |
| if arrayWithDate's length > 1 then | |
| set theDate to my parseDate(getArrayValue(arrayWithDate, 2)) | |
| end if | |
| set arrayWithBody to my theSplit(getArrayValue(arrayWithDate, 1), "#") | |
| if arrayWithBody's length > 1 then | |
| set reminderBody to my getArrayValue(arrayWithBody, 2) | |
| else |
| #!/usr/bin/env sh | |
| # Download lists, unpack and filter, write to stdout | |
| curl -s https://www.iblocklist.com/lists.php \ | |
| | sed -n "s/.*value='\(http:.*=bt_.*\)'.*/\1/p" \ | |
| | xargs wget -O - \ | |
| | gunzip \ | |
| | egrep -v '^#' |