Skip to content

Instantly share code, notes, and snippets.

Menno Pietersen DESIGNfromWITHIN

Block or report user

Report or block DESIGNfromWITHIN

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:68c905ce692d62b0047e
$sources = array(
'data' => $modx->getOption('core_path') . 'components/cosmos/contentResources/',
$addContent = $modx->getOption('add_content', $options, false);
if ($addContent) {
$resources = include $sources['data'] . 'transport.resources.php';
foreach ($resources as $resource) {
$modx->log(xPDO::LOG_LEVEL_INFO,'Installing content');
View gist:7fe27d6305cd23edfd83
* Subpackage Resolver file for cosmos extra
* Copyright 2014 by Menno Pietersen
* Created on 12-11-2014
* @package cosmos
* @subpackage build
View gist:394337f66ddd28ba7de9
// create the module and name it DESIGNfromWITHIN
var DESIGNfromWITHIN = angular.module('DESIGNfromWITHIN', ['ngRoute', 'ngAnimate', 'ngSanitize'])
.config(function($sceProvider) {
// Completely disable SCE. For demonstration purposes only!
// Do not use in new projects.
// configure our routes
DESIGNfromWITHIN / Gruntfile.js
Last active Aug 29, 2015
MODX Grunt & Compass build file
View Gruntfile.js
/*global module:false*/
module.exports = function(grunt) {
// Project configuration.
concat: {
options: {
separator: ';',
dist: {
DESIGNfromWITHIN / Gulpfile.js
Created Jun 27, 2014
MODX Gulp, SASS, NEAT & Browser-Sync build file
View Gulpfile.js
var gulp = require('gulp');
var sass = require('gulp-sass');
var uglify = require('gulp-uglify');
var rename = require('gulp-rename');
var minifycss = require('gulp-minify-css');
var concat = require('gulp-concat');
var neat = require('node-neat').includePaths;
var browserSync = require('browser-sync');
var paths = {
View gist:aee459774d6a3e0715cb
* MODX Console Output
* @date 2014-05-11 20:32:09
Attempting to install package with signature: corpo-1.0.8-pl
Package preparing to install.
Grabbing package workspace...
DESIGNfromWITHIN / Gulpfile.js
Last active Mar 6, 2019
Gulpfile.js example Uses browser-sync, node-neat, gulp and gulp-sass
View Gulpfile.js
Gulpfile.js file for the tutorial:
Using Gulp, SASS and Browser-Sync for your front end web development - DESIGNfromWITHIN
1. Install gulp globally:
npm install --global gulp
DESIGNfromWITHIN / gist:6609045
Created Sep 18, 2013
Flexibility 4 meta tag options
View gist:6609045
<meta property="og:type" content="[[*flex_socialType]]">
<meta property="book:author" content="[[*flex_socialAuthorUrl]]">
<meta property="article:author" content="[[*flex_socialAuthorUrl]]">
<meta property="og:title" name="twitter:title" content="[[*pagetitle]]">
DESIGNfromWITHIN / index.html
Last active Dec 19, 2015
A CodePen by Menno Pietersen.
View index.html
<span data-picture data-alt="GlarusSafe image" class="v4_landing_cta_bg_image">
<span data-src="[[!getSiteURL]]assets/images/GlarusSafe/GlarusSafe_s.jpg"></span>
<span data-src="[[!getSiteURL]]assets/images/GlarusSafe/GlarusSafe_m.jpg" data-media="(min-width: 500px)"></span>
<span data-src="[[!getSiteURL]]assets/images/GlarusSafe/GlarusSafe_l.jpg" data-media="(min-width: 768px)"></span>
<span data-src="[[!getSiteURL]]assets/images/GlarusSafe/GlarusSafe_xl.jpg" data-media="(min-width: 980px)"></span>
<span data-src="[[!getSiteURL]]assets/images/GlarusSafe/GlarusSafe_xxl.jpg" data-media="(min-width: 1200px)"></span>
<!--[if (lt IE 9) & (!IEMobile)]>
<img src="[[!getSiteURL]]assets/images/GlarusSafe/GlarusSafe_l.jpg" alt="GlarusSafe image">
<!-- Fallback content for non-JS browsers. Same img src as the initial, unqualified source element. -->
DESIGNfromWITHIN / MODX - Wayfinder call with all options
Created May 7, 2013
A MODX Wayfinder call with all options and defaults listed.
View MODX - Wayfinder call with all options
You can’t perform that action at this time.