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
pushed_tweets=[] | |
while true | |
Twitter.user_timeline("techmaniack").each do |item| | |
if !pushed_tweets.include?item.id | |
me.feed!(:message => item.text) if item.text.include?"#fb" | |
puts "POSTING TWEET" | |
puts item.text | |
pushed_tweets << item.id | |
else | |
puts "NOT POSTING" |
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 | |
# Ever tried to use wildcard (*) while pushing multiple files to your droid via adb? | |
# This small little script helps you do it. Of Course there are many ways to do it | |
# but one is for the ruby-istas :) | |
# SAMPLE USAGE: ruby smart_push.rb *.pdf books # push all pdf's to /mnt/sdcard/books | |
ARGV.length > 1 ? (dest = "/mnt/sdcard/#{ARGV[-1]}"; ARGV.pop) : dest = "/mnt/sdcard/" | |
ARGV.each do |item| | |
puts File.basename("#{item}") + " is being pushed" |
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 | |
#------------------------------------------------------------------------------- | |
# Name: isbn_decoder.rb | |
# Purpose: Fetch title from ISBN . | |
# | |
# Author: AbdulKarim Memon | |
# | |
# Created: 29/07/2012 | |
# Copyright: (c) AbdulKarim Memon 2012 |