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 | |
namespace App\Controller; | |
use App\Controller\AppController; | |
use Cake\Network\Email\Email; | |
/** | |
* Users Controller | |
* | |
* @property \App\Model\Table\UsersTable $Users |
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
<div class="form-group"> | |
<label for="only-date">Data Emissão</label> | |
<div class="input-group date" id="dataEmissao"> | |
<input type="text" class="form-control" placeholder="Informe a data de emissão" name="dataEmissao"> | |
<span class="input-group-addon"> | |
<span class="fluigicon fluigicon-calendar"></span> | |
</span> | |
</div> | |
</div> |
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
var agencia = '0189' | |
var conta = '01017417' | |
var dig = 9 | |
var retorno = validaSantander(agencia,conta,dig); | |
console.log(retorno); | |
function validaSantander(agencia, conta, digito){ |
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 | |
namespace safed\Traits; | |
Trait DataTablesTrait{ | |
/** | |
* receices the model collection with records and return a json needed for the datatable | |
* receives de name of the Controller to generate correct URLs | |
* receives the customfields (for relations) that you want to return with the json |
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
<div class="table-responsive"> | |
<table class="table table-bordered table-striped table-responsive" id="table" cellpadding="0" cellspacing="0" width="100%"> | |
<thead> | |
<tr> | |
<th>Nome</th> | |
<th>Telefone</th> | |
<th>Celular</th> | |
<th>Data Nascimento</th> | |
<th>Ações</th> | |
</tr> |
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 | |
/** | |
* retorna uma variavel de ambiente do arquivo .env | |
* | |
* @param [type] $var | |
* @return string | |
*/ | |
function env($var) | |
{ |
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
var gulp = require('gulp'); | |
var uglify = require('gulp-uglify'); | |
var cssnano = require('gulp-cssnano'); | |
var copy = require('gulp-copy'); | |
gulp.task('minify-js', function () { | |
gulp.src('webroot/src/js/**/*.js') | |
.pipe(uglify()) | |
.pipe(gulp.dest('webroot/js')); |
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 | |
function resolveTemplate($template,$data){ | |
// search pattern | |
$pattern = '/{{([^}]+)}}/'; | |
$callback = function ($match) use($data){ | |
//var_dump($matches); | |
$string = trim($match[1]); |
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
@extends('template') | |
@section('content') | |
<head> | |
<script type="text/javascript"> | |
$(document).ready(function() | |
{ | |
$("#valor").maskMoney({ | |
prefix: "R$: ", | |
decimal: ",", |
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 | |
use Illuminate\Support\Facades\Auth; | |
use Illuminate\Support\Facades\DB; | |
use App\User; | |
use Illuminate\Foundation\Testing\WithoutMiddleware; | |
use Illuminate\Foundation\Testing\DatabaseMigrations; | |
use Illuminate\Foundation\Testing\DatabaseTransactions; |
NewerOlder