Skip to content

Instantly share code, notes, and snippets.

@bboyle1234
bboyle1234 / ShutdownEventCatcher.cs
Last active June 22, 2024 15:28
ShutdownEventCatcher provides all c# console application shutdown scenarios in a single handler
// Author: Benjamin Boyle
// Email: bboyle1234@gmail.com
using System;
using System.Runtime.InteropServices;
namespace Utils
{
///<summary>
/// Provides all c# console application shutdown scenarios in a single handler
anonymous
anonymous / Timestampable.java
Created August 21, 2012 02:01
package models;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import javax.persistence.PrePersist;
import javax.persistence.PreUpdate;