Skip to content

Instantly share code, notes, and snippets.

View krujos's full-sized avatar

Joshua Kruck krujos

View GitHub Profile
#!/home/mqtester/.rvm/wrappers/ruby-1.9.2-p290@mqtester/ruby
# encoding: utf-8
require "rubygems"
require "amqp"
@exchange_name = "amq.rabbitmq.trace"
class Consumer
def handle_message(metadata, payload)
@krujos
krujos / main.js.
Created November 8, 2013 15:57
ngGrid + angular dynamic cell text based off row value. I had to pad the number of rows in a ngGrid to achieve some consistency in our UI. That meant that where I was using cell templates to create links for action on a row I had to stop inserting text when we had an empty row. In order to do this I shoved an angular directive that calls a scope…
$scope.getCellText = function(key) {
if ( key ) {
return "Do stuff";
}
};
$scope.theData = {};
$scope.theGrid = {
data: 'theData',
columnDefs:
@krujos
krujos / Gemfile
Created August 5, 2013 16:17 — forked from danhigham/Gemfile
source :rubygems
gem 'cfoundry'
gem 'uuidtools'