$ git clone https://github.com/ahaller/gbarcode.git Cloning into gbarcode... remote: Counting objects: 129, done. remote: Compressing objects: 100% (62/62), done. remote: Total 129 (delta 56), reused 129 (delta 56) Receiving objects: 100% (129/129), 111.60 KiB, done. Resolving deltas: 100% (56/56), done. $ cd gbarcode $ git checkout -b ruby1.9 origin/ruby1.9 Branch ruby1.9 set up to track remote branch ruby1.9 from origin.
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>com.paveldruzyak.grailbird_updater</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/Users/paveldruzyak/tweets/update.sh</string> | |
</array> |
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
javascript:$('div.neeiv').hide().prev('.si').hide();$.unique($('div.neeii').not($("div.neeii").has("span.vtp:contains('97%'),span.vtp:contains('98%'),span.vtp:contains('99%'),span.vtp:contains('100%')")).parent('div.neeiv')).show().prev('.si').show(); |
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
module Moonshado | |
class Sms | |
@@delivered_sms = {} | |
alias_method :stub_deliver_sms, :deliver_sms | |
def self.delivered_sms | |
@@delivered_sms | |
end |
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 'mechanize' | |
require 'tor' | |
if Tor.available? | |
agent = Mechanize.new do |agent| | |
agent.user_agent_alias = 'Mac Safari' | |
agent.set_proxy('localhost', 8118) | |
agent.get('http://whatismyipaddress.com/') do |page| | |
puts page.search("//input[@name='LOOKUPADDRESS']//@value").text | |
puts page.search("//tr[th='City:']//td").text |
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
config.yml |
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
Around('@javascript', '@slow') do |scenario, block| | |
Capybara.default_wait_time = 10 | |
block.call | |
Capybara.default_wait_time = 2 | |
end |
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
//[#12345] FEATURE: Add Google Maps to user profiles | |
//To quickly generate such commit messages, add a new link “Commit” to your bookmarks and use the following Javascript as the link URL: | |
javascript:(function() { var story = document.getElementsByClassName('underEdit')[0]; if (story) { var title = story.getElementsByClassName('titleInputField')[0].value; var id = story.getElementsByClassName('storyId')[0].innerHTML; var type = story.getElementsByClassName('storyDetailsField')[0].value.toUpperCase(); prompt('Your commit message:', '[#' + id + '] ' + type + ': ' + title); } else { alert('Open a story in Pivotal Tracker and run the bookmarklet again.'); }})(); |
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 'rubygems' | |
require 'nokogiri' | |
@doc = Nokogiri::XML(File.open("Database.xml")) | |
nodes = @doc.xpath("//object[@type='TODO']") | |
projects = {"0" => {"todos" => [], "title" => 'NEXT'}} | |
nodes.each do |node| | |
todo = {} | |
node.children.each do |attr| | |
if attr["name"] == 'parent' && !attr["idrefs"].nil? |
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
source "http://rubygems.org" | |
gem "twitter", "~>1.2.2" | |
gem "gchartrb", "~>0.8" |