Skip to content

Instantly share code, notes, and snippets.

@ambrosiora
ambrosiora / index.html
Last active September 4, 2015 12:02 — forked from caionitro/index.html
Swipe com Slick, usando slider com multi gestos.
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="./slick/slick/slick.css"/>
<link rel="stylesheet" type="text/css" href="./slick/slick/slick-theme.css"/>
<title></title>
<style type="text/css">
.tamanho{
font-size: 35px;
border: solid 1px black;
@ambrosiora
ambrosiora / CustomTheme
Created March 30, 2016 01:19 — forked from mhartington/CustomTheme
If you want to make a custom theme for ionic, and are using scss, this is a base to get you started
//Custom Theme test
// Colors
// -------------------------------
$custom: #057b6c !default;
// Buttons
// -------------------------------
$button-custom-bg: $custom !default;
@ambrosiora
ambrosiora / getSelectedText.html
Last active February 19, 2019 19:15
Texto selecionado na página
<!DOCTYPE html>
<html>
<head>
<title>teste</title>
</head>
<body>
<p id="paragrafo">
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
</p>
</body>
function scroll(speed) {
$('html').animate({ scrollTop: $(document).height() - $(window).height() }, speed, function() {
window.print();
});
}
$(document).ready(function(){
scroll(2000);
});
$(document).ready(function() {
initHighlights();
});
var currentAnchor = null;
var tooltipPointerPositions = {
left: 46,
width: 14
};
<?php
namespace App;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Tymon\JWTAuth\Contracts\JWTSubject;
use Illuminate\Database\Eloquent\Model;
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class PapelUsuario extends Model
{
protected $table = 'papel_usuarios';
public function users()
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Sistema extends Model
{
public function users()
{
/var/www/html/app/Http/Controllers/AuthController.php:55:
array (size=2)
0 =>
array (size=9)
'id' => int 1
'slug' => string 'accounts' (length=8)
'nome' => string 'Eadstock Accounts' (length=17)
'descricao' => string 'Gerenciador de contas de usuários' (length=34)
'subdominio' => string 'accounts.eadstock.com.br' (length=24)
'ativo' => int 1
/var/www/html/app/Http/Controllers/AuthController.php:55:
array (size=8)
'id' => int 1
'nome' => string 'usuário teste' (length=14)
'email' => string 'uteste@gmail.com' (length=16)
'ativo' => int 1
'created_at' => string '2020-02-05 14:54:44' (length=19)
'updated_at' => string '2020-02-05 14:54:44' (length=19)
'sistemas' =>
array (size=2)