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
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function | |
export PATH=/usr/local/bin:/opt/local/bin:/opt/local/sbin:$PATH | |
function parse_git_branch { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/[\1]/' | |
} | |
function get_rails_env { | |
if [[ $RAILS_ENV == '' ]] |
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 'carmen' | |
require 'nokogiri' | |
nok = Nokogiri::XML(File.open("usmap.svg")) | |
states = {} | |
max = 0 | |
min = 99999 |
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 ActiveMerchant #:nodoc: | |
module Billing #:nodoc: | |
class InternetSecureGateway < AuthorizeNetGateway | |
self.live_url = self.test_url = 'https://anet.internetsecure.com/process.cgi' | |
self.homepage_url = 'http://www.internetsecure.com/' | |
self.display_name = 'InternetSecure' | |
def test? | |
Base.gateway_mode == :test |
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
# Adds information about the customer | |
def add_arb_customer(xml, options) | |
customer = options[:customer] | |
return unless customer | |
xml.tag!('customer') do | |
xml.tag! 'type' ,customer[:type] if customer[:type] | |
xml.tag! 'id' ,customer[:id] if customer[:id] | |
xml.tag! 'email' ,customer[:email] if customer[:email] | |
xml.tag! 'phoneNumber' ,customer[:phone_number] if customer[:phone_number] | |
xml.tag! 'faxNumber' ,customer[:fax_number] if customer[:fax_number] |
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 'open-uri' | |
def get_file_path() | |
name = ActiveSupport::SecureRandom.hex(16) | |
Rails.root.join('processing', | |
name[0], | |
name[1], | |
name[2 .. name.length]).to_s + '.pdf' | |
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
#!/usr/bin/perl | |
use strict; | |
use PDF::API2::Simple; | |
my ($input_pdf, $pdf, $api, $page, $width, $height); | |
my ($box_width, $box_height); | |
$input_pdf = shift @ARGV; |
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
==> Downloading http://build.openvpn.net/downloads/releases/openvpn-2.2.0.tar.gz | |
File already downloaded in /Users/jjeffus/Library/Caches/Homebrew | |
/usr/bin/tar xf /Users/jjeffus/Library/Caches/Homebrew/openvpn-2.2.0.tar.gz | |
==> ./configure --prefix=/usr/local/Cellar/openvpn/2.2.0 --disable-debug --disable-dependency-tracking | |
./configure --prefix=/usr/local/Cellar/openvpn/2.2.0 --disable-debug --disable-dependency-tracking | |
checking build system type... x86_64-apple-darwin11.0.0 | |
checking host system type... x86_64-apple-darwin11.0.0 | |
checking for a BSD-compatible install... /usr/bin/install -c | |
checking whether build environment is sane... yes | |
checking for a thread-safe mkdir -p... ./install-sh -c -d |
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
==> Downloading http://downloads.sourceforge.net/project/wxwindows/2.8.11/wxMac-2.8.11.tar.bz2 | |
File already downloaded in /Users/jjeffus/Library/Caches/Homebrew | |
/usr/bin/tar xf /Users/jjeffus/Library/Caches/Homebrew/wxmac-2.8.11.tar.bz2 | |
==> ./configure --disable-debug --disable-dependency-tracking --prefix=/usr/local/Cellar/wxmac/2.8.11 --enable-unicode | |
./configure --disable-debug --disable-dependency-tracking --prefix=/usr/local/Cellar/wxmac/2.8.11 --enable-unicode | |
checking build system type... i686-apple-darwin11.0.0 | |
checking host system type... i686-apple-darwin11.0.0 | |
checking target system type... i686-apple-darwin11.0.0 | |
loading argument cache configarg.cache | |
checking for --enable-gui... yes |
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
==> Downloading http://downloads.sourceforge.net/project/wxwindows/2.8.11/wxMac-2.8.11.tar.bz2 | |
File already downloaded in /Users/jjeffus/Library/Caches/Homebrew | |
/usr/bin/tar xf /Users/jjeffus/Library/Caches/Homebrew/wxmac-2.8.11.tar.bz2 | |
==> ./configure --disable-debug --disable-dependency-tracking --prefix=/usr/local/Cellar/wxmac/2.8.11 --enable-unicode | |
./configure --disable-debug --disable-dependency-tracking --prefix=/usr/local/Cellar/wxmac/2.8.11 --enable-unicode | |
checking build system type... i686-apple-darwin11.0.0 | |
checking host system type... i686-apple-darwin11.0.0 | |
checking target system type... i686-apple-darwin11.0.0 | |
loading argument cache configarg.cache | |
checking for --enable-gui... yes |
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
==> Downloading http://downloads.sourceforge.net/project/wxwindows/2.8.11/wxMac-2.8.11.tar.bz2 | |
File already downloaded in /Users/jjeffus/Library/Caches/Homebrew | |
/usr/bin/tar xf /Users/jjeffus/Library/Caches/Homebrew/wxmac-2.8.11.tar.bz2 | |
==> ./configure --disable-debug --disable-dependency-tracking --prefix=/usr/local/Cellar/wxmac/2.8.11 --enable-unicode | |
./configure --disable-debug --disable-dependency-tracking --prefix=/usr/local/Cellar/wxmac/2.8.11 --enable-unicode | |
checking build system type... i686-apple-darwin11.0.0 | |
checking host system type... i686-apple-darwin11.0.0 | |
checking target system type... i686-apple-darwin11.0.0 | |
loading argument cache configarg.cache | |
checking for --enable-gui... yes |
NewerOlder