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 | |
class Usuario { | |
public function login($email, $senha){ | |
# faz login | |
} | |
} |
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
public function csv(){ | |
if( isset($_POST['enviar_csv']) && count($_FILES['userfile']['name']) > 0 ){ | |
// ... | |
$file = $_FILES['userfile']['tmp_name']; | |
$handle = fopen($file, "r"); | |
$data = []; | |
// Loop through the csv file and insert into database | |
do { | |
if ( isset($data[0]) ) { |
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 defined('BASEPATH') OR exit('No direct script access allowed'); | |
class Cripto extends CI_Controller { | |
public function __construct(){ | |
parent::__construct(); | |
} | |
/** | |
* Buscando criptomedas ... |
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 | |
/** | |
* CodeIgniter | |
* | |
* An open source application development framework for PHP | |
* | |
* This content is released under the MIT License (MIT) | |
* | |
* Copyright (c) 2014 - 2017, British Columbia Institute of Technology | |
* |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
</head> | |
<body> | |
<table border="1" width="100%"> | |
<thead> | |
<tr> | |
<th>Name</th> |
This file has been truncated, but you can view the full file.
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
function setCookie(a, b, c) { | |
var d = new Date; | |
d.setTime(d.getTime() + 24 * c * 60 * 60 * 1e3); | |
var e = "expires=" + d.toUTCString(); | |
document.cookie = a + "=" + b + ";" + e + ";path=/" | |
} | |
function getCookie(a) { | |
for (var b = a + "=", c = document.cookie.split(";"), d = 0; d < c.length; d++) { | |
for (var e = c[d]; |
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
$(document).on("change", "#VERACEL_CAD_EMP_ID", function(){ | |
$('#VERACEL_CAD_PESQUISADOR_ID option').each(function(index, val) { | |
console.log($(this).val()); | |
}); | |
}); | |
$("#VERACEL_CAD_EMP_ID").trigger("change"); |
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 | |
setlocale(LC_ALL, 'pt_BR.UTF8'); | |
function toAscii($str, $options = array()) { | |
// Make sure string is in UTF-8 and strip invalid UTF-8 characters | |
$str = mb_convert_encoding((string)$str, 'UTF-8', mb_list_encodings()); | |
$defaults = array( |
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
let idpergunta_ = "" | |
let compactArray = [] | |
for(let i = 0; i < arr.length; i++) | |
{ | |
let idpergunta_ = arr[i].idpergunta; | |
if(idpergunta_ != undefined && idpergunta_ != null) | |
{ | |
if(idpergunta_ == idpergunta) | |
{ | |
console.log("Achei") |
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
arr = [ | |
[48, 683, 18110], | |
[48, 683, 18111], | |
[48, 683, 18109], | |
[48, 683, 18108], | |
[48, 683, 18113], | |
[48, 684, 18114], | |
[48, 685, 18115], | |
] |