Instantly share code, notes, and snippets.

View linebreaks.rb
#!/usr/bin/env ruby
if ARGV.count == 1 && ARGV[0] != 0
contents = File.read(ARGV[0])
puts contents.gsub("\r\n","#VALID_LINE_BREAK#").gsub("\n","").gsub("\r","").gsub("#VALID_LINE_BREAK#", "\r\n")
else
puts "Invalid argument"
end
View payza_m.php
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/**
* The Payza Gateway
*
* @subpackage Gateway
* @category Payments
*/