Skip to content

Instantly share code, notes, and snippets.

View rodrisan's full-sized avatar
馃彔
Working from home

Rodrigo S rodrisan

馃彔
Working from home
  • 02:55 (UTC -06:00)
View GitHub Profile
@rodrisan
rodrisan / wp-api-batch.php
Created May 24, 2016 20:29 — forked from joehoyle/wp-api-batch.php
Batch endpoint for the WP REST API
<?php
/**
* Plugin Name: WP REST API Batch Requests
* Description: Enabled a multi / batch requests endpoint for the WP RES API
* Author: Joe Hoyle
* Version: 1.0-alpha1
* Plugin URI: https://github.com/WP-API/WP-API
* License: GPL2+
*/
@rodrisan
rodrisan / ubuntu_setup.sh
Created February 4, 2016 18:49 — forked from Keoven/ubuntu_setup.sh
My setup script to use when setting up a new ubuntu install be it a VM or a fresh install on a computer.
# Ubuntu 13.10
#
# VM Setup:
# 2 Cores & 4 GB RAM
#
# Requirements:
# sudo apt-get install curl -y
#
# Post install if you hadn't done so:
# 1. Install Chromium / Google Chrome
@rodrisan
rodrisan / .gitconfig
Created January 22, 2016 20:08 — forked from robmiller/.gitconfig
Some useful Git aliases that I use every day
#
# Working with branches
#
# Get the current branch name (not so useful in itself, but used in
# other aliases)
branch-name = "!git rev-parse --abbrev-ref HEAD"
# Push the current branch to the remote "origin", and set it to track
# the upstream branch
publish = "!git push -u origin $(git branch-name)"
@rodrisan
rodrisan / .editorconfig
Created November 17, 2015 17:40
An .editorconfig file for WordPress projects following WordPress coding standards
# This file is for unifying the coding style for different editors and IDEs
# editorconfig.org
# WordPress Coding Standards
# http://make.wordpress.org/core/handbook/coding-standards/
root = true
[*]
charset = utf-8

Gu铆a de colaboraci贸n para proyectos

Objetivo

Dado que existen numerosos desarrolladores contribuyendo a varios proyectos en paralelo, he creado esta gu铆a para esclarecer el proceso que llevamos a cabo para manejar el modelo de branching. Para esto voy a listar una serie de pasos que es proceso adecuado que debemos llevar a cabo una vez que nos llega una tarea.

Comencemos

Despu茅s de aceptar la tarea revisando que todo est茅 en orden, vamos a nuestra terminal y nos pasamos a la rama de develop.

@rodrisan
rodrisan / .gitconfig
Last active August 29, 2015 14:27 — forked from pksunkara/config
Sample of git config file (Example .gitconfig)
[user]
name = Pavan Kumar Sunkara
email = [email protected]
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
[sendemail]
smtpencryption = tls
smtpserver = smtp.gmail.com
@rodrisan
rodrisan / README.md
Last active August 29, 2015 14:27 — forked from zenorocha/README.md
A template for Github READMEs (Markdown) + Sublime Snippet

Project Name

TODO: Write a project description

Installation

TODO: Describe the installation process

Usage

<?php
/**
* Extended Walker class for use with the
* Twitter Bootstrap toolkit Dropdown menus in Wordpress.
* Edited to support n-levels submenu.
* @author johnmegahan https://gist.github.com/1597994, Emanuele 'Tex' Tessore https://gist.github.com/3765640
* @license CC BY 4.0 https://creativecommons.org/licenses/by/4.0/
*/
class BootstrapNavMenuWalker extends Walker_Nav_Menu {
<?php namespace GM\WWWPostThumbnail;
/**
* Plugin Name: WWW Post Thumbnail
* Description: Allow to use an external image url as featured image.
* Plugin URI: https://gist.github.com/Giuseppe-Mazzapica/928bc22e5f49a654cf7c
* Author: Giuseppe Mazzapica
* Author URI: https://github.com/Giuseppe-Mazzapica
* License: MIT
* Version: 0.1.0
*
<?php
/**
* Example of override of Block Tags module
*
* @version 1.0.0
* @author Julien BREUX <[email protected]>
*/
class BlockTagsTheme extends BlockTags
{
//...