Skip to content

Instantly share code, notes, and snippets.

View RomkeVdMeulen's full-sized avatar

Romke van der Meulen RomkeVdMeulen

View GitHub Profile
@RomkeVdMeulen
RomkeVdMeulen / app.html
Last active December 19, 2017 04:47
Aurelia Validation Issue 423 Demo
<template>
<require from="./registration-form"></require>
<registration-form></registration-form>
</template>
@RomkeVdMeulen
RomkeVdMeulen / app.html
Last active April 4, 2017 08:32 — forked from jdanyow/app.html
Aurelia Validation Issue 423 Demo
<template>
<require from="./registration-form"></require>
<registration-form></registration-form>
</template>
@RomkeVdMeulen
RomkeVdMeulen / app.html
Last active September 24, 2019 12:20 — forked from jdanyow/app.html
Aurelia Gist
<template>
<h1>${message}</h1>
</template>
@RomkeVdMeulen
RomkeVdMeulen / gists-solarized-dark.css
Created November 9, 2016 12:58
CSS for styling embedded gists in Solarized Dark
/* Solarized Dark for embedded gists
http://ethanschoonover.com/solarized
*/
.gist .highlight, .gist .blob-code-inner { font-size: inherit !important }
.gist .highlight { line-height: 1.25em !important }
.gist .gist-meta { background-color: #073642 !important; color: #93a1a1 !important }
.gist .gist-meta a { color: #268bd2 !important }
.gist .gist-data, .gist .highlight { background-color: #002b36 !important; color: #93a1a1 !important }
@RomkeVdMeulen
RomkeVdMeulen / solarized-dark.css
Last active November 9, 2016 12:56 — forked from nicolashery/solarized-dark.css
Solarized theme stylesheets for Jekyll and Pygments
/* Solarized Dark
For use with Jekyll and Pygments
http://ethanschoonover.com/solarized
SOLARIZED HEX ROLE
--------- -------- ------------------------------------------
base03 #002b36 background
base02 #073642 background highlights
@RomkeVdMeulen
RomkeVdMeulen / key-listener.ts
Last active December 27, 2021 05:59
TypeScript decorator to apply to a method that should only be invoked in response to certain keypress events.
export const enum KeyCode {
ENTER = 13,
SPACE = 32
}
export function keyListener(keyCodes: KeyCode | KeyCode[]) {
if (!(keyCodes instanceof Array)) {
keyCodes = [keyCodes];
}
@Singleton
public class FrontendTextBean {
@EJB
private TextCache textCache;
private Set<String> textkeys = new HashSet<>();
@PostConstruct
public void init() {
export function translation(textkey: string) {
if (!textkey) {
throw "Parameter textkey is required with the @translation decorator";
}
return (target: any, property: string) => {
translationService().getTranslation(textkey)
.then(text => target[property] = text);
}
}
@RomkeVdMeulen
RomkeVdMeulen / ts-collect-textkeys.js
Last active October 12, 2016 10:43
Collect text usage during build step
var es = require('event-stream');
var fs = require('fs');
var mkdirp = Promise.denodeify(require('mkdirp'));
var path = require('path');
var plumber = require('gulp-plumber');
var Promise = require('promise');
var ts = require('typescript');
var typescript = require('gulp-typescript');
var paths = {
@RomkeVdMeulen
RomkeVdMeulen / glassfish_pkg_for_64.sh
Created September 1, 2016 08:24
Instructions for running the 32-bit Glassfish pkg tool on 64-bit Ubuntu
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 libidn11:i386 libgssapi-krb5-2:i386