This file contains 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 | |
class AppController extends Controller { | |
public $components = array('Session', 'Acl', 'Auth'); | |
public function beforeFilter() { | |
// Mecanismo de autenticação | |
$this->Auth->authenticate = array('Blowfish' => array( |
This file contains 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 echo 'Primeira mensagem vista por um novo programador'; ?> | |
<?php print 'Primeira mensagem vista por um novo programador'; ?> | |
<?php | |
// → para comentários de apenas uma linha | |
/* */ → para cometários com várias linhas | |
/** */ → para comentários a nível de documentação | |
# → estilo shell para cometários em uma linha somente | |
(existem configurações que não aceitam este tipo de comentário) |
This file contains 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 echo $this->Html->script('vendor/jquery-1.9.0.min'); ?> | |
<div class="row"> | |
<div class="span12"> | |
<br/> | |
<ul class="breadcrumb"> | |
<li><?php echo $this->Html->link('Página Inicial', '/'); ?> | |
<span class="divider">></span> | |
</li> | |
<li class="active">Compras |
This file contains 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 | |
class Clientes { | |
public function upload_arquivo() { | |
if ( !empty($_FILES['arquivo']['tmp_name']) ) { | |
$status = true; | |
This file contains 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 | |
// app/Config/database.php | |
public $wordpress = array( | |
'datasource' => 'Database/Mysql', | |
'persistent' => false, | |
'host' => 'localhost', | |
'login' => 'root', | |
'password' => 'root', |
This file contains 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
class RequestPost { | |
public Boolean isJson(String str) { | |
try { | |
new JSONObject(str); | |
} catch (JSONException ex) { |
This file contains 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
// | |
// ViewController.swift | |
// apirequest | |
// | |
// Created by Andre Cardoso on 9/24/15. | |
// | |
import UIKit | |
import Foundation |
This file contains 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 UIKit | |
import MobileCoreServices | |
class ViewController: UIViewController, UINavigationControllerDelegate, UIImagePickerControllerDelegate { | |
@IBOutlet weak var imgView: UIImageView! | |
var newMedia: Bool? | |
This file contains 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
# Ativando compactação | |
<FilesMatch ".(js|css|html|htm|php|xml)$"> | |
SetOutputFilter DEFLATE | |
</FilesMatch> | |
# Ativando cache no browser | |
<IfModule mod_expires.c> | |
ExpiresActive on |
This file contains 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 | |
echo 'Teste pela extensão gistnote do Gnome Shell'; |