Skip to content

Instantly share code, notes, and snippets.

View devloe's full-sized avatar

Juan Pablo Lozano devloe

View GitHub Profile
@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)){
?>
@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 / 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.'#%"');
<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]?>">
<? } ?>
<?
$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>
<? } ?>
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();
@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());
05-07 23:06:27.920 1239-1239/com.devyanlab.qomento E/OpenGLRenderer﹕ Getting MAX_TEXTURE_SIZE from GradienCache
05-07 23:06:27.924 1239-1239/com.devyanlab.qomento E/OpenGLRenderer﹕ Getting MAX_TEXTURE_SIZE from Caches::initConstraints()
05-07 23:06:38.944 1239-1239/com.devyanlab.qomento E/AndroidRuntime﹕ FATAL EXCEPTION: main
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.devyanlab.qomento/com.devyanlab.qomento.SignupActivity}: android.view.InflateException: Binary XML file line #61: Error inflating class de.hdodenhof.circleimageview.CircleImageView
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2211)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
at android.app.ActivityThread.access$600(ActivityThread.java:141)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.
@devloe
devloe / gist:182488903a5c2b63d87b
Last active June 4, 2023 17:40
Ejemplo básico de CRUD en Laravel
<?php
// Tenemos un objeto producto en la base de datos
class Product extends Eloquent
{
protected $table = 'products';
}
class BaseController extends Controller{
@devloe
devloe / BLdqH.markdown
Created August 22, 2014 16:38
Natural form killer.