Skip to content

Instantly share code, notes, and snippets.

View miguelrgonzalez's full-sized avatar

Miguel Rodríguez miguelrgonzalez

View GitHub Profile
xquery version "1.0-ml";
module namespace exif = "http://marklogic.com/exif";
declare variable $FIELDS :=
map:new((
map:entry("010D", "DocumentName"),
map:entry("011A", "XResolution"),
map:entry("011B", "YResolution"),
map:entry("0128", "ResolutionUnit"),
@miguelrgonzalez
miguelrgonzalez / modulesrepo.py
Created March 9, 2012 10:42
play build-module command now accepts an extra parameter to exclude some folders from the final build.
import os
import sys
import re
import zipfile
import urllib2
import shutil
import string
import imp
import time
import urllib
@miguelrgonzalez
miguelrgonzalez / conf.vim
Created March 6, 2012 10:13
Vim syntax file for Play configuration files
" Vim syntax file
" Language: Play framework configure file
" Quit when a (custom) syntax file was already loaded
if exists("b:current_syntax")
finish
endif
syn match confEnvironment /^%\w\+\./
syn match confValue /=.\+$/
@miguelrgonzalez
miguelrgonzalez / nexus.py
Created February 17, 2012 08:46
Play command for Committing SNAPSHOT releases into nexus
from play.utils import *
from poster.encode import multipart_encode
from poster.streaminghttp import register_openers
import urllib
import urllib2
import yaml
COMMANDS = ['nexus-commit',]
HELP = {