Skip to content

Instantly share code, notes, and snippets.

View mehmetbebek's full-sized avatar
🎯
Focusing

Mehmet BEBEK mehmetbebek

🎯
Focusing
View GitHub Profile
@mehmetbebek
mehmetbebek / batch_mysql_insert_via_java.java
Last active August 29, 2015 13:57
Insert Batch Recods(More than One Record At A Time) On Oracle via Java
//If your database is mysql then you can use these codes
try {
Class.forName("com.mysql.jdbc.Driver").newInstance();
Connection conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/work_training", "root", "");
Statement st = conn.createStatement();
String query = "insert into SALES values (?,?, ?, ?,?, ? ,?)";
PreparedStatement pStatement = conn.prepareStatement(query);
int[] products = new int[]{100, 200, 300, 400};
@mehmetbebek
mehmetbebek / random_rename.reg
Created April 1, 2014 13:23
Random Rename By Shell Command Directly
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\mgnfcnt]
@="Random Rename"
[HKEY_CLASSES_ROOT\*\shell\mgnfcnt\command]
@="cmd /c For /f \"tokens=1-3 delims=/ \" %%a in ('date /t') do ren \"%1\" %%c-%%b-%%a-%%random%%.*"
@mehmetbebek
mehmetbebek / search_file_content.java
Created April 1, 2014 13:26
Search Text File Content From Any Giving Directory
import java.awt.FileDialog;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.nio.ByteBuffer;
import java.nio.charset.Charset;
import java.util.*;
@mehmetbebek
mehmetbebek / eclipse_install_new_software
Created April 7, 2014 19:05
Add Additional Components To Eclipse
If you also (like me :)) want to add your current eclipse some new features you can follow this steps.
Help -> Install New Software -> Add
http://download.eclipse.org/releases/helios/
Choice which of them you want .
Also you can look at source site:
http://jsminnpp.sourceforge.net
<html>
<head>
<title>
sample
</title>
<style>
img.grayscale {
filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale"); /* Firefox 3.5+, IE10 */
filter: gray; /* IE6-9 */
-webkit-filter: grayscale(100%); /* Chrome 19+ & Safari 6+ */
@mehmetbebek
mehmetbebek / isletme_mulakat
Created June 20, 2014 00:21
Yıldız Teknik İşletme Alan Dışı Mülakat
Merhabalar bu yazımda sizlerle bugünkü işletme yüksek lisans mülakatımdan bahsedeceğim. Öncelikli amacım benim gibi internete girip acaba bu yüksek lisans mülakatında
ne soruyorlar ne yapmam gerekir gibi araştırıp sonrasında eli boş bir şekilde mülakata girmek yerine en azından okuyup bir fikir sahibi olmak isteyenlere yol
göstermektir.
Zaten günümün kötü gideceği sabahın 8.30 unda havanın bu kadar sıcak olup otobusun gelmek bilememesinden belliydi. Otobuste şöferle yolcuların dramı ise ayrı bir
yazıya sığacak kadar geniş.
@mehmetbebek
mehmetbebek / Calendar.java
Created July 14, 2014 13:22
Fazilet Calendar
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package takvim;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
@mehmetbebek
mehmetbebek / gist:c4d9b15bfee7416ddba6
Created September 22, 2014 07:18
Push Notification Problem
Parse.initialize(this, "xxxx", "xxxx");
PushService.setDefaultPushCallback(this, MainActivity.class);
ParseInstallation.getCurrentInstallation().saveInBackground();
ParseAnalytics.trackAppOpened(getIntent());
super.onCreate(savedInstanceState);
https://www.parse.com/questions/android-parse-push-notification-not-working
@mehmetbebek
mehmetbebek / higlight.java
Created September 22, 2014 11:47
Java Highlight
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package javafxapplication4;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;