Skip to content

Instantly share code, notes, and snippets.

View fabiancarlos's full-sized avatar
🚀
Go!

Fabian Carlos fabiancarlos

🚀
Go!
View GitHub Profile
@fabiancarlos
fabiancarlos / clean_string_file.php
Created August 31, 2012 23:11
Limpa Strings para arquivos
<?php
public function clean_string($string){
// troca palavras com acentos
$string = strtr($string, "áàãâéêíóôõúüçÁÀÃÂÉÊÍÓÔÕÚÜÇ ", "aaaaeeiooouucAAAAEEIOOOUUC_");
// converte para caixa baixa
$string = strtolower($string);
@fabiancarlos
fabiancarlos / schofinkelize.js
Created October 7, 2012 21:18
Currying Examples
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);
@fabiancarlos
fabiancarlos / espresso_libre.css
Created October 17, 2012 00:55 — forked from mreinhardt/espresso_libre.css
Espresso Libre CSS translation for Chrome Inspector
/*
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/
*/
@fabiancarlos
fabiancarlos / git_ex_custom.md
Created October 26, 2012 02:32
Git Essential Customization

Ativar coloração do que interessa

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

@fabiancarlos
fabiancarlos / css3_tricks.css
Created October 27, 2012 22:56
CSS3 Tricks and Tricks
/* 'Pulando na tela' */
@keyframes jump-bitch {
from {
-transform: scale(1.1);
z-index: 9999;
}
to {
@fabiancarlos
fabiancarlos / git_ex_comands.md
Last active October 12, 2015 05:27
Git Essential Comands
git init # initalize a empty git repo
git status # check modifications in the repo repo
git log # check commits in the git repo
@fabiancarlos
fabiancarlos / heroku_ex_comands.md
Created October 31, 2012 15:01
Heroku Essential Comands
heroku logs # visualize the logs executions of the website
heroku pg:reset SHARED_DATABASE # To drop the database, if using SHARED_DATABASE_URL
@fabiancarlos
fabiancarlos / style.css
Last active January 2, 2016 15:49 — forked from mwbrooks/style.css
* {
-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 -->
@fabiancarlos
fabiancarlos / rails_locale.md
Created January 12, 2014 18:29
Rails tradução para pt-BR
@fabiancarlos
fabiancarlos / rails4_angularjs.js
Created February 7, 2014 18:56
Rails 4 w/t AngularJS, fix to use with turbolinks
var yourApp = angular.module('yourApp', []);
// fix 1
$(document).on('ready page:load', function(){
angular.bootstrap(document.body, ['yourApp']);
});
// or