Skip to content

Instantly share code, notes, and snippets.

View ConradIrwin's full-sized avatar

Conrad Irwin ConradIrwin

View GitHub Profile
@ConradIrwin
ConradIrwin / function.rb
Created December 15, 2012 08:49 — forked from rf-/function.rb
require 'binding_of_caller'
def self.method_missing(name, *args, &block)
if binding.of_caller(1).eval("defined?(#{name})")
binding.of_caller(1).eval("#{name}").call(*args, &block)
else
name
end
end
@ConradIrwin
ConradIrwin / 1. Desk.com gmail style email reply template.html
Last active September 2, 2015 04:50 — forked from DeskWOW/1. Desk.com gmail style email reply template.html
You can copy and paste the following code into the Email Reply Theme to make your emails look like they are sent from gmail.
{% assign emails = case.emails %}
{% assign threadlength = emails.size|minus:1 %}
{% for email in emails reversed %}
{% if forloop.first %}
{{email.new_html}}
{% if email.agent %}
{% if email.agent.signature %}