Skip to content

Instantly share code, notes, and snippets.

View dguardado's full-sized avatar
👊
abolish ice

Dimas Guardado dguardado

👊
abolish ice
View GitHub Profile
@dguardado
dguardado / keybase.md
Created March 11, 2022 00:00
keeybase.md

Keybase proof

I hereby claim:

  • I am dguardado on github.
  • I am dimasguardado (https://keybase.io/dimasguardado) on keybase.
  • I have a public key ASBqneYEIaqtpoZr7xD-BcF78wTNXmRyMqWFulMJ25tPyAo

To claim this, I am signing this object:

@dguardado
dguardado / Procfile
Last active March 13, 2023 07:32
Starting an app with a shell script in elastic beanstalk
web: ./start_server.sh # would like to use environment variables here, but it is not supported
@dguardado
dguardado / changeset.xml
Last active August 29, 2015 14:03
Defining foreign key constraint directly in column
<changeSet author="liquibase-docs" id="addColumn-example">
<addColumn catalogName="cat"
schemaName="public"
tableName="person">
<column name="address" type="bigint">
<constraints references="address" foreignKeyName="fk_person_address" deleteCascade="true" />
</column>
</addColumn>
</changeSet>
@dguardado
dguardado / AbstractList.java
Last active December 12, 2015 05:28
A naive implementation of a singly linked list used to illustrate closure idioms in Java as inspired/motivated by the Coursera Programming Languages course
abstract class AbstractList<T> implements List<T> {
@Override public List<T> cons(T item) {
return new Cell<T>(item, this);
}
}
@dguardado
dguardado / MetricsSample.java
Created May 3, 2012 22:50
A Sample JAX-RS resource intended to illustrate usage of the Metrics API.
package com.hdd;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.Iterables;
import com.yammer.metrics.Metrics;
import com.yammer.metrics.annotation.ExceptionMetered;
import com.yammer.metrics.annotation.Gauge;
import com.yammer.metrics.annotation.Metered;
import com.yammer.metrics.annotation.Timed;
import com.yammer.metrics.core.Counter;