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 / GA.html
Created May 23, 2012 13:16
Código do Google Analytics
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '#############']); // ID do site
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
@thallisphp
thallisphp / Meses e Dias - Array.php
Last active September 21, 2023 15:45
Array com nomes dos meses e dias da semana em português do Brasil
<?php
$meses = array(
1 => 'Janeiro',
'Fevereiro',
'Março',
'Abril',
'Maio',
'Junho',
'Julho',
@thallisphp
thallisphp / gist.php
Created June 28, 2013 20:36
Redireconamento VilaNobre
<?php
// Abra o arquivo verifica_endereco.php e adicione o código abaixo após o <?php
switch($_SERVER['HTTP_HOST']){
case 'www.vilanobredecor.com.br':
case 'vilanobredecor.com.br':
header('Location: http://vilanobreiluminacao.com.br/');
exit;
}
¯\(ºдಠ)/¯
٩(ಥ_ಥ)۶
ఠ_ఠ
ಠ¿ಠi
ಠ‿ಠ
ಠ▃ಠ
ಠ益ಠ
ಠ益ಠ
ಠ︵ಠ凸
ಠ_ಠ
@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'
@thallisphp
thallisphp / utilidades.bat
Created July 16, 2013 13:34
Coffee - Utilidades
bower install jquery
bower install jQuery-Mask-Plugin
@thallisphp
thallisphp / links.txt
Created September 4, 2013 15:32
Geradores de Ícones para iOS
@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 / 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
<?php //app/libraries/MultiUserProvider.php
use Illuminate\Auth\UserProviderInterface,
Illuminate\Auth\UserInterface,
Illuminate\Auth\GenericUser;
class MultiUserProvider implements UserProviderInterface {
protected $providers;