Version 3, 29 June 2007
Copyright © 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
Version 3, 29 June 2007
Copyright © 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
/* Simple Ajax Switch Snippet for modx Revolution | |
* | |
* Checks whether the page was requested via Ajax and depending on this outputs different chunks. | |
* Save it as a snippet called simpleAjaxSwitch | |
* | |
* Adapted from here: | |
* http://forums.modx.com/thread/15204/change-template-on-the-fly#dis-post-82222 | |
* Thanks to Bruno! | |
* | |
* Usage in Template: |
<li>[[+username]]</li> |
/** | |
* Load disqus comments when visitor scroll down page to comments | |
* | |
* Usage: | |
* Add a div with id "disqus_thread" and data attributes for every disqus parameter: | |
* | |
* <div id="disqus_thread" data-disqus-shortname="username" data-disqus-url="http://example.com/post/post-name/"></div> | |
* | |
* @author: Murat Corlu | |
* @link: https://gist.github.com/gists/2290198 |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_FILENAME} !-s | |
RewriteRule ^(.*)$ rest/index.php?_rest=$1 [QSA,NC,L] | |
RewriteCond %{REQUEST_FILENAME} -d | |
RewriteRule ^(.*)$ rest/index.php [QSA,NC,L] | |
</IfModule> |
[[[[*page-image:notempty=`$wrapImgThumb? &src=`*page-image` &alt=`[[*pagetitle]]` &thumbOpts=`w=480&h=320``]]]] |
You'll want to login using an official Google account (i.e. if this is for your company, use the comapany Gmail account vs. a personal one.)
When logging in, you might be prompted to verify the account; if so, enter your cell number to get a verification e-mail or phone call.
Once verified, you'll have to agree to the terms of service; do that, and click continue.
Instructions for setting up a basic Apache environment on OS X Yosemite Only. For Mavericks, view this guide
For this guide, square brackets are used to denote places where you need to plugin your own stuff. In none of these cases are you supposed to use actual square brackets.
Note that /private/etc
and /etc
go to the same place on Yosemite. This is good to know for later.
If you've already configured Apache correctly and you just want to know the part about setting up a new Virtual Host, then you can skip to that section. If not, then you'll need to configure Apache.
<?php | |
/** | |
* getTVText snippet | |
* | |
* Dynamically Render Template Variable on front-end to get not only the value, | |
* but also its input's "text" | |
* | |
* @author goldsky <[email protected]> | |
* |
//! Webpack configuration file for production mode | |
// tested with webpack v4.12.0 | |
/** | |
* Imports | |
*/ | |
const autoprefixer = require('autoprefixer'); | |
const webpack = require('webpack'); | |
const CleanWebpackPlugin = require('clean-webpack-plugin'); | |
const ExtractTextPlugin = require('extract-text-webpack-plugin'); |