Skip to content

Instantly share code, notes, and snippets.

View Anderson-Juhasc's full-sized avatar

Anderson Juhasc Anderson-Juhasc

View GitHub Profile
<!DOCTYPE HTML>
<!--[if lt IE 7 ]> <html lang="pt-BR" class="no-js ie6"> <![endif]-->
<!--[if IE 7 ]> <html lang="pt-BR" class="no-js ie7"> <![endif]-->
<!--[if IE 8 ]> <html lang="pt-BR" class="no-js ie8"> <![endif]-->
<!--[if IE 9 ]> <html lang="pt-BR" class="no-js ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="pt-BR" class="no-js"> <!--<![endif]-->
<head>
<!--[if IE]><![endif]-->
<!-- begin Metas -->
@Anderson-Juhasc
Anderson-Juhasc / min-height.css
Created October 21, 2010 21:18
Cross-Browser Min Height
div {
min-height: 500px;
height:auto !important;
height: 500px;
}
@Anderson-Juhasc
Anderson-Juhasc / fbCSSCuston.html
Created September 16, 2011 22:30
Facebook Like-Box Custom CSS
<script type="text/javascript" src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php/en_US"></script>
<script type="text/javascript">FB.init("");</script>
<fb:fan profile_id="[YOUR_ID]" stream="0" connections="10" width="300px" height="200px" header="0" logobar="0" css="[CSS_URL]"></fb:fan>
@Anderson-Juhasc
Anderson-Juhasc / .vimrc
Created September 22, 2011 16:10
Usar VIM com zen-coding em arquivos .less
autocmd BufRead,BufNewFile *.less set filetype=css
@Anderson-Juhasc
Anderson-Juhasc / remove_git
Created September 22, 2011 18:50
Remove Deleted Files From Git
for i in `git status | grep deleted | awk '{print $3}'`; do git rm $i; done
@Anderson-Juhasc
Anderson-Juhasc / style.less
Created November 17, 2011 13:12
Meu Padrão para iniciar o uso do less
/* HTML5 ✰ Boilerplate
* ==|== normalize ==========================================================
*/
article, aside, details, figcaption, figure, footer, header, hgroup, nav, section { display: block; }
audio, canvas, video { display: inline-block; *display: inline; *zoom: 1; }
audio:not([controls]) { display: none; }
[hidden] { display: none; }
@Anderson-Juhasc
Anderson-Juhasc / vim-auto-compile-less
Created December 5, 2011 11:06
Auto compile lesscss with VIM
" Less compile
autocmd FileWritePost,BufWritePost *.less :call LessCSSCompress()
function! LessCSSCompress()
let cwd = expand('<afile>:p:h')
let name = expand('<afile>:t:r')
if (executable('lessc'))
cal system('lessc '.cwd.'/'.name.'.less > '.cwd.'/'.name.'.css &')
endif
endfunction
@Anderson-Juhasc
Anderson-Juhasc / gist:2158167
Created March 22, 2012 12:57
Add like button
<script src="http://connect.facebook.net/pt_BR/all.js#xfbml=1" type="text/javascript"></script>
<fb:like href="{Permalink}" layout="button_count" send="false" show_faces="false" font="arial" action="like" colorscheme="light"></fb:like>
@Anderson-Juhasc
Anderson-Juhasc / 0_selector_hacks.scss
Created June 2, 2012 15:49 — forked from chriseppstein/0_selector_hacks.scss
This gist demonstrates some uses of the new sass feature: Passing content blocks to mixins.
@mixin ie6 { * html & { @content } }
#logo {
background-image: url("/images/logo.png");
@include ie6 { background-image: url("/images/logo.gif"); }
}
@Anderson-Juhasc
Anderson-Juhasc / arrows.scss
Created June 8, 2012 21:58 — forked from bpainter/arrows.scss
Sass mixin for arrows based on The Shapes of CSS from Chris Coyier http://css-tricks.com/examples/ShapesOfCSS/
// --------------------------------------------------------
// arrows
// --------------------------------------------------------
// $direction: top, left, right, bottom, top-left, top-right, bottom-left, bottom-right
// $color: hex, rgb or rbga
// $size: px or em
// @example
// .element{
// @include arrow(top, #000, 50px);
// }