Skip to content

Instantly share code, notes, and snippets.

View rickycheers's full-sized avatar

Ricardo rickycheers

  • BoldBrush Inc.
  • San Antonio
  • 08:18 (UTC -05:00)
View GitHub Profile
@rickycheers
rickycheers / AngularJS-Material-design-menu-toggle.markdown
Last active May 14, 2018 17:03
AngularJS Material design menu toggle
---
# ^^^ 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 / 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 #######
@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 / 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 ){
The ADB excecutable lives in:
[path-to-android-sdk]/platform-tools/
./adb -e logcat | grep TiAPI
or
./adb -d logcat | grep TiAPI
@rickycheers
rickycheers / vacante-digizent.md
Created March 12, 2013 19:21
Vacante de Desarrollador Web

##Acerca de Nosotros

Somos una empresa basada en Texas con oficinas en la ciudad de Puebla.

Nos dedicamos, por un lado, a dar servicio a "asociaciones sin fines de lucro" en los EE. UU. realizando sitios, micro sitios, campañas de correo y recaudación de donativos a través de internet.

Por otro lado, tenemos un equipo que se encarga 100% de desarrollar junto con un equipo en los EE. UU. la plataforma de recaudación de donativos a través de internet.

Si quieren saber mas sobre nosotros visiten: http://digizent.com.

@rickycheers
rickycheers / README.md
Created February 21, 2013 21:57 — forked from oodavid/README.md

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/
@rickycheers
rickycheers / only_numbers.js
Created January 28, 2013 22:56
Callback implementation for only allowing the insertion of numbers on an input.
$('#selector').on('keydown', onlyNumber);
function onlyNumber(event){
// Allow: backspace, delete, tab, escape, and enter
if ( event.keyCode == 46 || event.keyCode == 8 || event.keyCode == 9 || event.keyCode == 27 || event.keyCode == 13 ||
// Allow: Ctrl+A
(event.keyCode == 65 && event.ctrlKey === true) ||
// Allow: home, end, left, right
(event.keyCode >= 35 && event.keyCode <= 39) ||
// Allow point