Skip to content

Instantly share code, notes, and snippets.

View JamesVanWaza's full-sized avatar

JamesVanWaza

  • Washington DC, Rockville MD
View GitHub Profile
@JamesVanWaza
JamesVanWaza / jquerydomready.js
Created October 6, 2015 18:30
jQuery DOM Loading
jQuery(document).ready(function($) {
/** Insert Code Here */
});
@JamesVanWaza
JamesVanWaza / form-submission.cfm
Created October 27, 2015 00:01
Setting up a form
<form action="form-submission.cfm"></form>
<!--Using the variables from form.html-->
<form action="form-submission.cfm" method="get"></form>
<!--
WHEN TO USE GET
If the form submission is passive (like a search engine query), and without sensitive information.-->
<form action="form-submission.cfm" method="post"></form>
@JamesVanWaza
JamesVanWaza / Install Composer using MAMP's PHP.md
Created November 19, 2015 00:09 — forked from irazasyed/Install Composer using MAMP's PHP.md
Instructions on how to change preinstalled Mac OS X PHP to MAMP's PHP Installation and then install Composer Package Management

##Change default Mac OS X PHP to MAMP's PHP Installation and Install Composer Package Management

###Instructions to Change PHP Installation

First, Lets find out what version of PHP we're running (To find out if it's the default version).

To do that, Within the terminal, Fire this command:

which php

@JamesVanWaza
JamesVanWaza / phppath.md
Created November 22, 2015 02:49
PHP PATH

export PATH=/Applications/MAMP/bin/php/php5.6.10/bin:$PATH

@JamesVanWaza
JamesVanWaza / _mixins.scss
Created December 3, 2015 00:29 — forked from garyharan/_mixins.scss
Useful scss mixins (rounded corners, gradients, text-field, button)
@mixin box-shadow($top, $left, $blur, $color, $inset: false) {
@if $inset {
-webkit-box-shadow:inset $top $left $blur $color;
-moz-box-shadow:inset $top $left $blur $color;
box-shadow:inset $top $left $blur $color;
} @else {
-webkit-box-shadow: $top $left $blur $color;
-moz-box-shadow: $top $left $blur $color;
box-shadow: $top $left $blur $color;
}
@JamesVanWaza
JamesVanWaza / bootstrapgruntfile.js
Created April 3, 2016 17:51
bootstrapgruntfile.js
/*jslint node: true */
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
sass: {
dist: {
options: {
/** Only use include_paths if extracting elements from Bower */
includePaths: ['bower_components/bootstrap-sass/assets/stylesheets'],
/*jslint node: true */
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
sass: {
dist: {
options: {
loadPath: ['bower_components/foundation-sites/scss'],
outputStyle: 'expanded',
@JamesVanWaza
JamesVanWaza / bootstrapgruntfilejul232016.js
Created July 23, 2016 20:07
Bootstrap Gruntfile and SCSS File
/*jslint node: true */
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
php: {
dist: {
options: {
port: '?'
}
@JamesVanWaza
JamesVanWaza / favicon.php
Created July 30, 2016 16:14
Installing a Favicon with Wordpress
<link rel="shortcut icon" href="<?php echo get_stylesheet_directory_uri(); ?>/favicon.ico" />
@JamesVanWaza
JamesVanWaza / index.html
Created August 5, 2016 23:05
Packtpub Error Testing
<form id="webForm" method="POST">
<div class="header">
<h3>Register</h3>
</div>
<div class="input-frame">
<label for="firstName">First Name:</label>
<input name="firstName" id="firstName" type="text" class="required" />
</div>
<div class="input-frame">
<label for="lastName">Last Name:</label>