Skip to content

Instantly share code, notes, and snippets.

Avatar

Jan Brinkmann luckyduck

View GitHub Profile
View gist:28f215c74cf463cf3ceb
import UIKit
class ViewController: UIViewController, UITableViewDataSource, NewtodoViewControllerDelegate {
@IBOutlet weak var tableView: UITableView!
var todos: [String] = ["Login umsetzen", "Debugging"] {
didSet {
self.tableView.reloadData()
}
}
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>");
}
You can’t perform that action at this time.