Skip to content

Instantly share code, notes, and snippets.

View andref's full-sized avatar
🏠
Working from home

André andref

🏠
Working from home
View GitHub Profile
@andref
andref / Minimal.java
Last active July 7, 2022 18:19
Minimal example. Run with java -cp someClassPath Minimal server config.yaml
import io.dropwizard.configuration.SubstitutingSourceProvider;
import io.dropwizard.core.Application;
import io.dropwizard.core.Configuration;
import io.dropwizard.core.setup.Bootstrap;
import io.dropwizard.core.setup.Environment;
import io.dropwizard.db.DataSourceFactory;
import io.dropwizard.db.PooledDataSourceFactory;
import io.dropwizard.hibernate.HibernateBundle;
import io.dropwizard.hibernate.UnitOfWork;
import io.dropwizard.lifecycle.Managed;
@andref
andref / index.css
Last active September 30, 2016 00:17
Login e Logout usando Angular 1 + UI Router 1
* {
box-sizing: border-box;
}
:focus {
outline-color: #55bada;
}
body {
color: #333;
@andref
andref / main.cpp
Created May 30, 2012 19:47
Calling QMetaMethods with QVariant arguments and best-effort type conversion
#include <QtCore>
#include <QtDebug>
QVariant call(QObject* object, QMetaMethod metaMethod, QVariantList args)
{
// Convert the arguments
QVariantList converted;
// We need enough arguments to perform the conversion.
@andref
andref / jquery-1.6.min.js
Created May 6, 2011 17:58
Isolated Example for Columnizer-jQuery-Plugin issue #8
/*!
* jQuery JavaScript Library v1.6
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/