Skip to content

Instantly share code, notes, and snippets.

View ccamara's full-sized avatar

Carlos Cámara ccamara

View GitHub Profile
@ccamara
ccamara / page.tpl.php
Last active August 29, 2015 14:01
matchHeight makes the height of all selected elements exactly equal. #equal-height #jquery See: http://brm.io/jquery-match-height/ for more info
<script src="jquery.matchHeight.js" type="text/javascript"></script>
/*! jQuery v1.7.2 jquery.com | jquery.org/license */
(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorder=ck.width=ck.height=0),b.appendChild(ck);if(!cl||!ck.createElement)cl=(ck.contentWindow||ck.contentDocument).document,cl.write((f.support.boxModel?"<!doctype html>":"")+"<html><body>"),cl.close();d=cl.createElement(a),cl.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ck)}cj[a]=e}return cj[a]}function ct(a,b){var c={};f.each(cp.concat.apply([],cp.slice(0,b)),function(){c[this]=a});return c}function cs(){cq=b}function cr(){setTimeout(cs,0);return cq=f.now()}function ci(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ch(){try{return new a.XMLHttpRequest}catch(b){}}function cb(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j
#!/bin/sh
# Install Command line tools (requires Xcode from app store)
xcode-select --install
# install homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
mkdir ~/bin
mkdir ~/.composer
mkdir -p ~/.vim/swaps
@ccamara
ccamara / behat-step-defintion.yml
Created December 3, 2014 12:09
Behat available step definitions with drupal extension Behat available step definitions with drupal extension
Behat available step definitions with drupal extension
Given /^(?:that I|I) am at "(?P[^"]*)"$/
- Visit a given path, and additionally check for HTTP response code 200.
# FeatureContext::assertAtPath()
When /^I visit "(?P[^"]*)"$/
# FeatureContext::assertVisit()
When /^I click "(?P<link>[^"]*)"$/
@ccamara
ccamara / travis.yml
Created December 21, 2014 11:02
Have Travis CI Install Drupal. Source http://dropbucket.org/node/1761 #CI
language: php
php:
- 5.3
- 5.4
- 5.5
- hhvm
matrix:
allow-failures:
@ccamara
ccamara / mmenu-responsive.js
Last active August 29, 2015 14:13
Insert an external library to your drupal7 theme #mmenu
// We should add our js definition into our theme's js folder.
/**
* @file
* A JavaScript file for the Main Menu Responsive behaviour.
*/
(function ($, Drupal, window, document, undefined) {
"use strict";
// Reset ww value.
@ccamara
ccamara / .inputrc.sh
Last active August 29, 2015 14:16 — forked from rodrigoaguilera/gist:dc3c6d7e1c035e2b45e0
rename file to .inputrc and place it into home folder.
# Make Tab autocomplete regardless of filename case
set completion-ignore-case on
# List all matches in case multiple possible completions are possible
set show-all-if-ambiguous on
# Immediately add a trailing slash when autocompleting symlinks to directories
set mark-symlinked-directories on
# Use the text that has already been typed as the prefix for searching through
@ccamara
ccamara / urbs.csl.xml
Created April 28, 2015 06:52
URBS Revista de Estudios Urbanos y Ciencias Sociales #citation-style for #zotero
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only">
<info>
<title>URBS Journal Style (based on American Psychological Association 5th Edition)</title>
<id>http://www.zotero.org/styles/urbs</id>
<link href="http://www.zotero.org/styles/urbs" rel="self"/>
<link href="http://rdc.libguides.com/content.php?pid=63487" rel="documentation"/>
<author>
<name>Simon Kornblith</name>
<email>[email protected]</email>
@ccamara
ccamara / ediciones-usj.csl.xml
Last active August 29, 2015 14:27
Ediciones Universidad San Jorge #citation-style #zotero. Rename it to remove the xml extension and add it to your Zotero.
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="never">
<!-- This style was edited with the Visual CSL Editor (http://editor.citationstyles.org/visualEditor/) -->
<info>
<title>Ediciones Universidad San Jorge</title>
<title-short>Ediciones USJ</title-short>
<id>http://www.zotero.org/styles/ediciones-universidad-san-jorge</id>
<link rel="self" href="http://www.zotero.org/styles/ediciones-universidad-san-jorge"/>
<author>
<name>Carlos Cámara</name>
@ccamara
ccamara / osm-download.model
Last active June 27, 2016 16:11
Example of non-working QGIS model
{
"values": {
"inputs": {
"STRING_CITY": {
"values": {
"pos": {
"values": {
"y": 22.0,
"x": 120.0
},