Skip to content

Instantly share code, notes, and snippets.

var quoted = [
'"(?:[^"\\\\]|\\\\.)*"',
"'(?:[^'\\\\]|\\\\.)*'",
"`(?:[^`\\\\]|\\\\.)*`"
],
keywords = ['SELECT', 'FROM', 'DELETE FROM', 'INSERT INTO', 'UPDATE', 'JOIN',
'LEFT JOIN', 'INNER JOIN', 'ORDER BY', 'GROUP BY', 'HAVING', 'WHERE',
'LIMIT', 'VALUES', 'SET'],
values = [
@jaheba
jaheba / designer.html
Last active August 29, 2015 14:06
designer
<link rel="import" href="../polymer/polymer.html">
<polymer-element name="ael-comment">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#TODO: english docstrings
"""
Die Klasse ``FirstStart`` ist dazu da, um zu prüfen ob ein Programm bereits
gestartet wurde.
Dabei wird zwischen einem Pro-User-Modus und einem globalen Modus
unterschieden. Im Pro-User-Modus wird nur für den aktuellen Benutzer
geprüft, ob das Programm bereits gestartet wurde, im globalen Modus
@jaheba
jaheba / .eslintrc
Last active September 9, 2015 12:25
{
"rules": {
"indent": [
2,
4
],
"quotes": [
2,
"single"
],
@jaheba
jaheba / uebung1.py
Created October 24, 2011 14:17
PT_I-Übung 1
#encoding: utf-8
from string import digits, ascii_uppercase
def base(b, n, symbols=digits+ascii_uppercase):
'return the nubmer `n` with base `b`'
if b > len(symbols):
raise IndexError('Not enough symbols to represent base')
digits = []
from itertools import ifilter
def read(dateiname='passwd.txt', encoding='latin-1'):
with open(dateiname) as fobj:
text = fobj.read().decode(encoding)
return map(lambda s: Account(*s.split(':')), text.splitlines())
class Account(object):
"""docstring for Account"""
*-----------------------------------------------------------
* Program :
* Written by :
* Date :
* Description:
*-----------------------------------------------------------
START ORG $1000
LEDADR EQU $E00010
@jaheba
jaheba / Ampel
Created January 26, 2012 16:55 — forked from cm2kay/Ampel
*-----------------------------------------------------------
* Program :
* Written by :
* Date :
* Description:
*-----------------------------------------------------------
START ORG $1000
LEDADR EQU $E00010

Aufgabe 6.a

Studieren Sie die Java-Sprachbeschreibung und geben Sie Java-Fragmente an, die den Produktionsregeln aus Abschnitt 18.1. für

  • CatchClause
  • NormalInterfaceDeclaration und
  • ForControl unter Verwendung der zweiten Alternative von ForVarControlRest

entsprechen. Erklären Sie jeweils die Bedeutung (Semantik) dieses Konstrukts in der Sprache Java. Reichen Sie diesen Teil Ihrer Lösung als Text- oder PDF-Datei ein.

@jaheba
jaheba / gist:7081576
Created October 21, 2013 10:13
sapui5 formatter example
template: {
title: {
parts: [{
path: 'name'
}, {
path: 'surname'
}],
formatter: function(name, surname) {
return name + ' ' + surname
},