Skip to content

Instantly share code, notes, and snippets.

View mateusreis's full-sized avatar

Mateus Reis mateusreis

View GitHub Profile
@mixin gradient($from, $to) {
/* fallback/image non-cover color */
background-color: $from;
/* Firefox 3.6+ */
background-image: -moz-linear-gradient($from, $to);
/* Safari 4+, Chrome 1+ */
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from($from), to($to));
@mateusreis
mateusreis / gist:4692830
Last active December 12, 2015 01:39
.Guardfile
# https://github.com/guard/guard-livereload
guard :livereload do
watch(%r{.+\.(css|scss|js|htm|htm|html|php)$})
end
@mateusreis
mateusreis / form.css
Created January 30, 2013 19:19
formy-css-framework - Formy - CSS Form Framework (http://code.google.com/p/formy-css-framework/)
/* Formy - CSS Framework 0.8 */
/*
reset.css
*/
fieldset, form, label, legend
{ margin:0;padding:0;border:0;font-weight:inherit;font-style:inherit;font-size:100%;font-family:inherit;vertical-align:baseline; }
/*
@mateusreis
mateusreis / bashrc
Created January 30, 2013 13:40
bashrc // ubuntu
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
source /usr/local/bin/virtualenvwrapper.sh
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@mateusreis
mateusreis / index_smartphone.html
Last active December 11, 2015 22:58
Smartphone blank template.
<!DOCTYPE html>
<!--[if IEMobile 7 ]> <html class="no-js iem7"> <![endif]-->
<!--[if (gt IEMobile 7)|!(IEMobile)]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<title> Page title </title>
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
<meta http-equiv="cleartype" content="on">

Sublime Text 2 – Useful Shortcuts (Ubuntu)

General

Ctrl+KB toggle side bar
Ctrl+Shift+P command palette
Ctrl+` python console
Ctrl+N new file

Editing

@mateusreis
mateusreis / gist:4561146
Created January 18, 2013 00:13
Wordpress display number of queries
function wpshow_footer_queries(){
echo '<!-- Queries: '.get_num_queries().' in '.timer_stop(0).' seconds. -->'.PHP_EOL;
}
add_action('wp_footer', 'wpshow_footer_queries');
# This is a template .gitignore file for git-managed WordPress projects.
#
# Fact: you don't want WordPress core files, or your server-specific
# configuration files etc., in your project's repository. You just don't.
#
# Solution: stick this file up your repository root (which it assumes is
# also the WordPress root directory) and add exceptions for any plugins,
# themes, and other directories that should be under version control.
#
# See the comments below for more info on how to add exceptions for your
<?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(
@mateusreis
mateusreis / tssidiomas_guatemala-pricing-table.html
Last active December 11, 2015 03:58
pricing table - tssidiomas_guatemala
<!-- linea movil content -->
<div class="content-tabs-paquetes" id="clientes-movil">
<table class="tbl-paquetes five-paquetes">
<thead>
<tr class="tit-single">
<th colspan="5">
<span>c</span>
</th>
</tr>
</thead>