Skip to content

Instantly share code, notes, and snippets.

View cfoellmann's full-sized avatar
🐶
Dogging on

Christian Foellmann cfoellmann

🐶
Dogging on
  • W&S Technik GmbH
  • Castrop-Rauxel, NRW, Germany
View GitHub Profile
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify: {
files: {
src: 'assets/js/uber-media.js',
dest: 'assets/js/',
expand: true,
flatten: true,
ext: '.min.js'
@cfoellmann
cfoellmann / DocBlocks-for-WP.php
Created February 26, 2014 19:52
DocBlocks collection for WP development
<?php
/**
* DocBlocks for WordPress
*
* Structural Elements:
* -- to be documented with DocBlocks --
*
* class
* function (including methods)
* variable
<?php
register_settings_on_network( 'option_name', array( 'some' => '1' ) );
function register_settings_on_network( $option_name, $defaults ) {
global $wpdb;
$blogs = $wpdb->get_results( "SELECT blog_id FROM {$wpdb->blogs}", ARRAY_A );
if ( $blogs ) {
<?php
class PluginNameGrunt {
/**
* PSR-0 compliant autoloader to load classes as needed.
*
* @static
* @access public
* @since 1.0.0