Skip to content

Instantly share code, notes, and snippets.

View jbman's full-sized avatar

Johannes Bergmann jbman

  • Robert Bosch GmbH - @bsinno
  • Germany
View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is based on the javascript.lang file of GtkSourceView.
It has additional Typescript keywords defined.
Author: Johannes Bergmann
Copyright (C) 2014 Johannes Bergmann
###
class ArrowFunctionDemo {
private text:string;
constructor(message:string)
{
this.text = message;
// Doesn't work
var b1 = this.createButton("How are you? (Function reference)");
b1.onclick = this.answer;
// works (Store this reference as 'self')
@jbman
jbman / Bilder-jaden.sh
Created August 5, 2011 06:54
Bash file for loading and renaming photos from a digicam
#!/bin/bash
### Subroutines ###
# Prüft ob Pfad zu Bildern angegeben ist
assertCameraPathProvided() {
if [ -z "$1" ];
then
echo "Pfad zu Bildern auf der Kamera wird als erstes Argument benötigt (z.B. /media/disk/DCIM/100_FUJI)"
end;