This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # -*- coding: UTF-8 -*- | |
| import feedparser, pprint | |
| # Documentacion feedparse: | |
| # http://www.feedparser.org/docs/ | |
| feed_mercado_publico = "http://www.mercadopublico.cl/Portal/feed.aspx?OrgCode=296647" | |
| # Depurar | |
| pp = pprint.PrettyPrinter(depth=6) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <a href=""><img src="http://sem.silogismo.com/wp-content/uploads/2011/05/publicacion-3-75x75.jpg" alt="" title="" width="75" height="75" class="alignnone size-detail wp-image-171" /></a>stdClass Object | |
| ( | |
| [term_id] => 7 | |
| [name] => European Journal of Mineralogy | |
| [slug] => european-journal-of-mineralogy | |
| [term_group] => 0 | |
| [term_taxonomy_id] => 8 | |
| [taxonomy] => revista | |
| [description] => Revista de la European Journal of Mineralogy | |
| [parent] => 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import threading | |
| import thread | |
| import time | |
| import sys | |
| class MyThread(threading.Thread): | |
| def __init__(self): | |
| super(MyThread, self).__init__() | |
| def run(self): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (SELECT count( * ) -1 as count , a.rut_int,a.rut2_int,a.apa_int,a.nom_int,a.ama_int,a.com_int,a.ciu_int,a.fon_int,a.dir_int,a.mail1_int,a.mail2_int FROM integrantes a LEFT OUTER JOIN turnos_sol b ON b.rut_tursol=a.rut2_int where a.rut2_int LIKE '%%' AND DATE_FORMAT(b.fec_tursol,'%Y-%m-%d') >= '2011-04-15' AND DATE_FORMAT(b.fec_tursol,'%Y-%m-%d') <= '2011-05-15' and a.estado_int=1 GROUP BY a.rut2_int,a.rut2_int,a.apa_int,a.nom_int,a.ama_int,a.com_int,a.ciu_int,a.fon_int,a.dir_int,a.mail1_int,a.mail2_int ORDER BY count(*) asc limit 10); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| +------------+ | |
| | rut_tursol | | |
| +------------+ | |
| | 17340001 | | |
| | 17769881 | | |
| | 17230363 | | |
| | 17098117 | | |
| | 17666572 | | |
| | 16718160 | | |
| | 16642100 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT count( * ) -1 as count, | |
| a.rut_int, | |
| a.rut2_int, | |
| a.apa_int, | |
| a.nom_int, | |
| a.ama_int, | |
| a.com_int, | |
| a.ciu_int, | |
| a.fon_int, | |
| a.dir_int, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| if ( isset($_POST['enviar']) ) { | |
| /** | |
| * Se prepara la sentencia SQL para insertar | |
| */ | |
| $_sql = " | |
| INSERT INTO hostal ( | |
| identificador, | |
| nombre, | |
| correo, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| VIMSERVER=`mvim --serverlist` | |
| if [ $VIMSERVER ] | |
| then | |
| mvim --servername VIM --remote-send '<Esc>:tabnew<CR>' | |
| else | |
| mvim | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| require_once 'Zend/Loader/Autoloader.php'; | |
| $autoloader = Zend_Loader_Autoloader::getInstance(); | |
| $options = array( | |
| 'host' => '10.181.132.100', | |
| 'baseDn' => 'OU=usuarios,DC=localhost', | |
| 'bindRequiresDn' => true | |
| ); | |
| $ldap = new Zend_Ldap($options); | |
| $ldap->bind(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Bootic.net | |
| * Show the image filename as a legend in modal window | |
| */ | |
| var showVariantName = (function(){ | |
| function getVariantName(url) { | |
| var reImg = /(\d+)-([^?]*)/; | |
| var reStripExt = /(.*)\.[^.]+$/; | |
| var reCleanName = /_+|-+/g; | |
| return url.split("/").pop().match(reImg)[2].match(reStripExt)[1].replace(reCleanName,' '); |