Skip to content

Instantly share code, notes, and snippets.

View thallisphp's full-sized avatar
⚒️
Developing with Laravel for Doc88

Thallis Ferreira Soares Casemiro thallisphp

⚒️
Developing with Laravel for Doc88
  • Doc88
  • São Paulo
View GitHub Profile
@thallisphp
thallisphp / exemplo.php
Last active May 17, 2023 18:55
PHP - Enum com descrição por atributo - Enum with description by attribute
<?php
#[Attribute(Attribute::TARGET_CLASS_CONSTANT)]
readonly class Descricao
{
public function __construct(
public string $descricao,
)
{
}
{"cor":"#FC0"}
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/home/thallis/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
UPDATE `tabela`
SET `data`= DATE_FORMAT(STR_TO_DATE(`data`, '%d/%m/%Y'), '%Y-%m-%d')
<?php //app/libraries/MultiUserProvider.php
use Illuminate\Auth\UserProviderInterface,
Illuminate\Auth\UserInterface,
Illuminate\Auth\GenericUser;
class MultiUserProvider implements UserProviderInterface {
protected $providers;
@thallisphp
thallisphp / teste.coffee
Created January 10, 2014 16:43
Exemplo de controller AngularJS com dependências
Controller = (scope, location) ->
dependencias = [
'scope'
'location'
Controller
]
App.controller dependencias
@thallisphp
thallisphp / mixins.less
Last active December 22, 2015 09:18
Less Mixins
//noinspection CssUnknownProperty
.gradient(@color: #F5F5F5, @start: #EEE, @stop: #FFF) {
background: @color;
background: -webkit-gradient(linear, left bottom, left top, color-stop(0, @start), color-stop(1, @stop));
background: -ms-linear-gradient(bottom, @start, @stop);
background: -moz-linear-gradient(center bottom, @start 0%, @stop 100%);
background: -o-linear-gradient(@stop, @start);
filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",@stop,@start));
}
@thallisphp
thallisphp / links.txt
Created September 4, 2013 15:32
Geradores de Ícones para iOS
@thallisphp
thallisphp / utilidades.bat
Created July 16, 2013 13:34
Coffee - Utilidades
bower install jquery
bower install jQuery-Mask-Plugin
@thallisphp
thallisphp / mascara.coffee
Created July 8, 2013 20:16
Máscara de telefones com opção de dígito adicional
###
Plugin : https://github.com/igorescobar/jQuery-Mask-Plugin/
bower install jQuery-Mask-Plugin
components/jQuery-Mask-Plugin/jquery.mask.min.js
###
campos = jQuery '.mascara_telefone, #telefone, #celular'