git config --global color.branch auto
git config --global color.diff auto
git config --global color.interactive auto
git config --global color.status auto
tudo colorido
<?php | |
public function clean_string($string){ | |
// troca palavras com acentos | |
$string = strtr($string, "áàãâéêíóôõúüçÁÀÃÂÉÊÍÓÔÕÚÜÇ ", "aaaaeeiooouucAAAAEEIOOOUUC_"); | |
// converte para caixa baixa | |
$string = strtolower($string); |
function Schonfinkelize(fn){ | |
var slice = Array.prototype.slice; | |
var stored_args = slice.call(arguments, 1); | |
return function (){ | |
var new_args = slice.call(arguments); | |
var args = stored_args.concat(new_args); |
/* | |
Espresso Libre by Mike Reinhardt 2011 | |
based on Espresso Libre - by zolli - | |
http://www.eclipsecolorthemes.org/?view=theme&id=45 | |
Inspired by Ben Truyman's IR_Black translation | |
and Darcy Clarke's blog post: | |
http://darcyclarke.me/design/skin-your-chrome-inspector/ | |
*/ |
/* 'Pulando na tela' */ | |
@keyframes jump-bitch { | |
from { | |
-transform: scale(1.1); | |
z-index: 9999; | |
} | |
to { |
git init # initalize a empty git repo
git status # check modifications in the repo repo
git log # check commits in the git repo
heroku logs # visualize the logs executions of the website
heroku pg:reset SHARED_DATABASE # To drop the database, if using SHARED_DATABASE_URL
* { | |
-webkit-touch-callout:none; /* prevent callout to copy image, etc when tap to hold */ | |
-webkit-text-size-adjust:none; /* prevent webkit from resizing text to fit */ | |
-webkit-tap-highlight-color:rgba(0,0,0,0); /* prevent tap highlight color / shadow */ | |
-webkit-user-select:none; /* prevent copy paste, to allow, change 'none' to 'text' */ | |
} | |
// or to use on specific template add a class on body | |
// <body class="mobile-higlight-off"> | |
// <!-- html stuff --> |
Primeiro va em config/application.rb
e procure a linha com:
config.i18n.default_locale = xxxxx
e mude para
config.i18n.default_locale = 'pt-BR'
baixe o arquivo de tradução em: https://github.com/svenfuchs/rails-i18n/blob/master/rails/locale/pt-BR.yml
deixe o nome do arquivo como pt-BR.yml
e o coloque em config/locales
.
var yourApp = angular.module('yourApp', []); | |
// fix 1 | |
$(document).on('ready page:load', function(){ | |
angular.bootstrap(document.body, ['yourApp']); | |
}); | |
// or |