Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Startup script for java jar applications
##########################################
### SET GC PARAMETERS #####
##########################################
#Specify the minimum java version
MIN_JAVA_VERSION = 17
@crfilho
crfilho / LICENSE.txt
Created April 11, 2012 22:32 — forked from 140bytes/LICENSE.txt
140byt.es -- Click ↑↑ fork ↑↑ to play!
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@crfilho
crfilho / Container.cs
Created August 3, 2011 19:20
Simple Container
public class Container
{
private static readonly IDictionary<Type, object> components = new Dictionary<Type, object>();
public static T Resolve<T>() where T : class, new()
{
if (typeof(ITransient).IsAssignableFrom(typeof(T)))
return new T();
if (!components.ContainsKey(typeof(T)))