Skip to content

Instantly share code, notes, and snippets.

View devloe's full-sized avatar

Juan Pablo Lozano devloe

View GitHub Profile
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://fedex.com/ws/ship/v17">
<SOAP-ENV:Body>
<ns1:ProcessShipmentRequest>
<ns1:WebAuthenticationDetail>
<ns1:ParentCredential>
<ns1:Key>E3naToZ4L9zjveIg</ns1:Key>
<ns1:Password>9wL3VkpHgFtqLpa99eVN33b18</ns1:Password>
</ns1:ParentCredential>
<ns1:UserCredential>
<ns1:Key>E3naToZ4L9zjveIg</ns1:Key>
<?php
array(5) {
["WebAuthenticationDetail"] array(1) {
["UserCredential"] array(2) {
["Key"] "E3naToZ4L9zjveIg"
["Password"] "ifyFeqYnrE3zjbjeT882dSMqS"
}
}
["ClientDetail"] array(2) {
@devloe
devloe / acitvity
Last active December 30, 2015 00:28
videoAdapter = new VideoAdapter(this, videoItems);
listView.setAdapter(videoAdapter);
listView.setOnItemClickListener(new android.widget.AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> av, View v, int position,
long id) {
VideoModel data = (VideoModel) listView.getItemAtPosition(position);
data.start = true;
videoAdapter.notifyDataSetChanged();
//VideoLayout view = (VideoLayout) listView.getChildAt(position - listView.getFirstVisiblePosition());
public static void connect(String url)
{
HttpClient httpclient = new DefaultHttpClient();
HttpGet httpget = new HttpGet("http://192.168.1.36/breves/_beta/public/" + url);
HttpResponse response;
try {
response = httpclient.execute(httpget);
HttpEntity entity = response.getEntity();
if (entity != null) {
InputStream instream = entity.getContent();
<?
$SQL_query_init = mysql_query('select * from ' . TBL_IMGEMPREN . ' where `id_em` = "'.$idparent.'" and `area` = "mini_estado" and `estado` = "general" ');
while($campi = mysql_fetch_array($SQL_query_init)) { ?>
<a href="../data/emprendimientos/<?=$campi['area']?>/<?=$campi['archivo_nombre']?>" class="fancybox">
<img src="../data/emprendimientos/<?=$campi['area']?>/<?=$campi['archivo_nombre']?>">
</a>
<? } ?>
<div class="wrapper">
<ul class="banners_home">
<?
$banner_query = mysql_query('select id,`title_'.$lc.'`,`content_'.$lc.'`,`image_'.$lc.'`,`link_'.$lc.'`,`type` from ' . TBL_BANNERS .' where `situation`=2 and `status`=1 order by `order` ASC');
while($banner = mysql_fetch_array($banner_query)){
if($banner['link_'.$lc] != '') { ?>
<? if($banner['type'] == 1) { $target = 'target="_blank"'; } else { $target = 'target="_self"'; } ?>
<li>
<a href="<?=$banner['link_'.$lc]?>">
<? } ?>
@devloe
devloe / hola
Created March 27, 2013 16:22 — forked from anonymous/hola
<table cellspacing="0" class="table" style="margin-left:5px;">
<tr>
<th>Adjuntos</th>
<th></th>
</tr>
<tr>
<td>
<br />
<?
$SQL_query_init = mysql_query('select `archivo_nombre`,`id` from ' . TBL_FILE . ' where `cliente` like "%#'.$idclient.'#%"');
[
{
"title": "Cada día sabemos más y entendemos menos.",
"author": "Albert Einstein"
}, {
"title": "Hemos averiguado que vivimos en un insignificante planeta de una triste estrella perdida en una galaxia metida en una esquina olvidada de un universo en el que hay muchas más galaxias que personas.",
"author": "Carl Sagan"
}, {
"title": "Si estamos solos en el Universo, seguro sería una terrible pérdida de espacio.",
"author": "Albert Einstein"
@devloe
devloe / index.php
Created September 22, 2012 22:58 — forked from anonymous/index.php
<div id="main">
<?php foreach($programacion->dias as $i => $nombre){ ?>
<?=$nombre?>
<table class="listado">
<tr>
<th>Nombre</th>
<th>Horario</th>
<th>Integrantes</th>
<th>Dia</th>
@devloe
devloe / index.php
Created September 22, 2012 22:34 — forked from anonymous/index.php
<div id="main">
<?php foreach($programacion->dias as $i => $nombre){ ?>
<div class="todos">
<?=$nombre?>
<table class="listado">
<?php
$listado = $programacion->listar($i);
while($row = mysql_fetch_assoc($listado)){
?>