Skip to content

Instantly share code, notes, and snippets.

View OrderAndCh4oS's full-sized avatar
🕰️
Writing code

Sean Cooper OrderAndCh4oS

🕰️
Writing code
View GitHub Profile
@OrderAndCh4oS
OrderAndCh4oS / .gitignore
Created May 10, 2017 14:13
Wordpress Gitignore
# Created by .ignore support plugin (hsz.mobi)
### JetBrains template
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
# User-specific stuff:
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/dictionaries
@OrderAndCh4oS
OrderAndCh4oS / Gruntfile.js
Created May 10, 2017 14:10
Grunt Setup for SASS and JS
module.exports = function (grunt) {
// This banner gets inserted at the top of the generated files, such a minified CSS
var bannerContent = '/*!\n' +
' * <%= pkg.name %>\n' +
' * Version: <%= pkg.version %>\n' +
' * Build date: <%= grunt.template.today("yyyy-mm-dd HH:MM:ss") %>\n' +
' */\n\n';
require("matchdep").filterDev("grunt-*").forEach(grunt.loadNpmTasks);
<?php
global $wpdb;
/**
* and all the original post data then
*/
$post = get_post($post_id);
/**