Skip to content

Instantly share code, notes, and snippets.

View thebeline's full-sized avatar

Michael Mulligan thebeline

  • Brunswick, Maine, United States
View GitHub Profile
<?php
$iterations = 1000000;
$test_cases = array(
array(
'name' => 'class_implements, sensitive, uncached',
'function' => function($className, $type) {
$parents = class_parents($className, true) + class_implements($className, true);
return (isset($parents[$type]));
begin
require 'ruport'
rescue LoadError => err
warn "Couldn't load ruport gem: #{err}"
end
namespace :import do
desc 'Import tickets from CSV File'
task :csv => :environment do