Skip to content

Instantly share code, notes, and snippets.

View cehars's full-sized avatar

Hasan Arslan cehars

View GitHub Profile
import java.sql.*;
public class baglanti {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
try
package model;
import java.io.Serializable;
import javax.persistence.*;
/**
* The persistent class for the cehars database table.
*
*/
@Entity
%% documentation
%
%
function data = extract_features(bw,dbg)
[boy, en] = size(bw);
say = 0;
en_sag = 0;
en_sol = 64;
en_ust = 64;
import java.security.SecureRandom;
import java.util.Random;
class Test {
public static String generatePassword() {
String chars = "abcdefghijklmnopqrstuvwxyz"
+ "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
+ "0123456789";
import java.security.SecureRandom;
import java.util.Random;
class Test {
public static String generatePassword() {
String chars = "abcdefghijklmnopqrstuvwxyz"
+ "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
+ "0123456789!@%$%&^?|~'\"#+="
+ "\\*/.,:;[]()-_<>";
package com.yeni;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
@cehars
cehars / giris.php
Last active December 12, 2015 03:09
Üye Kayıt ve Sorgu Formu
<?php
@mysql_connect("localhost", "root", "") or die ("Veritabanina baglanırken bir hata oluştu!");
@mysql_select_db ("dog10000_veritabani") or die ("Üye Veritabanina Baglanilamadi");
$username = $_POST["username"];
$parola = $_POST["parola"];
if ($username && $parola) {
@cehars
cehars / gonder.php
Last active December 12, 2015 03:08
İletişim Formu
<?php
@mysql_connect("localhost", "dog10000_user", "samsun19") or die ("Veritabanina baglanırken bir hata oluştu!");
@mysql_select_db ("dog10000_veritabani") or die ("Üye Veritabanina Baglanilamadi");
$ad = $_POST["ad"];
$email = $_POST["email"];
$konu = $_POST["konu"];
$mesaj = $_POST["mesaj"];
function en_buyuk_nesne_yeri(resim)
I = imread(resim);
I = im2bw(I);
I = imfill(I, 'holes');
boyut = size(I);
[x y] = bwlabel(I);
function en_buyuk_alan(resim)
I = imread(resim);
I = im2bw(I);
I = imfill(I, 'holes');
[x y] = bwlabel(I);
R = regionprops(x, 'Area');
liste = [R.Area];