Skip to content

Instantly share code, notes, and snippets.

Jan Brinkmann luckyduck

Block or report user

Report or block luckyduck

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:5cd6edcf97b8cb38072e
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Grundlagen der Programmierung - Datentypen</title>
</head>
<body>
<script type="text/javascript">
// 1. Variablen deklarieren und initialisieren
var integerWert = 20;
View gist:8022a1e802d7d46ff356
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Grundlagen der Programmierung - Datentypen</title>
</head>
<body>
<script type="text/javascript">
// 1. Variablen deklarieren und initialisieren
var integerWert = 20;
@luckyduck
luckyduck / java-nested-for-loop-output
Created Dec 19, 2014
Java for()-Schleifen verschachteln (Ausgabe)
View java-nested-for-loop-output
xxxxxxxxxx
xxxxxxxxxx
xxxxxxxxxx
xxxxxxxxxx
xxxxxxxxxx
xxxxxxxxxx
@luckyduck
luckyduck / nested-java-for-loop.java
Created Dec 19, 2014
Java for()-Schleifen verschachteln
View nested-java-for-loop.java
// schleifen in schleifen
int zeilen = 6;
int spalten = 10;
for ( int i = 0; i < zeilen; i++ ) {
for ( int j = 0; j < spalten; j++ ) {
System.out.print("x");
}
System.out.println();
@luckyduck
luckyduck / java-for-dekrement.java
Created Dec 19, 2014
Java for()-Schleife / Dekrement
View java-for-dekrement.java
for (int j = farben.length - 1; j >= 0; j-- ) {
System.out.println(farben[j]);
}
View forschleifen.java
// (schleifenzaehler; bedingung; inkrement)
for (int i = 0; i < farben.length; i++) {
System.out.println(farben[i]);
}
@luckyduck
luckyduck / gist:9140379
Last active Aug 29, 2015
while-Schleife
View gist:9140379
var i = 1;
while (i <= 5) {
document.write(i);
i++;
}
View gist:9139976
for ( var i = 1; i <= 5; i++ ) {
document.write(i);
}
View basisvergleich.js
// Basisvergleich
var alter = 18;
if (alter < 18) {
document.write("Noch nicht volljährig, unter 18!<br>");
} else {
document.write("Volljährig! 18 oder älter!<br>");
}
View gist:8865601
/*
Block Kommentar
in mehreren Zeilen
Java, C, C++, Objective-C, PHP, ...
*/
// Kommentar in einer einzelnen Zeile, sehr weit verbereitet
# In manchen Sprachen kann ein Kommentar mit dem "#" Zeichen beginnen
You can’t perform that action at this time.