Skip to content

Instantly share code, notes, and snippets.

View dwaynemac's full-sized avatar

Dwayne Macgowan dwaynemac

View GitHub Profile
@dwaynemac
dwaynemac / landing-planos-rv.html
Last active July 13, 2023 19:35 — forked from PatricioGiuliani/landing-planos-rv.html
Landing Planos DeRose RV
<style>
section.pricing {
/*
background: #007bff;
background: linear-gradient(to right, #0062E6, #33AEFF);
*/
}
.pricing .card {
border: none;
@dwaynemac
dwaynemac / persisting_mongoid_criteria.rb
Created January 3, 2012 20:07 — forked from olivoil/persisting_mongoid_criteria.rb
Example model to persist Mongoid::Criteria as Searches
class Search
include Mongoid::Document
field :query, :type => Hash
field :collection
embedded_in :user
def to_criteria
Mongoid::Criteria.new( collection.titleize.constantize ).fuse( query )