This file contains hidden or 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 if (!defined('BASEPATH')) exit('No direct script access allowed'); | |
class MY_Loader extends CI_Loader { | |
public $layout = "application"; | |
function MY_Loader() { | |
parent::CI_Loader(); | |
} | |
function setLayout($layout) { |
This file contains hidden or 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
# CAPITULO 5 - http://why.nomedojogo.com/chapter-5.html | |
# 5. O Roubo do Capitão Loteria | |
# OBS: Alguém poderia me explicar? | |
########################################################################################################## | |
elsif numeros_escolhidos.detect { |p| not INTERVALO_NUMERICO === p } | |
raise ArgumentError, "os três escolhidos devem ser números entre 1 e 25." | |
end | |
# Dúvida: o que o .detect faz? e como eu leria esse trecho de código? { |p| not INTERVALO_NUMERICO === p } |
This file contains hidden or 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
$lumineConfig["host"] = ""; | |
$lumineConfig["user"] = ""; | |
$lumineConfig["password"] = ""; | |
$lumineConfig["database"] = ""; | |
$lumineConfig["dialect"] = "MySQL"; | |
$lumineConfig["port"] = "3306"; | |
$lumineConfig["class_path"] = APPPATH; | |
$lumineConfig["package"] = "models"; | |
$lumineConfig["options"]["schema_name"] = ""; |
This file contains hidden or 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 if (!defined('BASEPATH')) exit('No direct script access allowed'); | |
require_once("Lumine.php"); | |
/** | |
* Generates object of the configuration of lumine | |
NewerOlder