Skip to content

Instantly share code, notes, and snippets.

View jesramirez's full-sized avatar

Jesus Ramirez jesramirez

View GitHub Profile
@jesramirez
jesramirez / Operaciones-Git
Created May 4, 2016 04:09 — forked from jelcaf/Operaciones-Git
Git Tips - Mini-trucos de Git para facilitarme la tarea
#############################################
# Push de la rama actual
git push origin $rama_actual
#############################################
# Volver a un commit anterior, descartando los cambios
git reset --HARD $SHA1
#############################################
# Ver y descargar Ramas remotas
<?php
/**
* imap-attachment.php
*
* @author hakre <hakre.wordpress.com>
* @link http://stackoverflow.com/questions/9974334/how-to-download-mails-attachment-to-a-specific-folder-using-imap-and-php
*/
/**
* Utility Class
<?php
/**
* imap-attachment.php
*
* @author hakre <hakre.wordpress.com>
* @link http://stackoverflow.com/questions/9974334/how-to-download-mails-attachment-to-a-specific-folder-using-imap-and-php
*/
/**
* Utility Class
<?php
/**
* Class RecursiveSimpleXMLIterator
*
* RecursiveIterator for SimpleXMLElement
*/
class RecursiveSimpleXMLIterator extends IteratorIterator implements RecursiveIterator
{
function __construct(SimpleXMLElement $xml) {
parent::__construct($xml);