Skip to content

Instantly share code, notes, and snippets.

View domix's full-sized avatar
🇲🇽

Domingo Suarez Torres domix

🇲🇽
View GitHub Profile
#%RAML 0.8
title: World Music API
baseUri: http://example.api.com/{version}
version: v1
schemas:
- halLink: |
{ "$schema": "http://json-schema.org/schema",
"type": "object",
"description": "a Hypertext Application Language link",
@domix
domix / build.gradle
Last active August 29, 2015 14:24 — forked from cholick/build.gradle
//Minimal configuration needed for Gradle build file with GMetrics integration
apply plugin: 'groovy'
repositories {
mavenCentral()
}
configurations {
gmetrics
}
@Grab(group='com.craigburke.document', module='pdf', version='0.3.1')
@Grab(group='com.craigburke.document', module='word', version='0.3.1')
@Grab('com.bloidonia:ascii-image:1.1')
import com.bloidonia.asciiimage.AsciImageProcessor
import java.awt.image.BufferedImage
import java.awt.RenderingHints
import java.awt.Color
import javax.imageio.ImageIO
import com.craigburke.document.builder.PdfDocumentBuilder
// Using Java as usual
Runnable r = new Runnable() {
@Override
public void run() {
System.out.println("Hello #JaverosMX!");
}
};
r.run();
package mongodbdemo.config;
import java.util.Locale;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.support.ReloadableResourceBundleMessageSource;
@domix
domix / gist:370fafc04fa8be29f5db
Created November 5, 2014 02:04
Dynomite Dockerfile
FROM ubuntu
MAINTAINER Domingo Suarez "domingo.suarez@gmail.com"
RUN apt-get update
RUN apt-get -y install wget zip gcc dh-autoreconf ssh
RUN wget --no-check-certificate https://github.com/Netflix/dynomite/archive/v0.3.0.zip
RUN unzip v0.3.0.zip
RUN cd dynomite-0.3.0 && autoreconf -fvi && ./configure && make
// This is a comparison between Haskell and Groovy based on some simple problems found in the following
// Haskell Introduction:
// http://learnyouahaskell.com/starting-out#ready-set-go
// Ex 1. If we have two lists, [2,5,10] and [8,10,11] and we want to get the products of all the possible
// combinations between numbers in those lists, here's what we'd do.
/* HASKELL */
[ x*y | x <- [2,5,10], y <- [8,10,11]]
@domix
domix / gist:9221106
Created February 26, 2014 00:42
Job offering
Hola,
Grupo Expansión esta buscando 4 desarrolladores Java para la ciudad de México, que tengan sólidos conocimientos de desarrollo web. Los requisitos son los siguientes:
Spring (requerido)
Hibernate (requerido)
Vanilla JavaScript (requerido)
Git (deseable)
JQuery (deseable)
Grunt (extra)
@domix
domix / setjava.sh
Created January 6, 2014 18:26
Handy bash function to switch quickly between your Java SDKs in OSx
function setjava() {
export JAVA_HOME=$(/usr/libexec/java_home -v $1)
}