Skip to content

Instantly share code, notes, and snippets.

@jpdevries
jpdevries / SassMeister-input-HTML.html
Created August 1, 2014 02:47
Generated by SassMeister.com.
Edit the Scss to update CSS.
@jpdevries
jpdevries / SassMeister-input-HTML.html
Created August 1, 2014 03:17
Generated by SassMeister.com.
Edit the Scss to update CSS.
@jpdevries
jpdevries / SassMeister-input-HTML.html
Created August 1, 2014 19:32
Generated by SassMeister.com.
Edit the Scss to update CSS.
@jpdevries
jpdevries / SassMeister-input-HTML.html
Created August 1, 2014 19:39
Generated by SassMeister.com.
Edit the Scss to update CSS.
@jpdevries
jpdevries / SassMeister-input-HTML.html
Created August 2, 2014 04:37
Generated by SassMeister.com.
Edit the Scss to update CSS.
@jpdevries
jpdevries / getHitCount
Last active August 29, 2015 14:05
get the hit count of a single MODX resource
<?php
$defaultHitsCorePath = $modx->getOption('core_path').'components/hits/';
$hitsCorePath = $modx->getOption('hits.core_path',null,$defaultHitsCorePath);
$hitService = $modx->getService('hits','Hits',$hitsCorePath.'model/hits/',$scriptProperties);
if (!($hitService instanceof Hits)) return 'failed';
$s= '';
// pass this into your snippet [[!getHitCount? &resource=`[[**id]]`]]
@jpdevries
jpdevries / gist:b7a2a88a91f00d7c13e5
Last active August 29, 2015 14:12
simple MODX installation
cd /www/modx/ #your webroot
wget http://modx.s3.amazonaws.com/releases/2.3.2/modx-2.3.2-pl-advanced.zip
unzip modx-2.3.2-pl-advanced.zip
# you'll have a core and setup folder. hit the /setup in a web browser and complete the setup process
@jpdevries
jpdevries / SassMeister-input.scss
Created February 20, 2015 02:21
Generated by SassMeister.com.
// ----
// libsass (v3.1.0)
// ----
@import "bourbon/bourbon";
.dashbox {
@include display(flex); // be a flex container
@include flex-direction(row); // lay children out horizontally
@include flex-wrap(wrap); // allow wrapping
@jpdevries
jpdevries / SassMeister-input.scss
Created February 20, 2015 04:25
Generated by SassMeister.com.
// ----
// libsass (v3.1.0)
// ----
$white:rgb(250,250,250);
.my-component {
background:lighten(purple,30%);
color:purple;
body.inverted & { // when in invert mode accommodate with high contrast
@jpdevries
jpdevries / SassMeister-input.scss
Created February 20, 2015 04:28
Generated by SassMeister.com.
// ----
// libsass (v3.1.0)
// ----
@import "bourbon/bourbon";
@import "neat/neat";
$mobile: max-width 640px 4;
p {