Skip to content

Instantly share code, notes, and snippets.

View pedroelsner's full-sized avatar

Pedro R. Elsner Begosso pedroelsner

View GitHub Profile
@pedroelsner
pedroelsner / gist:3697907
Created September 11, 2012 12:02
#5 - Entendendo Join, Keep e Concatenate
Inner Join (Tabela1)
LOAD
Chave,
C
Resident Tabela2;
@pedroelsner
pedroelsner / gist:3697884
Created September 11, 2012 11:59
#4 - Entendendo Join, Keep e Concatenate
Right Join (Tabela1)
LOAD
Chave,
C
Resident Tabela2;
@pedroelsner
pedroelsner / gist:3697857
Created September 11, 2012 11:55
#3 - Entendendo Join, Keep e Concatenate
Left Join (Tabela1)
LOAD
Chave,
C
Resident Tabela2;
@pedroelsner
pedroelsner / gist:3697806
Created September 11, 2012 11:45
#2 - Entendendo Join, Keep e Concatenate
Outer Join (Tabela1)
LOAD
Chave,
C
Resident Tabela2;
@pedroelsner
pedroelsner / gist:3693440
Created September 10, 2012 19:57
#1 - Entendendo Join, Keep e Concatenate
Tabela1:
LOAD * INLINE [
Chave, A
1, A1
2, A2
3, A3
];
Tabela2:
LOAD * INLINE [
@pedroelsner
pedroelsner / gist:3481701
Created August 26, 2012 17:07
#3 - Full Breadcrumb
<?php
if (function_exists('show_full_breadcrumb')) show_full_breadcrumb(
array(
'labels' => array(
'local' => __('Voc&ecirc; est&aacute; aqui:'), // set FALSE to hide
'home' => __('In&iacute;cio'),
'page' => __('P&aacute;gina'),
'tag' => __('Etiqueta'),
'search' => __('Buscando'),
'author' => __('Publicado por'),
@pedroelsner
pedroelsner / gist:3481629
Created August 26, 2012 16:54
#2 - Full Breadcrumb
<?php
if (function_exists('show_full_breadcrumb')) show_full_breadcrumb(
array(
'labels' => array(
'local' => __('You are here:'), // set FALSE to hide
'home' => __('Home'),
'page' => __('Page'),
'tag' => __('Tag'),
'search' => __('Searching for'),
'author' => __('Published by'),
@pedroelsner
pedroelsner / gist:3481591
Created August 26, 2012 16:47
#1 - Full Breadcrumb
<?php
show_full_breadcrumb(
array(
'separator' => array(
'content' => '&raquo;'
),
'home' => array(
'showLink' => false
)
)
@pedroelsner
pedroelsner / gist:3435657
Created August 23, 2012 11:12
.htaccess - Tiago Lins
<IfModule mod_rewrite.c>
RewriteEngine On
Options +FollowSymlinks
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) /v2/$1 [QSA,L]
</IfModule>
<?php
class PostsController extends AppController {
public function my_action() {
$this->render('custom_file');
}
}
?>