Skip to content

Instantly share code, notes, and snippets.

View DESIGNfromWITHIN's full-sized avatar

Menno Pietersen DESIGNfromWITHIN

View GitHub Profile
/*
* MODX Console Output
*
* @date 2014-05-11 20:32:09
*/
Attempting to install package with signature: corpo-1.0.8-pl
Package found...now preparing to install.
Grabbing package workspace...
@DESIGNfromWITHIN
DESIGNfromWITHIN / Gulpfile.js
Created June 27, 2014 07:56
MODX Gulp, SASS, NEAT & Browser-Sync build file
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 = {
@DESIGNfromWITHIN
DESIGNfromWITHIN / Gruntfile.js
Last active August 29, 2015 14:03
MODX Grunt & Compass build file
/*global module:false*/
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
concat: {
options: {
separator: ';',
},
dist: {
// 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.
$sceProvider.enabled(false);
});
// configure our routes
@DESIGNfromWITHIN
DESIGNfromWITHIN / gist:7fe27d6305cd23edfd83
Created December 11, 2014 20:56
resolve.clientconfig.php
<?php
/**
* Subpackage Resolver file for cosmos extra
*
* Copyright 2014 by Menno Pietersen info@themesmodx.com
* Created on 12-11-2014
*
* @package cosmos
* @subpackage build
*/
@DESIGNfromWITHIN
DESIGNfromWITHIN / index.html
Created July 5, 2012 14:42
A web page created at CodePen.io
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Nice CTA button without images &middot; CodePen</title>
<style>
@DESIGNfromWITHIN
DESIGNfromWITHIN / optimized.html
Created September 18, 2012 19:22 — forked from opengeek/optimized.html
Example of optimizing conditional filters using a Chunk wrapper
[[[[*page-image:notempty=`$wrapImgThumb? &src=`*page-image` &alt=`[[*pagetitle]]` &thumbOpts=`w=480&h=320``]]]]
@DESIGNfromWITHIN
DESIGNfromWITHIN / index.html
Created October 29, 2012 10:09
A CodePen by Menno Pietersen.
<div id="responsive_div">
<h1>This is a responsive div</h1>
</div>
@DESIGNfromWITHIN
DESIGNfromWITHIN / gist:68c905ce692d62b0047e
Last active December 13, 2015 23:12
addContent.rersolver.php
<?php
$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');
$resource->save();
@DESIGNfromWITHIN
DESIGNfromWITHIN / MODX - Wayfinder call with all options
Created May 7, 2013 09:06
A MODX Wayfinder call with all options and defaults listed.
[[Wayfinder?
&startId=`0`
&displayStart=`0`
&level=`0`
&ignoreHidden=`0`
&ph=`0`
&debug=`0`
&hideSubMenus=`0`
&removeNewLines=`0`
&textOfLinks=`menutitle`