Skip to content

Instantly share code, notes, and snippets.

View lluisgerard's full-sized avatar
:octocat:
Always shipping

Lluis Gerard lluisgerard

:octocat:
Always shipping
View GitHub Profile
@lluisgerard
lluisgerard / gist:8422427
Created January 14, 2014 17:41
iOS :: Know if a device is capable of doing iOS7 blur effect (using UIToolBar hack) Using: https://github.com/lmirosevic/GBDeviceInfo
+ (BOOL)allowsBlurEffect {
// I assume that any device that is not checked here is newer and therefore is "blur" capable
static BOOL isAllowed = YES;
static BOOL isChecked = NO;
if (!isChecked) {
isChecked = YES;
@lluisgerard
lluisgerard / dabblet.css
Created July 13, 2012 10:30 — forked from rginamt/dabblet.css
Center lists
/**
* Center lists
*/
div {
width: 100%;
overflow:hidden;
position:relative;
}
div ul {
@lluisgerard
lluisgerard / gist:1316084
Created October 26, 2011 11:29
archive.php | Wordpress theme file part | Show just one category (parent category alone, or child categories alone)
<?php $cat_obj = $wp_query->get_queried_object(); ?>
<?php
if( $cat_obj->parent ) {
// CATEGORIA FILL / Child category only
while ( have_posts() ) : the_post(); ?>
<?php include('post.php'); ?>
<?php endwhile; ?>