This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void saveData() throws Exception { | |
FileWriter w = new FileWriter("adressen.txt"); | |
for(Person p : personen) { | |
p.writeToFile(w); | |
} | |
w.close(); | |
} | |
public static void readData() throws Exception { | |
BufferedReader r = new BufferedReader(new FileReader("adressen.txt")); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use Data::Dumper; | |
use strict; | |
my @felder = qw(Name Vorname Strasse Hausnr PLZ Ort); | |
sub write_to_file { my %data = %{$_[0]}; my @contacts = @{$_[1]}; | |
print $data{$_}, "|" for (@felder); | |
print $_, "|" for (@contacts); | |
print "\n"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
# receiver_info.pl | |
# Verwaltet TechniSat TechniStar S1 Receiver über Netzwerk | |
# Copyright (c) 2011 Max Weller <perl AT max-weller.de> | |
use strict; | |
use LWP::UserAgent; | |
use Getopt::Std; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'--> | |
'--> mw_fraktal01.vb | |
#Reference System.Windows.Forms.dll | |
#Reference System.Data.dll | |
#Reference System.Drawing.dll | |
#Reference siaIDEMain.dll |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.ArrayList; | |
import java.util.Date; | |
import java.util.List; | |
/** | |
* Class Person | |
*/ | |
public class Person { | |
// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Overridable Function Serialize() As String() | |
Dim data(18) As String | |
data(1) = Me.GetType.Name | |
data(2) = bounds.X | |
data(3) = bounds.Y | |
data(4) = bounds.Width | |
data(5) = bounds.Height | |
data(6) = ZIndex | |
data(7) = name | |
data(8) = created |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Public Enum VUMLVisibility | |
[Public] | |
[Protected] | |
[Private] | |
End Enum | |
Public Class VUMLMethod | |
Public Name As String | |
Public IsVoid As Boolean | |
Public ReturnValue As String | |
Public Parameters As New List(Of String()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Entfernen aller Abstände zwischen den Elementen, die der Browser von sich aus einfügt */ | |
* { margin: 0; padding: 0; } | |
/* Einheitliche Schriftart einstellen (sans serif), Abstand zwischen Inhalt und Rand des | |
* Browserfensters ausschalten */ | |
body { font-family: "Segoe UI", Arial, sans-serif; margin: 0; } | |
/* Kopfzeile formatieren: dunkelgrauer Hintergrund, weiße Schrift, Abstand der Schrift zum Rand */ | |
#header { background: #333; color: #fff; padding: 20px 100px; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html><body> | |
<div id="header"> | |
<h1>Überschrift</h1> | |
<h2>Hier könnte Ihre Werbung stehen ...<h2> | |
</div> | |
<div id="main"> | |
<div id="navigation"> | |
<h4>Inhaltsverzeichnis</h4> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
# f2c-tab.pl | |
# Gibt eine Umrechnungstabelle Fahrenheit->Celsius als Text auf der Standard- | |
# ausgabe oder als PDF-Dokument aus | |
use strict; | |
use PDF::API2; | |
if (!(($#ARGV == 0 && $ARGV[0] == "--txt") || ($#ARGV == 1 && $ARGV[0] == "--pdf"))) { |