This should work on at least:
- 10.9 Mavericks
- 10.10 Yosemite
Taken from Using MacOSX Lion command line mail with Gmail as SMTP
Edit file /etc/postfix/main.cf
and add this to the bottom:
(function($) { | |
window.VcCustomElementView = vc.shortcode_view.extend( { | |
elementTemplate: false, | |
$wrapper: false, | |
changeShortcodeParams: function ( model ) { | |
var params; | |
window.VcCustomElementView.__super__.changeShortcodeParams.call( this, model ); | |
params = _.extend( {}, model.get( 'params' ) ); | |
if ( ! this.elementTemplate ) { |
import element from 'virtual-element'; // Using deku | |
// import React from 'react'; // Switch to this if you are using React | |
import pathToRegexp from 'path-to-regexp'; | |
export function renderRoutes(path, routes) { | |
return Object.keys(routes).map(routePath => { | |
let paramsInfo = []; | |
let re = pathToRegexp(routePath, paramsInfo); | |
let paramNames = paramsInfo.map(p => p.name); |
<?php | |
/** | |
* Custom API REST path class | |
* | |
* @package MyPlugin | |
* @author Skatox | |
*/ | |
class WC_API_Custom extends WC_API_Resource | |
{ |
<?php | |
/** | |
* This is a quick and dirty script. This should NEVER be run on a production server. | |
* | |
* Include this script at the bottom of your functions.php file, e.g. | |
* | |
* ```php | |
* // Your functions.php file | |
* // ... |
This should work on at least:
Taken from Using MacOSX Lion command line mail with Gmail as SMTP
Edit file /etc/postfix/main.cf
and add this to the bottom:
# first: | |
lsbom -f -l -s -pf /var/db/receipts/org.nodejs.pkg.bom | while read f; do sudo rm /usr/local/${f}; done | |
sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.* | |
# To recap, the best way (I've found) to completely uninstall node + npm is to do the following: | |
# go to /usr/local/lib and delete any node and node_modules | |
cd /usr/local/lib | |
sudo rm -rf node* |
Please consider using http://lygia.xyz instead of copy/pasting this functions. It expand suport for voronoi, voronoise, fbm, noise, worley, noise, derivatives and much more, through simple file dependencies. Take a look to https://github.com/patriciogonzalezvivo/lygia/tree/main/generative
float rand(float n){return fract(sin(n) * 43758.5453123);}
float noise(float p){
float fl = floor(p);
float fc = fract(p);
{ | |
"sort-order": [ | |
"-webkit-animation", | |
"-moz-animation", | |
"-ms-animation", | |
"-o-animation", | |
"animation", | |
"-webkit-animation-delay", | |
"-moz-animation-delay", | |
"-ms-animation-delay", |
<?php echo get_permalink( get_page_by_path( 'page-slug/children' ) ); ?> |