Skip to content

Instantly share code, notes, and snippets.


Vicente vicentereig

View GitHub Profile

             🚀 ☁️ ☁️ ☀️ ☁️ ☁️       SHEEP EAT

vicentereig /
Created Nov 26, 2014

Cancel XHR Requests in Ember Data

This feature is useful in search-as-you-type components to rely on the backend to perform the search. For example,

Following this great comment in Stackoverflow. This ember addon will extend DS.RESTAdapter initially to be able to cancel an on going HTTP request by invoking store.cancelQuery('resourceType')

vicentereig /
Last active Aug 29, 2015
export default DS.RESTAdapter.extend({
    headers: {
        'Accept': 'application/vnd.impetu-v1+json'
export default DS.RESTadapter.extend({
View grape_runtime_log.rb
require 'grape'
class API < Grape::API
before do
@log_start_t = " Parameters: #{params.to_hash.except("route_info")}"
after do
@log_end_t =

Ministerio de Fomento

6229 ORDEN FOM/956/2008, de 31 de marzo, por la que se aprueba la política de difusión pública de la información geográfica generada por la Dirección General del Instituto Geográfico Nacional.

La Dirección General del Instituto Geográfico Nacional, en adelante IGN, para llevar a cabo la misión de servicio público que tiene encomendada, genera y mantiene un importante volumen de información geográfica. De entre esta información geográfica destacan los datos que se ven reflejados en las series y bases cartográficas nacionales, en ortofotografías aéreas y ortoimágenes de satélites, y en fotogramas aéreos como


Setting up dnsmasq for Local Web Development Testing on any Device

Please note, these instructions are for OS X Lion.

First, you need to get the IP address of your machine on your local network. In OS X, the easiest place to find this is in System Preferences > Network. If you're using DHCP on your local network, you will want to make sure your computer requests the same IP address when it renews it's IP address lease. I recommend configuring the DCHP Reservation settings on your router to accomplish this. Otherwise, you can specify a manual address in your network settings:

  1. Go to System Preferences > Network

  2. Click Advanced...

$ = jQuery
class GoogleChartWrapper
@defaults = {}
constructor: (@$el, @options={}) ->
$.extend true, @options, @defaults, @$
@chart = new google.visualization.ChartWrapper options
$.fn.chartWrapper = (options={}) ->
@each ->
vicentereig / modello.rb
Created Oct 31, 2012
Sketching an ODT template generator
View modello.rb
M::Document.configure do |config|
config.placeholder_format = "%:placeholder%"
class CustomerDetails
include M::DocumentFragment
include ActionView::Helpers::NumberHelper
subs :name, type: M::Text
subs :last_name, type: M::Text
vicentereig / .pbrc
Created Sep 6, 2012
Simple .pythonbrewrc implementation
View .pbrc
export PYTHONBREW_PROJECT_VENV='your_projects_venv'
vicentereig / httpd.conf
Created Aug 10, 2012
Apache 2 + Proxy Balancer + Thin + Rails Asset Pipeline Development Environment for MacOSX
View httpd.conf
# These modules should be loaded by default: proxy_module, proxy_balancer_module, rewrite_module
Listen *:80
# You may want to keep the VirtualHost config under extra/*.conf
# Start your thin
<VirtualHost *:80>