Skip to content

Instantly share code, notes, and snippets.


Jan Heinrich Reimer heinrichreimer

View GitHub Profile
romannurik /
Last active Jul 12, 2022
Android helper class for showing cheat sheets (tooltips) for icon-only UI elements on long-press. This is already default platform behavior for icon-only action bar items and tabs. This class provides this behavior for any other such UI element.
* Copyright 2012 Google Inc.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* Unless required by applicable law or agreed to in writing, software
View Fear the bleu side... .md

Our dearest script that everyone uses in the modern #neuralempty revolution in machine translation is multi-bleu.perl

But consider this:

alvas@ubi:~/git/mosesdecoder/scripts/generic$ perl multi-bleu.perl 
Use of uninitialized value $ARGV[0] in string eq at multi-bleu.perl line 11.
usage: [-lc] reference < hypothesis
Reads the references from reference or reference0, reference1, ...
alvas@ubi:~/git/mosesdecoder/scripts/generic$ python3 -c "open('hyp.txt', 'w').write('foo bar\n')"
criztovyl / changemail.php
Last active Jul 6, 2020 — forked from tjarksaul/gist:9047330
Script to change vbox user password on uberspace. Thanks to @_einstein_
View changemail.php
// Config
// Der Server auf dem dein Uberspace läuft
$server = '';
// Dein Nutzername
$username = '';
// Für aufgeschaltete Domains
IcyMidnight / Show All Foreign Keys in MySQL
Created Jun 19, 2009
Show All Foreign Keys in MySQL
View Show All Foreign Keys in MySQL
SELECT constraint_schema AS `database`, constraint_name, concat(table_name, '.', column_name) AS 'foreign key', concat(referenced_table_name, '.', referenced_column_name) AS 'references' FROM information_schema.key_column_usage WHERE referenced_table_name IS NOT NULL;
public class HelperUtil {
private final HelperUtilImpl mImpl;
public HelperUtil (Context context) {
mImpl = new HelperUtilImplL(context);
mImpl = new HelperUtilImplKK(context);
dapengli /
Created Mar 9, 2017 — forked from PurpleBooth/
A template to make good

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.