(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
<figure> | |
<?php | |
$image = get_field('your_image_field_name'); | |
$atts = array( | |
'imageid' => $image, | |
'size1' => '0', | |
'size2' =>'600', | |
'size3' =>'1000' | |
); | |
echo tevkori_responsive_shortcode($atts) ; ?> |
/* | |
Gruntfile for Pattern Lab + Compass + LiveReload | |
This is a sample Gruntfile for integrating Pattern Lab's template | |
regeneration with Compass and LiveReload. | |
I've found that using the Chrome LiveReload extension is slow as it | |
forces a full-page browser reload instead of using CSS injection. This | |
Gruntfile setup seems to work great, though, if you use the LiveReload | |
JS snippet instead. Just add this script right before the closing |
/* | |
Gruntfile for Pattern Lab + Compass + Live Reload via grunt-browser-sync | |
Set up to use browser-sync because for the life of me I can't get | |
the grunt-contrib-watch livereload to *inject* the compiled CSS changes | |
to the browser (as opposed to livereload doing a full page refresh)... | |
(To be clear, the CSS injection I'm talking about is where changes to | |
the CSS file are slipped in to the browser very quickly with no | |
full page reload, and without losing your place if you've scrolled |
A multi-level groupBy for arrays inspired by D3's nest operator.
Nesting allows elements in an array to be grouped into a hierarchical tree
structure; think of it like the GROUP BY
operator in SQL, except you can have
multiple levels of grouping, and the resulting output is a tree rather than a
flat table. The levels in the tree are specified by key functions.
See this fiddle for live demo.
git branch -m old_branch new_branch # Rename branch locally | |
git push origin :old_branch # Delete the old branch | |
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |
<?php | |
/** | |
* Get other templates (e.g. product attributes) passing attributes and including the file. | |
* | |
* @access public | |
* @param mixed $template_name | |
* @param array $args (default: array()) | |
* @param string $template_path (default: '') | |
* @param string $default_path (default: '') | |
* @return void */ |
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
# Prevent requests to index.php from being rewritten | |
RewriteRule ^index\.php$ - [L] | |
# Prefix specified PHP files with 'wordpress' | |
RewriteRule ^((wp-login|xmlrpc)\.php) wordpress/$1 [R=301,L] |