Skip to content

Instantly share code, notes, and snippets.

View ghillert's full-sized avatar
🇩🇪

Gunnar Hillert ghillert

🇩🇪
View GitHub Profile
@mattmc3
mattmc3 / modern_sql_style_guide.md
Last active July 24, 2025 05:44
Modern SQL Style Guide
layout author title revision version description
default
mattmc3
Modern SQL Style Guide
2019-01-17
1.0.1
A guide to writing clean, clear, and consistent SQL.

Modern SQL Style Guide

@jedvardsson
jedvardsson / LabeledEnum.java
Created June 3, 2015 08:59
How to implement a custom Hibernate enum type indexed on a label
public interface LabeledEnum {
String getLabel();
}
.hide-text {
text-indent: 100%;
white-space: nowrap;
overflow: hidden;
}
/* Scott Kellum Technique - Reference: http://www.zeldman.com/2012/03/01/replacing-the-9999px-hack-new-image-replacement/ */
Use this for SEO/Accessability Friendly
@jjt
jjt / not-so-dry.js
Created August 9, 2012 18:36
RequireJS "global" dependencies
// Not so DRY:
// module_1.js
define(["underscore", "zepto", "momentjs",...], function(_, $, Moment, ... ) {
// ...
});
// module_2.js
define(["underscore", "zepto", "momentjs",...], function(_, $, Moment, ... ) {
// ...
@jimbojsb
jimbojsb / gist:1630790
Created January 18, 2012 03:52
Code highlighting for Keynote presentations

Step 0:

Get Homebrew installed on your mac if you don't already have it

Step 1:

Install highlight. "brew install highlight". (This brings down Lua and Boost as well)

Step 2: