Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html>
<head>
<title>BI Express</title>
class User
include Mongoid::Document
include Tire::Model::Search
include Tire::Model::Callbacks
tire do
mapping do
indexes :nickname
Keep.Behaviors.Internationalization = Marionette.Behavior.extend({
initialize: function(){
var currentStore = "us";
var currentView = this[ currentStore + "Behavior"];
if(typeof currentView != "undefined"){
$.extend(true, this.prototype, currentView)
}
},
templateHelpers: function(){

RubyConf Colombia is Back for 2016!

You're more than welcome, encouraged—to go ahead and share the news with your friends and loved ones. In order to make it easier for you, we made this incredible link that you can click on to create a tweet announcing the good news.

What Even Is This?

RubyConf Colombia is our second not-for-profit, community-driven Ruby, Rails and related technologies conference in Medellin, Colombia. The format is two-day conference with a lot of awesome speakers from around the world and locally. The projected attendee number for RubyConf Colombia 2016 is around 250.

More to Come

@robertomiranda
robertomiranda / refactored.rb
Last active June 22, 2017 12:47 — forked from stevebartholomew/gist:1feab9d6fa5128f618c4
Ruby refactoring exercise
class Array
def to_annotated_xml(root)
output = "<#{root}>"
each do |i|
if i.is_a?(Fixnum)
output << "<number>#{i}</number>"
elsif i.is_a?(String)
if i.match(/@/)
output << "<email>#{i}</email>"