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 / _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 / phppath.md
Created November 22, 2015 02:49
PHP PATH

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

@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 / 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 / jquerydomready.js
Created October 6, 2015 18:30
jQuery DOM Loading
jQuery(document).ready(function($) {
/** Insert Code Here */
});
@JamesVanWaza
JamesVanWaza / index.php
Last active September 24, 2015 13:33
Insert jQuery Date into MySQL
<body>
<form action="test.php" method="post">
<div class="row">
<div class="large-12-columns">
<fieldset>
<legend>Date of Presentation</legend>
<label for="">Presentation Date</label>
<input type="text" name="jquerydatepicker" class="selector" value="<?php if (isset($_POST['jquerydatepicker'])) {
echo $_POST['jquerydatepicker'];
}
@JamesVanWaza
JamesVanWaza / README.md
Last active August 29, 2015 14:24 — forked from jonathantneal/README.md
Proper Way of Writing @fontface SASS

Font Face

A mixin for writing @font-face rules in SASS.

Usage

Create a font face rule. Embedded OpenType, WOFF2, WOFF, TrueType, and SVG files are automatically sourced.

@include font-face(Samplino, fonts/Samplino);
@JamesVanWaza
JamesVanWaza / wp-query.php
Last active August 3, 2016 15:26 — forked from luetkemj/wp-query-ref.php
WP Query
<?php
/**
* The WordPress Query class.
* @link http://codex.wordpress.org/Function_Reference/WP_Query
*/
$args = array(
/** Post & Page Parameters */
'p' => 1,
'name' => 'hello-world',
'page_id' => 1,
@JamesVanWaza
JamesVanWaza / Node_Modules
Last active September 15, 2015 16:12
Grunt File With Live Reload for HTML, CSS3, Foundation 5
├─┬ autoprefixer-core@5.2.1
│ ├── browserslist@0.4.0
│ ├── caniuse-db@1.0.30000273
│ ├── num2fraction@1.1.0
│ └─┬ postcss@4.1.16
│ ├── es6-promise@2.3.0
│ ├── js-base64@2.1.9
│ └─┬ source-map@0.4.4
│ └── amdefine@1.0.0
├─┬ grunt@0.4.5
@JamesVanWaza
JamesVanWaza / wp-plugins.php
Created May 13, 2015 14:19
Wordpress Activate and Deactivate Functions
<?php
//Add Activate Button
function my_plugin_activate(){
//db create, create options, etc
error_log('My plugin activated');
}
register_activation_hook(__FILE__, 'my_plugin_activate');
//Add Deactivate Button
function my_plugin_deactivate(){