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
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
'--> | |
'--> 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
#!/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
#!/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
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
use LWP::UserAgent; | |
my $ua = LWP::UserAgent->new; | |
sub tryit { | |
print "trying $_[0]:$_[1] ... "; | |
my $r = $ua->post("http://www.rise-of-light.de/secure/login.php", | |
Content => "username=".$_[0]."&passwd=".$_[1]); | |
if($r->header("Location") =~ /welcome/) { |
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
$ perl -e "$_=shift;while($_>1){if($_%2){$_*=3;$_++;}else{$_/=2;}print++$c,\"# $_\n\"}" 12345 |
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 strict; | |
use warnings; | |
use Switch; | |
use LWP::Simple qw($ua); | |
# changing User Agent string because Wikipedia.org blocks default LWP::Simple User Agent | |
$ua->agent("WikiBot/0.1"); |
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
<?php | |
/* | |
* File: SimpleImage.php | |
* Author: Simon Jarvis | |
* Copyright: 2006 Simon Jarvis | |
* Date: 08/11/06 | |
* Link: http://www.white-hat-web-design.co.uk/articles/php-image-resizing.php | |
* | |
* This program is free software; you can redistribute it and/or |