This file contains 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
To use with newsbeuter, drop this in your ~/.newsbeuter/config | |
bookmark-cmd "~/Documents/delicious-bookmark.rb" | |
Then when you find a story you want to bookmark, hit ctrl+b. Edit the URL and title if necessary. | |
If you want to add additional tags, put them before your description separated by spaces, | |
then include a |pipe| character. Example: | |
description: | |
toread madebymarket cms | This is the actual description I want to save. |
This file contains 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
require 'sinatra/base' | |
class CacheHelper | |
module Sinatra | |
module Helpers | |
def cache(name, options = {}, &block) | |
if cache = read_fragment(name, options) | |
@_out_buf << cache | |
else | |
pos = @_out_buf.length |
NewerOlder