Skip to content

Instantly share code, notes, and snippets.

View RomkeVdMeulen's full-sized avatar

Romke van der Meulen RomkeVdMeulen

View GitHub Profile
alias ttime_green="sh -c \"sleep 180 && notify-send -u critical 'The tea is ready'\" &"
alias ttime_black="sh -c \"sleep 300 && notify-send -u critical 'The tea is ready'\" &"
@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
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 = {
@Singleton
public class FrontendTextBean {
@EJB
private TextCache textCache;
private Set<String> textkeys = new HashSet<>();
@PostConstruct
public void init() {
@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 / cache.spec.ts
Last active January 10, 2017 16:17
Aurelia cache service
import {Container} from "aurelia-framework";
import {CacheService, CACHE_STORE} from "./cache";
describe("The Cache Service", () => {
let cacheManager: CacheService;
beforeEach(() => {
cacheManager = new Container().get(CacheService);
});
@RomkeVdMeulen
RomkeVdMeulen / app.html
Last active March 27, 2017 11:41
Aurelia addError() during validation
<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 / html_forms.md
Last active April 7, 2017 07:55
Some notes on HTML forms