Skip to content

Instantly share code, notes, and snippets.

View hkulekci's full-sized avatar
⛰️
Remote

Haydar KÜLEKCİ hkulekci

⛰️
Remote
View GitHub Profile
@hkulekci
hkulekci / WebPageRequest.java
Created April 26, 2011 01:47
get anchor form a web page source
package trying;
/**
*Trying for dmoz.org links
* @author kulekci
*/
class WebPageRequest extends webpage{
private String [][] acceptable_anchor = null;
boolean subCategory = false;
@hkulekci
hkulekci / client.c
Created April 28, 2011 02:08
CCS Code RS232 Simulation for Rf Communication on Proteus
#include <16f877.h>
#fuses XT,NOWDT,NOPROTECT,NOBROWNOUT,NOLVP,NOPUT,NOWRT,NODEBUG,NOCPD
#use delay (clock=4000000)
#use fast_io(b)
#use rs232(baud=1200, xmit=PIN_C6, rcv=PIN_C7,)
@hkulekci
hkulekci / gist:961314
Created May 8, 2011 11:35
Page navigation with Javascript and no jquery
<html>
<head>
<title>Example Page</title>
</head>
<body>
<div id="text"></div>
<script type="text/javascript">
var urls = {
"37":"#previous-page",//left button
@hkulekci
hkulekci / client.java
Created May 15, 2011 21:36
Communication with Socket Connection
package socketprogramming;
/**
*
* @author kulekci
*/
import java.io.*;
import java.net.*;
import java.net.InetAddress;
@hkulekci
hkulekci / async_ajax.js
Created June 5, 2011 10:02
JQuery Recursively Ajax
function recursively_ajax(active_num,end_num){
var number = 0;
if (active_num == end_num) return;
$.ajax({
type:"GET",
url: "pages.php",
data: "p="+active_num,
success: function(data){
$('.printable_area').addClass("done");
$('.printable_area').append(data);
@hkulekci
hkulekci / index.php
Created June 15, 2011 18:01
Facebook Application for Fan Page
<?php
if ($_POST['contact_form_posted']){
echo 'posts';
}
?>
<html>
@hkulekci
hkulekci / json.html
Created July 20, 2011 10:32
Json Usage Example
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Json Usage Example</title>
<style>
.area span{
width:180px;
display:block;
float:left;
}
@hkulekci
hkulekci / Main.java
Created July 26, 2011 21:42
Java Timer Example
import javax.swing.JFrame;
/**
*
* @author kulekci
*/
public class Main {
/**
@hkulekci
hkulekci / gist:1136352
Created August 10, 2011 08:13
My Share Buttons at scanf.info for tumblr
<br class='clear' />
<div align="right">
<script>function pin_click(urll,titlee,media) {window.open('pinterest.com/pin/create/button/?url='+encodeURIComponent(urll)+'&description=test'+encodeURIComponent(titlee)+'&media='+media,'sharer','toolbar=0,status=0,width=626,height=436');return false;}</script>
<script>function twt_click(urll,titlee) {window.open('http://twitter.com/intent/tweet?url='+encodeURIComponent(urll)+'&text='+encodeURIComponent(titlee)+' via @kulekci&related=scanf.info','sharer','toolbar=0,status=0,width=626,height=436');return false;}</script>
<a href="http://twitter.com/intent/tweet?url={Permalink}&text={Title} via @kulekci&related=scanf.info" target="_blank" onclick="return twt_click('{Permalink}','{Title}')" ><img src="http://kulekci.net/wp-content/uploads/social_networking_iconpack/twitter_16.png" alt="Twitter"></a>
@hkulekci
hkulekci / gist:1167763
Created August 24, 2011 10:50
git merge
git checkout master
git merge branchname
git push origin master