FOR IMMEDIATE RELEASE
## AppName vX.X does something interesting
AppName vX.X is on the App Store now, and features the following very interesting feature. This is a summary, so I'm focusing on the lead. Just something to make me want to read the rest. Done.
City, State/Country - [Company/Developer] has released AppName vX.X, available in the Mac App Store. AppName is/does [broad, general strokes]. [A few more specific points about who it's for and why it's of benefit to them].
New features!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
=begin | |
Planter v1.3 | |
Brett Terpstra 2013 | |
ruby script to create a directory structure from indented data. | |
Three ways to use it: | |
- Pipe indented (tabs or 2 spaces) text to the script | |
- e.g. `cat "mytemplate" | planter.rb | |
- Create template.tpl files in ~/.planter and call them by their base name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
=begin | |
This script is designed to generate a simple html file with _all_ of your Pinboard.in bookmarks | |
The HTML file can be added to Launchbar's index as a custom bookmark file and you can search | |
your entire Pinboard.in collection instantly from Launchbar (by title only). It includes | |
any applied tags as part of the title to aid in searching. | |
This does no checking for deltas, it just grabs the whole bunch and overwrites the html file | |
every time. Don't run it too frequently. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat | php -r ' | |
$input = trim(file_get_contents("php://stdin")); | |
$terms = urlencode($input); | |
$url = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&filter=1&rsz=small&q=$terms"; | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, $url); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | |
curl_setopt($ch, CURLOPT_REFERER, "G-LINK"); | |
$body = curl_exec($ch); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# tabs2md | |
# Brett Terpstra 2012 | |
# | |
# Convert indented text to Markdown | |
# | |
# Great for apps that can copy out indented outlines but not OPML | |
# For basic outlines (mind maps) to Markdown, faster than OPML | |
# | |
# Indents can be tabs or 4 spaces |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* | |
mindjet2nvalt | |
Goes through selected nodes in MindJet Manager and creates | |
nvALT notes for them, adding a rocket icon to each node which | |
will locate the note when clicked. If the node has a note | |
attached, it is used as the content of the nvALT note. | |
Copyright 2012 Brett Terpstra | |
License is granted to use and modify for personal use |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# encoding: utf-8 | |
# nvAir: a First Class way to use nvALT/Notational Velocity with the worst documentation ever! | |
# Built by: Brett Terpstra, <http://brettterpstra.com> | |
# Destination: WikiLinks and [[wiki links]] to nvALT notes from anywhere on your system. | |
# This script is at your Service. (You can make it into a System Service with Automator, I mean). | |
# | |
# Security line is short today! Please have a photo id in hand. | | |
# I just need to see your ticket and the folder where you store your note files. o_________(_)________o | |
$notes_path = '~/Dropbox/nvALT2.2/' # o^o X \_/ X o^o |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Edit pinboard_user and pinboard_pass to your own settings below | |
// copy the bookmarklet code and create a new bookmark with the code as the url | |
// Run it on a page. If it works, hovering around the page will cause red outlines to appear | |
// clicking on a section will grab all of the links in the innermost section and send them to pinboard | |
// WARNING: may screw up and create a shitload of links in your Pinboard account | |
// | |
// Todo: rewrite w/o jQuery, better filtering of detected links, don't grab image links | |
javascript:var user='pinboard_user',pass='pinboard_pass';(function(e,a,g,h,f,c,b,d){if(!(f=e.jQuery)||g>f.fn.jquery||h(f)){c=a.createElement("script");c.type="text/javascript";c.src="http://ajax.googleapis.com/ajax/libs/jquery/"+g+"/jquery.min.js";c.onload=c.onreadystatechange=function(){if(!b&&(!(d=this.readyState)||d=="loaded"||d=="complete")){h((f=e.jQuery).noConflict(1),b=1);f(c).remove()}};a.documentElement.childNodes[0].appendChild(c)}})(window,document,"1.7",function($,L){$(document).ready(functi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
img = ARGV[0] | |
width = %x{sips -g pixelWidth #{img}|tail -n 1}.gsub(/pixelWidth: /,'').strip | |
height = %x{sips -g pixelHeight #{img}|tail -n 1}.gsub(/pixelHeight: /,'').strip | |
output = %Q{<img src="#{File.basename(img)}" style="width:#{width}px;height:#{height}px">} | |
print output |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
=begin | |
Usage: rtftomarkdown.rb FILENAME.rtf | |
Uses textutil, available on Mac only (installed by default) | |
Outputs to STDOUT | |
Notes: | |
Links are replaced with Markdown references (duplicate links combined). |