
.
private final static String EMAIL_VALIDATION_REGEX = "[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?";
public static boolean validateEmail(String email) {
return email.matches(EMAIL_VALIDATION_REGEX);
} /\S@\S/.test(email)
public static boolean validateEmail(String email) {
int at = email.indexOf('@');
int dot = email.lastIndexOf('.');
int spc = email.indexOf(' ');
return at > 1 && dot > at && spc < 0;
}
.
wget -O - http://docs.oracle.com/javase/jndi/tutorial/ldap/connect/src/Timeout.java$ wget -O - http://docs.oracle.com/javase/jndi/tutorial/ldap/connect/src/Timeout.java
--2012-05-03 18:54:32-- http://docs.oracle.com/javase/jndi/tutorial/ldap/connect/src/Timeout.java
Resolving docs.oracle.com... 77.109.171.186, 77.109.171.152
Connecting to docs.oracle.com|77.109.171.186|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2514 (2.5K) [text/plain]
Saving to: `STDOUT'
0% [ ] 0 --.-K/s
/*
* "@(#)Timeout.java 1.1 02/11/01 SMI"
*
* Copyright 2002 Sun Microsystems, Inc. All Rights Reserved.
* и т.д.
$ wget -O - http://docs.oracle.com/javase/jndi/tutorial/ldap/connect/src/Timeout.java 2>/dev/null
/*
* "@(#)Timeout.java 1.1 02/11/01 SMI"
*
* Copyright 2002 Sun Microsystems, Inc. All Rights Reserved.
*
* Sun grants you ("Licensee") a non-exclusive, royalty free,
* license to use, modify and redistribute this software in source and
* binary code form, provided that i) this copyright notice and license
for file in *; do echo mv "${file}" "${file// /_}"; done
for file in "* *"; do mv "${file}" "${file// /_}"; donepackage ru.yababay;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.TextField;
/**
*
* @author yababay
*/
public class Sample implements Initializable {
@FXML
private TextField label;
@Override
public void initialize(URL url, ResourceBundle rb) {
label.focusedProperty().addListener(new ChangeListener<Boolean>() {
@Override
public void changed(ObservableValue<? extends Boolean> observable, Boolean oldValue, Boolean newValue) {
if(!newValue.booleanValue())
System.out.println(label.getText());
}
} );
}
}$ for f in $(find . -name "*.zip"); do if ( unzip -l $f | grep [file name] &> /dev/null ); then echo $f; fi; done

Host github.com
HostName github.com
User myname
IdentityFile ~/.ssh/myprivatekeyfilenamegit clone git@github.com:mabel/3f-lab.gitclass GGPoint extends Object {
}try:
ix, iy, image = im.size[0], im.size[1], im.tostring("raw", "RGBA", 0, -1)
except SystemError:
ix, iy, image = im.size[0], im.size[1], im.tostring("raw", "RGBX", 0, -1)#!/bin/bash
function f() {
sleep "$1"
echo "$1"
}
while [ -n "$1" ]
do
f "$1" &
shift
done
wait