This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <pthread.h> | |
#define LIMIT 1000 | |
#define THREAD_SAYISI 4 | |
static pthread_mutex_t kilit; | |
void *dongu(void *p) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"github.com/ActiveState/golor" | |
"math/rand" | |
"os" | |
"strconv" | |
"strings" | |
"time" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Queue: | |
def __init__(self): | |
self.liste = [] | |
def isEmpty(self): | |
return self.liste == [] | |
def enqueue(self, item): | |
self.liste.insert(0, item) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <pthread.h> | |
#include <stdio.h> | |
void *kare_al(void * p){ | |
int a; | |
a = (int *) p | |
printf(" %d\n", a * a); | |
pthread_exit(NULL); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <math.h> | |
float | |
F(float x) | |
{ | |
return x*x; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#include <pthread.h> | |
#define N 100 | |
#define RANDOM_RANGE 100000 | |
#define NTHREAD 10 | |
#define VECTOR_LENGTH_PER_THREAD (N/NTHREAD) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BinaryTree: | |
def __init__(self,rootObj): | |
self.key=rootObj | |
self.left = None | |
self.right = None | |
def insertLeft(self,newNode): | |
if self.left == None: | |
self.left = BinaryTree(newNode) | |
else: | |
t = BinaryTree(newNode) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<stdlib.h> | |
#include<sys/types.h> | |
#include<unistd.h> | |
#include<string.h> | |
#include<readline/readline.h> | |
#include<readline/history.h> | |
#include<sys/wait.h> | |