Skip to content

Instantly share code, notes, and snippets.

View pasali's full-sized avatar
🎯
Focusing

Mehmet Başal pasali

🎯
Focusing
View GitHub Profile
<html>
<head>
<meta charset="utf-8">
<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.min.js">
</script>
<script type="text/javascript" src="jquery.chained.js" charset="utf-8"></script>
</head>
<body>asdasd
<select id="mark" name="mark">
<option value="">--</option>
<html>
<head>
<meta charset="utf-8">
<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.min.js">
</script>
<script type="text/javascript" src="jquery.chained.js" charset="utf-8"></script>
</head>
<body>
<select id="mark" name="mark">
<option value="">--</option>
@pasali
pasali / thread.c
Created November 14, 2013 19:19
c thread example
#include <pthread.h>
#include <stdio.h>
void *kare_al(void * p){
int a;
a = (int *) p
printf(" %d\n", a * a);
pthread_exit(NULL);
}
@pasali
pasali / patato.py
Last active December 28, 2015 08:39
class Queue:
def __init__(self):
self.liste = []
def isEmpty(self):
return self.liste == []
def enqueue(self, item):
self.liste.insert(0, item)
@pasali
pasali / passwordcard.go
Last active December 29, 2015 04:49
prog. dilleri ödev
package main
import (
"fmt"
"github.com/ActiveState/golor"
"math/rand"
"os"
"strconv"
"strings"
"time"
#include <stdio.h>
#include <pthread.h>
#define LIMIT 1000
#define THREAD_SAYISI 4
static pthread_mutex_t kilit;
void *dongu(void *p) {
@pasali
pasali / src.go
Last active December 31, 2015 19:39
package main
import (
"fmt"
"os"
"os/exec"
"strings"
)
var tokens []string
import java.math.BigInteger;
import java.util.Random;
public class MillerRabin {
public static final BigInteger ZERO = BigInteger.ZERO;
public static final BigInteger ONE = BigInteger.ONE;
public static final BigInteger TWO = BigInteger.valueOf(2);
public static final int[] aValues = { 2, 3, 5, 7, 11, 13, 17, 19, 23, 29,
31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101,
import java.math.BigInteger;
import java.util.Random;
public class MillerRabin {
public static final BigInteger ZERO = BigInteger.ZERO;
public static final BigInteger ONE = BigInteger.ONE;
public static final BigInteger TWO = BigInteger.valueOf(2);
#!/usr/bin/bash
DOSYA=$1
OLDIFS=$IFS
IFS=,
[ ! -f $DOSYA ] && { echo "$DOSYA bulunamadi"; exit 99; }
toplam=0
sayac=0
while read ad soyad no not
do