Skip to content

Instantly share code, notes, and snippets.

Francisco arenas dospuntocero

Block or report user

Report or block dospuntocero

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
dospuntocero / even-odd.php
Created Sep 9, 2018
even odd classes on wordpress loop example on line 10 / 13
View even-odd.php
// WP_Query Arguments
$args = array(
'order' => 'DESC',
'posts_per_page' => 5
// The Loop
$query = new WP_Query( $args );
while ( $query->have_posts() ) : $query->the_post();
$even_odd_class = $wp_query->current_post % 2 == 0 ? 'even' : 'odd';
dospuntocero / show page children wordpress
Last active May 31, 2019
show page children wordpress
View show page children wordpress
$args = array(
'post_type' => 'page',
'posts_per_page' => -1,
'post_parent' => $post->ID,
'order' => 'ASC',
'orderby' => 'menu_order'
dospuntocero / svg separator
Last active May 31, 2019
svg separator - in case you need to modify the vector you need to decode the base 64 object -
View svg separator
<div class="separator" style="
height: 88px;
View create symlinks
dospuntocero / KNK C3 installation guide on macos using terminal:
Last active May 31, 2019
KNK C3 installation guide on macos using terminal:
View KNK C3 installation guide on macos using terminal:
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.
dospuntocero / _masonry.scss
Created Feb 18, 2018
masonry layout for foundation 6 controlled by flexbox breakpoints. you need to add a masonry-container class to the parent and a masonry-item class to the child. the .grid-container class is optional
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 {
dospuntocero / dospuntocerocms.php
Last active Feb 11, 2018
wordpress MEGALITE cms. for clients that don't need anything but blog or pages and you don't want them to mess things around. i'm using for controlling the page tree. also added a small css for removing the regular editor links. added 2 useful functions: svg capability for uploading and removing thumbnail hardcode dimens…
View dospuntocerocms.php
Plugin Name: dospuntocero
Plugin URI: -
Description: lite CMS
Author: Francisco Arenas
Version: 1
Author URI:
dospuntocero / use MAMPs php instead of system's
Last active May 31, 2019
use MAMPs php instead of system's
View use MAMPs php instead of system's
#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
dospuntocero / vwvh-conversion.scss
Created Feb 9, 2018
//px 2 vw - vh conversion tool
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;
dospuntocero / How to switch to a different remote branch in git Ask Question
Last active May 31, 2019
How to switch to a different remote branch in git Ask Question
View How to switch to a different remote branch in git Ask Question
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:
You can’t perform that action at this time.