Add the following gems to your Gemfile
:
gem 'activeresource'
gem 'newrelic_api'
Update your bundle:
<?php | |
/* | |
Plugin Name: The Combiner | |
Plugin URI: http://dd32.id.au/wordpress-plugins/?plugin=combine-css-js | |
Description: Combine CSS & JS into one large monolithic file | |
Author: DD32 | |
Version: 1.0 | |
Author URI: http://dd32.id.au/ | |
*/ | |
#!/usr/bin/env bash | |
read -r -d '' profile <<'EOF' | |
{ | |
"PresetList" : [ | |
{ | |
"AlignAVStart" : true, | |
"AudioCopyMask" : [ | |
"copy:aac", | |
"copy:ac3", |
#!/bin/sh | |
set -o errexit | |
# @TODO detect fd and fallback to find | |
pngs=$(fd -e png .) | |
jpgs=$(fd -e jpg .) | |
#pngs=$(find . -iname "*.png") | |
#jpgs=$(find . -iname "*.jpg") | |
optimize_a_png() { |
defmodule FizzBuzzTest do | |
use ExUnit.Case | |
# to run tests: mix test | |
# to get an irb equivalent with your code loaded in it: iex -S mix | |
# to get a pry in your code: `require IEx;IEx.pry()` | |
# Phase 1: make the test pass. | |
# Phase 2: implement the fizz/buzz check as a pattern match | |
# Phase 3: move the pattern match into multiple function clauses. |
delimiter $$ | |
CREATE FUNCTION ISO8601_DATETIME(iso varchar(26)) | |
RETURNS DATETIME | |
DETERMINISTIC | |
BEGIN | |
RETURN CONVERT_TZ( | |
STR_TO_DATE( | |
CONCAT(SUBSTRING(iso, 1, 10), | |
' ', | |
SUBSTRING(iso, 12, 8)), |
<?php | |
/* | |
Plugin Name: Get OSCommerce Cart Contents from session | |
Plugin URI: http://325i.org/osc | |
Description: allows you to retrieve the cart contents from your OSCommerce install. Requires that your cookie path would include both OSC and wordpress. Works with OSCommerce 2.2RC2. | |
Author: Michael J. Cohen <mjc@kernel.org> | |
Version: 1 | |
Author URI: http://325i.org | |
*/ |
require 'rack' | |
require 'rack-legacy' | |
require 'rack-rewrite' | |
webroot = File.join(Dir.getwd,'app','webroot') | |
use Rack::Rewrite do | |
rewrite %r{/(.*)}, lambda { |match, rack_env| | |
File.exists?(File.join(webroot,match[1])) ? File.join('app','webroot',match[1]) : '/app/webroot/index.php/%s' % match[1] | |
} |
index 652e40c..233d9df 100644 | |
--- a/activemerchant.gemspec | |
+++ b/activemerchant.gemspec | |
@@ -13,8 +13,8 @@ Gem::Specification.new do |s| | |
s.homepage = 'http://activemerchant.org/' | |
s.rubyforge_project = 'activemerchant' | |
- s.files = Dir['CHANGELOG', 'README.md', 'MIT-LICENSE', 'CONTRIBUTORS', 'gem-public_cert.pem', 'lib/**/*', 'vendor/**/*'] | |
- s.require_path = 'lib' | |
+ s.files = Dir['CHANGELOG', 'README.md', 'MIT-LICENSE', 'CONTRIBUTORS', 'gem-public_cert.pem', 'lib/**/*', 'vendor/**/*', 'ext/nokogiri_conf.rb'] |
class Moo | |
def self.moo | |
a = 50a | |
end | |
end | |
# require './moo.rb' in pry | |
# rbx: | |
# SyntaxError: /usr/local/rvm/rubies/rbx-head/runtime/melbourne.rbc:81: expecting keyword_end | |
# from /usr/local/rvm/rubies/rbx-head/runtime/melbourne.rbc:81:in `syntax_error' |