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
# Delete all imported Tumblr posts from Twitter, Google Reader, Flickr, etc. | |
# by Michael D. Ivey | |
# based on Michael Gorsuch's http://bit.ly/7Ng55u | |
# No rights reserved, DWTFYWWI | |
require 'rubygems' | |
require 'tumblr' | |
require 'hpricot' | |
config = { |
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
class User < TwitterAuth::GenericUser | |
def twitter_oauth_client | |
oauth = Twitter::OAuth.new(TwitterAuth.consumer.key,TwitterAuth.consumer.secret) | |
def oauth.setup_from_twitter_auth(at,as,t) | |
@atoken = at | |
@asecret = as | |
@access_token = t | |
end | |
oauth.setup_from_twitter_auth access_token, access_secret, token | |
Twitter::Base.new(oauth) |
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
<ivey> New RT curiousity: @doesnothave doesn't have RT feature yet, and | |
@doeshave, obviously, does. @doesnothave tweets something | |
cool. @doeshave retweets. Does it show up in @doesnothave's | |
mentions? [19:16] | |
<ivey> I'm about to test, but don't know which test accounts have the | |
feature, so figured I'd see if anyone knew. [19:17] | |
<ivey> The answer is "No [19:19] | |
<ivey> And @doesnothave doesn't see the RT in his timeline either. | |
[19:20] |
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
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'rss/1.0' | |
require 'rss/2.0' | |
require 'open-uri' | |
require 'twitter' | |
require 'sqlite3' |
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
irb(main):005:0> str = 'foo #{bar} baz' | |
=> "foo \#{bar} baz" | |
irb(main):006:0> bar = 2 | |
=> 2 | |
irb(main):007:0> Kernel.eval '"' + str + '"' | |
=> "foo 2 baz" |
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
(defun open-next-http-url () | |
"Search forward to the next http/https URL, and open it" | |
(interactive) | |
(save-excursion | |
(nonincremental-re-search-forward "https*://") | |
(browse-url-at-point)) | |
) | |
(global-set-key "\C-cu" 'open-next-http-url) |
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
;;; gist.el --- Emacs integration for gist.github.com | |
;; Copyright (C) 2008 Christian Neukirchen <purl.org/net/chneukirchen> | |
;; Version: 0.3.1 | |
;; Keywords: gist git github paste pastie pastebin | |
;; Created: 21 Jul 2008 | |
;; Author: Christian Neukirchen <purl.org/net/chneukirchen> | |
;; Maintainer: Chris Wanstrath <[email protected]> | |
;; Contributors: |
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
(defun depth-from-git-root () | |
(length (split-string | |
(shell-command-to-string "git rev-parse --show-cdup") | |
"/"))) | |
(defun relative-file-name () | |
(mapconcat 'identity (last | |
(split-string (buffer-file-name) "/") | |
(depth-from-git-root)) | |
"/")) |
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
Google Voice transcription of a wrong number. Google doesn't handle | |
heavy Southern accents well: | |
"Mister ring this is Jim, Amy, rahul Tampa have couple of true trade | |
letters and I. I need to get you to call me back at 4. Civil intake | |
still for sale or on will call you back tomorrow. Thank you." |
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
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'twitter' | |
require 'sqlite3' | |
db = SQLite3::Database.new( "favorites.db" ) | |
main = Twitter::Base.new(Twitter::HTTPAuth.new('ivey', 'PW')) |