Skip to content

Instantly share code, notes, and snippets.

View juque's full-sized avatar

Juan Pablo Aqueveque juque

View GitHub Profile
mysql> select item_id,rendicion_monto,escuela_id,rendicion_log,rendicion_numero_documento from rendiciones where estado_id = 2 and escuela_id in (125,57,58,65,68,70,74,114);
+---------+-----------------+------------+---------------------+----------------------------+
| item_id | rendicion_monto | escuela_id | rendicion_log | rendicion_numero_documento |
+---------+-----------------+------------+---------------------+----------------------------+
| 12 | 60000 | 58 | 2011-06-10 15:02:44 | 2300 |
| 12 | 576207 | 58 | 2011-06-10 16:18:49 | 56 |
| 12 | 55000 | 58 | 2011-06-10 16:30:14 | 2306 |
| 12 | 165000 | 58 | 2011-06-10 16:38:30 | 2316 |
| 12 | 309724 | 58 | 2011-06-10 17:05:33 | 108 |
| 12 | 398213 | 65 | 2011-06-10 19:06:49 | 108 |
<?php
$data = array(
'332'=>'74395',
'333'=>'74431',
'334'=>'74458',
'335'=>'74480',
'336'=>'74513',
'337'=>'74695',
'338'=>'74727',
'339'=>'79321',
<?php
function nl2br_limit($string, $num){
return preg_replace('/\n/', '<br/>', preg_replace('/(\s{'.$num.'})\s+/','$1', $string));
}
$cadena = <<<EOF
uno dos tres
mysql> desc usuario;
+-------------------+-------------------------------------+------+-----+---------------------+-----------------------------+
| Field | Type | Null | Key | Default | Extra |
+-------------------+-------------------------------------+------+-----+---------------------+-----------------------------+
| id | int(11) | NO | PRI | NULL | auto_increment |
| nombre | varchar(64) | NO | MUL | NULL | |
| contrasena | varchar(64) | NO | | NULL | |
| correo | varchar(64) | NO | MUL | NULL | |
| activo | enum('s','n') | NO | | s | |
| c
<ul id="product-attributes">
{% for field in product.attributes %}
{% if field.name == "Video" and field.value != "" %}
<li>Video: {{ fiel.value }}</li>
{% else %}
<li class="attribute-{{field.key}}">
<strong>{{ field.name }}:</strong> <span>{{ field.value }}</span>
</li>
{% endif %}
{% endfor %}
/**
* products.html
*
*
*/
<h2>{% navigation_path ' &raquo; ' %}</h2>
{% paginate products by 20 %}
<ul class="products clearfix">
<!-- show latest 5 posts published in blog -->
<div id="latest-news">
<h2>{{ 'titles.latest_news' | t }}</h2>
<ul class="clearfix ticker">
{% for post in blog.posts limit:5 %}
<li>
<h4><a href="{{post.url}}" title="{{post.title}}">{{ post.title }}</a></h4>
</li>
{% endfor %}
</ul>
hg st | grep ^? | awk '{print $2}' | xargs rm
@juque
juque / testing.md
Created August 19, 2012 05:46
Probando

Probando http://gist.io/

Parece que funciona adecuadamente

Creo que esto no me funcionará.

¿Como se verá?

6037 Nuevo Director para Sector Público en Microsoft Chile
24 Nuevo Gerente Comercial en Quintec S.A
5941 Nuevo President and General Manager de Sony Chile
5945 Nuevo Especialista de Ventas de cuentas SMB de HP
2197 Nuevo Gerente General de Gesfor Chile
6292 Nuevo Gerente de Informática en Minepro Chile para América del Sur
2872 Nuevo CEO en MACO
5965 Nuevo socio responsable de Servicios Financieros en Accenture
1905 Nuevo vicepresidente en Dale Garnegie
581 Tráfico en los estudios jurí­dicos