Skip to content

Instantly share code, notes, and snippets.

Avatar

Jan Brinkmann luckyduck

View GitHub Profile
View forschleifen.java
// (schleifenzaehler; bedingung; inkrement)
for (int i = 0; i < farben.length; i++) {
System.out.println(farben[i]);
}
@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]);
}
@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
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;
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: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:34aa45a2bbbfdb063449
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Wann wird Javascript ausgeführt?</title>
</head>
<body>
<script type="text/javascript">
function meinJavascript() {
View gist:8101138da237d42fb9b2
import UIKit
class ViewController: UIViewController, UITableViewDataSource, NewtodoViewControllerDelegate {
@IBOutlet weak var tableView: UITableView!
var todos: [String] = ["Login umsetzen", "Debugging"] {
didSet {
self.tableView.reloadData()
}
}
@luckyduck
luckyduck / Navigation.php
Created Sep 23, 2012
Patch for "Webguys / Customer Navigation" (add "My Applications" for Magento 1.7)
View Navigation.php
<?php
class Webguys_CustomerNavigation_Block_Account_Navigation extends Mage_Customer_Block_Account_Navigation {
public function getLinks(){
$pre_links = $this->_links;
$tmp_links = array();
$this->_links = array();
$startcnt = 100000;
View gist:4f5d8b80f9c5a8b3eab0
<!DOCTYPE html>
<html>
<head>
<title>Summieren</title>
<meta charset="UTF-8">
</head>
<body>
<script type="text/javascript">
You can’t perform that action at this time.