This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// A complete set of CSS classes for margin and padding, including all directions | |
// right(r), left(l), top(t), bottom(b), x-axis(x), and y-axis(y). | |
// From 0 to 100 px step 10 px | |
/* Margin Classes */ | |
.mx_0 { margin-left: 0; margin-right: 0; } | |
.mx_10 { margin-left: 10px; margin-right: 10px; } | |
.mx_20 { margin-left: 20px; margin-right: 20px; } | |
.mx_30 { margin-left: 30px; margin-right: 30px; } | |
.mx_40 { margin-left: 40px; margin-right: 40px; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This gist is now maintained on github at https://github.com/luetkemj/wp-query-ref | |
<?php | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.github.io | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters | |
* Source: https://core.trac.wordpress.org/browser/tags/4.9.4/src/wp-includes/query.php | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// remove guttenberg css | |
function remove_gutenberg_styles() { | |
wp_dequeue_style( 'wp-block-library' ); | |
} | |
add_action( 'wp_enqueue_scripts', 'remove_gutenberg_styles', 100 ); | |
/** | |
* Disable the emoji's |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This .scss loop will create "margin helpers" and "padding helpers" for use in your web projects. | |
It will generate several classes such as: | |
.m-r-10 which gives margin-right 10 pixels. | |
.m-r-15 gives MARGIN to the RIGHT 15 pixels. | |
.m-t-15 gives MARGIN to the TOP 15 pixels and so on. | |
.p-b-5 gives PADDING to the BOTTOM of 5 pixels | |
.p-l-40 gives PADDING to the LEFT of 40 pixels |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
//dependency | |
var gulp = require('gulp'); | |
var sass = require('gulp-sass'); | |
var minifyCSS = require('gulp-clean-css'); | |
var uglify = require('gulp-uglify'); | |
var rename = require('gulp-rename'); | |
var changed = require('gulp-changed'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//declare this after the reset rules in css | |
html { | |
-webkit-box-sizing: border-box; | |
-moz-box-sizing: border-box; | |
box-sizing: border-box; | |
} | |
*, *:before, *:after { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//read the files in the a dir and return an array of those in this form: | |
// [file name]=file name.$extension | |
//argument the dir path and the extension for the link default .php | |
function createLink($dirPath,$extension='.php'){ | |
$navArray=array(); | |
if (file_exists($dirPath)) { | |
$dir= opendir($dirPath); | |
while (false !== ($file=readdir($dir))){//store the name of the read file in $file and read the content off all the dir | |
if (($file == ".") || ($file == "..")){//skip the . and .. file |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function tablePopulate($csvFilename){ | |
$tableArray=intranetFile($csvFilename);//open the file and return array of it | |
echo '<table>'.PHP_EOL; | |
foreach ($tableArray as $key => $value) { | |
$tempData= explode(',', $tableArray[$key]); | |
echo "<tr>"; | |
foreach ($tempData as $dataKey => $dataValue) { | |
if ($key==0) { | |
echo "<th scope='col'>$dataValue</th>".PHP_EOL; | |
}else { |