Skip to content

Instantly share code, notes, and snippets.

@brubrant
brubrant / gist:3015578
Created June 29, 2012 03:50 — forked from luetkemj/wp-query-ref.php
WP: Query $args
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.com
*
* Forked by Brubrant for Backup purposes
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query
* Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php
*/
@brubrant
brubrant / gist:3161278
Created July 22, 2012 22:46 — forked from luetkemj/wp-query-ref.php
WP: Query $args
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.com
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query
* Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php
*/
$args = array(
@brubrant
brubrant / get-sprite.scss
Created July 23, 2012 23:20 — forked from dfadler/get-sprite.sass
A SASS (SCSS) mixin for generating a sprite declaration block that will work with media queries
// http://compass-style.org/reference/compass/helpers/sprites/
@mixin get-sprite($map, $sprite, $repeat: no-repeat, $height: true, $width: true) {
//http://compass-style.org/reference/compass/helpers/sprites/#sprite-file
$sprite-image: sprite-file($map, $sprite);
// http://compass-style.org/reference/compass/helpers/sprites/#sprite-url
$sprite-map: sprite-url($map);
// http://compass-style.org/reference/compass/helpers/sprites/#sprite-position
@brubrant
brubrant / gist:050da6992e8ed89f75a4
Created October 31, 2014 14:12
MongoDB errors (modulus)
Error: failed to connect to [mongo.onmodulus.net:27017]
at null.<anonymous> (/mnt/data/1/node_modules/connect-mongo/node_modules/mongodb/lib/mongodb/connection/server.js:569:74)
at emit (events.js:106:17)
at null.<anonymous> (/mnt/data/1/node_modules/connect-mongo/node_modules/mongodb/lib/mongodb/connection/connection_pool.js:139:15)
at emit (events.js:98:17)
at Socket.<anonymous> (/mnt/data/1/node_modules/connect-mongo/node_modules/mongodb/lib/mongodb/connection/connection.js:475:10)
at Socket.emit (events.js:95:17)
at net.js:440:14
at process._tickCallback (node.js:419:13)
@brubrant
brubrant / setEqualHeight.js
Last active March 18, 2016 01:04
Se equal height for all items.
function igualaAltura (itens) {
var maiorAlura = 0;
$(itens).each(function(index, el) {
$(el).css('height', 'auto');
if ( $(el).height() > maiorAlura ) {
maiorAlura = $(el).height();
@brubrant
brubrant / jetpack-inifnite-scroll-options-and-config.php
Created May 30, 2016 16:33
A lot of configuration of jetpack inifnite scroll settings
<?php
/*------------------------------------*\
Jetpack infinite Scroll Stufff
\*------------------------------------*/
function enable_infinite_scroll_for_blog() {
// General Conditions
add_theme_support( 'infinite-scroll', array(
@brubrant
brubrant / grayscale css
Last active June 30, 2016 20:26 — forked from gedankennebel/gist:a4c9367cda02ad7e826f
CSS grayscale filter (go from grayscale to full color on hover) #css #sethneilson
img:hover {
-webkit-filter: grayscale(0%);
-webkit-transition: .5s ease-in-out;
-moz-filter: grayscale(0%);
-moz-transition: .5s ease-in-out;
-o-filter: grayscale(0%);
-o-transition: .5s ease-in-out;
filter: grayscale(0%);
}

Keybase proof

I hereby claim:

  • I am brubrant on github.
  • I am brubrant (https://keybase.io/brubrant) on keybase.
  • I have a public key whose fingerprint is FDC7 13B0 E085 CCA4 8240 8195 C036 EFD9 38E8 0BB3

To claim this, I am signing this object:

@brubrant
brubrant / config.rb
Created July 22, 2016 22:32 — forked from nathansmith/config.rb
Example config.rb file for Compass
preferred_syntax = :sass
http_path = '/'
css_dir = 'assets/stylesheets'
sass_dir = 'assets/sass'
images_dir = 'assets/images'
javascripts_dir = 'assets/javascripts'
relative_assets = true
line_comments = true
# output_style = :compressed
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.