View gist:a43c776d67d66d4ada5df54d799a7e34
there is a ultra faster way with less sotfware involved for macos
1st: diskutil list
2nd: diskutil unmountDisk /dev/diskn
3rd: sudo dd bs=1m if=the_force_image of=/dev/rdiskn
thats it. no other software needed.
View _masonry.scss
$masonry-css-column-gap: $global-margin;
$global-margin: 1rem !default;
.masonry-container {
column-count: 1;
column-gap: $masonry-css-column-gap;
@if ($flexbox-responsive-breakpoints) {
$i: 0;
@each $size in $breakpoint-classes {
View dospuntocerocms.php
Plugin Name: dospuntocero
Plugin URI: -
Description: lite CMS
Author: Francisco Arenas
Version: 1
Author URI:
View gist:993e6f4c76ac45d705a6221db0edf1f3
#first open the profile
mate ~/.bash_profile
- then add this 2 lines
PHP_VERSION=`ls /Applications/MAMP/bin/php/ | sort -n | tail -1`
export PATH=/Applications/MAMP/bin/php/${PHP_VERSION}/bin:$PATH
- after that if you call which php, it must say something like
View vwvh-conversion.scss
@function get-vw($object_width,$window_width:1440) {
$vw: ($window_width * 0.01) * 1px;
@return ($object_width / $vw) * 1vw;
@function get-vh($object_height,$window_height:768) {
$vh: ($window_height * 0.01) * 1px;
@return ($object_height / $vh) * 1vh;
View gist:f87b6c316f667dc96d8928739fa43262
first, just input following command in the terminal:
git branch --all
And then you will see the all the branches on local and remote. Something like this:
View next previous URLs wordpress
$prev = get_permalink(get_adjacent_post(false,'',false));
$next = get_permalink(get_adjacent_post(false,'',true));
<a href="<?php echo $prev; ?>">Previous Post</a>
<a href="<?php echo $next; ?>">Next Post</a>
<?php //What if there isn’t a previous or next post? ?>
View wordpress multiple loop
$custom_post_type = 'team_profiles;
$tax_term = 'department';
$terms = get_terms($tax_term);
foreach($terms as $term) :
<h2><?= $term->name;?></h2>
$cat_posts_args = array(
'post_type' => $custom_post_type,
View gist:ba90fb94f6222a6bf5d8be5cc2d7b58e
if (has_nav_menu('primary_navigation')) :
'theme_location' => 'primary_navigation',
'menu_class' => 'nav',
'items_wrap' => '%3$s',
'container' => false