Skip to content

Instantly share code, notes, and snippets.

View fernandofuly's full-sized avatar

Fernando Fuly fernandofuly

  • Telefonica/VIVO
  • Curitiba, Brazil
View GitHub Profile
@bishboria
bishboria / springer-free-maths-books.md
Last active June 8, 2024 06:39
Springer made a bunch of books available for free, these were the direct links
@celsofabri
celsofabri / gallery-wordpress.css
Created October 24, 2014 19:59
Galeria WordPress
@celsofabri
celsofabri / loop-for-taxonomy.php
Last active July 30, 2020 00:27
Looping for Taxonomy / Looping para taxonomia
<?php
$taxonomy = 'rota_categoria'; //Choose the taxonomy
$terms = get_terms( $taxonomy ); //Get all the terms
$queried_object = get_queried_object();
$term_slug = $queried_object->slug;
$term_id = $queried_object->term_id;
$term_tax = $queried_object->term_taxonomy_id;
@celsofabri
celsofabri / identify-browser-and-os.php
Last active August 31, 2015 20:56
Identify browser and os / Identifica navegador e sistema operacional
<?php
function mv_browser_body_class($classes) {
global $is_lynx, $is_gecko, $is_IE, $is_opera, $is_NS4, $is_safari, $is_chrome, $is_iphone;
if($is_lynx) $classes[] = 'lynx';
elseif($is_gecko) $classes[] = 'gecko';
elseif($is_opera) $classes[] = 'opera';
elseif($is_NS4) $classes[] = 'ns4';
elseif($is_safari) $classes[] = 'safari';
elseif($is_chrome) $classes[] = 'chrome';
@celsofabri
celsofabri / exclude-pages-search.php
Last active August 29, 2015 14:06
Exclude "pages" in Search of Wordpress / Excluindo "pages" da busca do WordPress
<?php
function SearchFilter($query) {
if ($query->is_search) {
$query->set('post_type', 'post');
}
return $query;
}
add_filter('pre_get_posts','SearchFilter');
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active July 7, 2024 19:32
A badass list of frontend development resources I collected over time.
@claudiosanches
claudiosanches / nav_scroll.js
Created May 10, 2013 13:46
Navegação com scroll
jQuery(document).ready(function($) {
$('#ID-DO-MENU a').on('click', function(e) {
e.preventDefault();
$('html, body').animate({
scrollTop: $(this.hash).offset().top
}, 1500, 'NOME_DO_SEU_EASING');
});
}
@ricardozea
ricardozea / ie67891011-css-hacks.txt
Last active February 2, 2023 15:17
IE CSS hacks - IE6, 7, 8, 9, 10, 11
IE6 Only
==================
_selector {...}
IE6 & IE7
==================
*html or { _property: }
IE7 Only
==================
@vitorbritto
vitorbritto / devlist-bookmarks.md
Last active October 10, 2023 13:49
A BADASS list for faster Web Development! Recently, I decided to organize my bookmarks. So, like a good fellow, I am sharing with you. I hope you enjoy!

Dev List Bookmarks

Attention: the list was moved to https://github.com/vitorbritto/dev-list

This page is not maintained anymore, please update your bookmarks.


Recently, I decided to organize my bookmarks. So, like a good fellow, I am sharing with you. I hope you enjoy!

@jareware
jareware / SCSS.md
Last active July 1, 2024 09:25
Advanced SCSS, or, 16 cool things you may not have known your stylesheets could do

⇐ back to the gist-blog at jrw.fi

Advanced SCSS

Or, 16 cool things you may not have known your stylesheets could do. I'd rather have kept it to a nice round number like 10, but they just kept coming. Sorry.

I've been using SCSS/SASS for most of my styling work since 2009, and I'm a huge fan of Compass (by the great @chriseppstein). It really helped many of us through the darkest cross-browser crap. Even though browsers are increasingly playing nice with CSS, another problem has become very topical: managing the complexity in stylesheets as our in-browser apps get larger and larger. SCSS is an indispensable tool for dealing with this.

This isn't an introduction to the language by a long shot; many things probably won't make sense unless you have some SCSS under your belt already. That said, if you're not yet comfy with the basics, check out the aweso