Skip to content

Instantly share code, notes, and snippets.

View rickycheers's full-sized avatar

Ricardo rickycheers

  • BoldBrush Inc.
  • San Antonio
  • 23:31 (UTC -05:00)
View GitHub Profile
@rickycheers
rickycheers / MinimumAmountValidator.js
Last active December 18, 2015 11:49
Minimum Amount Validator for 2Dialog Forms
var MinimumAmountValidator = Class.create({
settings: {
"minimum_amount": 1,
"checkbox_id" : null,
"input_id" : null,
"only_integer" : false
},
initialize: function( settings ){
@rickycheers
rickycheers / copy_billing_info.js
Created August 1, 2013 14:43
Copy billing information into contact information for 2Dialog forms. *Add IDs to each HTML field, make them match the ones in the script. *Add a checkbox that will work as the control that will trigger the copy. <input id="fill_contact" style="vertical-align: middle" mce_style="vertical-align: middle" type="checkbox"> Same as Billing Information…
(function($, $$){
$('fill_contact').observe('click', function(e) {
var name = $('billing_name').getValue()
, billing_address = $('billing_address').getValue()
, billing_city = $('billing_city').getValue()
, billing_state = $('billing_state').getValue()
, billing_zip = $('billing_zip').getValue()
, billing_phone = $('billing_phone').getValue()
@rickycheers
rickycheers / update.sh
Last active December 27, 2015 03:29
Bash script to "sync" WordPress sites between environments (servers) (For Digizent use)
#!/bin/bash
####### Update all this variables #######
repo_dir="rr-huntsville-site"
site_dir="wordpress"
branch="master"
# Update with directories relative to wp-content
pull_dirs="themes uploads"
push_dirs="themes uploads plugins"
####### Stop updating variables #######
---
# ^^^ YAML documents must begin with the document separator "---"
#
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
#
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.
@rickycheers
rickycheers / AngularJS-Material-design-menu-toggle.markdown
Last active May 14, 2018 17:03
AngularJS Material design menu toggle