Skip to content

Instantly share code, notes, and snippets.


AJ Acevedo AJ-Acevedo

View GitHub Profile
AJ-Acevedo / fizzbuzz_for_loop.js
Last active Apr 25, 2018
JavaScript - Fizz Buzz
View fizzbuzz_for_loop.js
#!/usr/bin/env node
* JavaScript Fizz Buzz using a for loop
* Copyright (c) 2013 AJ Acevedo |
* This content is released under the MIT License.
* Version: 0.1
AJ-Acevedo / bs_contact.html
Created Jan 12, 2014
Bootstrap 3 Contact Form
View bs_contact.html
<form role="form">
<div class="form-group">
<label for="contactForm">Contact Us</label>
<!-- TODO: Move styles into style.css -->
<div class="form-group">
<input type="text" class="form-control" style="width:233px" placeholder="Your First Name">
<div class="form-group">
<input type="text" class="form-control" id="lastInput" style="width:233px" placeholder="Your Last Name">
AJ-Acevedo / csp-db.sql
Last active Dec 28, 2015
Convert the CSP database
View csp-db.sql
UPDATE flightlu_posts SET guid = replace(guid, '', 'http://localhost');
UPDATE flightlu_posts SET post_content = replace(post_content, '', 'http://localhost');
UPDATE flightlu_postmeta SET meta_value = replace(meta_value,'', 'http://localhost');
UPDATE flightlu_options SET option_value = replace(option_value, '', 'http://localhost') WHERE option_name = 'home' OR option_name = 'siteurl' OR option_name = 'dashboard_widget_options';
View this_should_work.css
/* Comment the current #thank-you-for-subscribing class and add this */
#thank-you-for-subscribing {
font-size: 60px;
min-height: 100%;
min-width: 1024px;
width: 100%;
/*width: auto; */
height: auto;
position: fixed;
AJ-Acevedo / .gitignore
Created Oct 6, 2013
Example .gitignore file for WordPress with customized plugins, and files to include in the root directory.
View .gitignore
# Ignore everything
# Ignore everything except
AJ-Acevedo / option.php
Last active Dec 24, 2015
Simple Solution to run a Development WordPress installation with the same database and codebase as the production server.
View option.php
// Substitute URL for local/dev deploys
if ($option == "siteurl" || $option == "home") {
if ( strcmp($_SERVER['HTTP_HOST'], 'http://localhost') != 0)
return "http://$_SERVER[HTTP_HOST]";
AJ-Acevedo / admin-bar-fix.css
Last active Apr 25, 2017
WordPress 3.6 and Bootstrap 3 Admin bar overlap fix
View admin-bar-fix.css
// This fixes the WordPress admin-bar 28px overlap issue with Bootstrap 3.
body.admin-bar .navbar {
top: 28px;
z-index: 1000;
height: 40px;
// If the above does not work try this if your nav is wrapped in .header
AJ-Acevedo /
Last active Dec 21, 2015
Multienancy with Rails book corrections from: The version published on 2013-08-10

These suggestions are referencing pages from the pdf version published on 2013-08-10

Page: 5
If using rspec then there is no need for the test directory.

rails plugin new subscribem --full --mountable --dummy-path spec/dummy

AJ-Acevedo /
Last active Dec 21, 2015 — forked from malarkey/Contract Killer
AJAlabs - Web Design and Development, Fixed Rate Contract

AJAlabs - Web Development Contract

Revised date: 08/13/2013

Between us [company name]
and you [customer name]