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
<?php | |
/** | |
* FileDoc: | |
* Widget for YaSimpleWidget. | |
* !!! ATTENTION !!! this widget only supports XML format | |
* | |
* Usage: | |
* | |
* 1. Copy ya-simple-feed directory into the extensions directory | |
* |
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
<?php | |
$show_after_p = 2; | |
$content = apply_filters('the_content', $post->post_content); | |
if(substr_count($content, '<p>') > $show_after_p) | |
{ | |
$contents = explode("</p>", $content); | |
$p_count = 1; | |
foreach($contents as $content) | |
{ | |
echo $content; |
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
<?php | |
/** | |
* Created by PhpStorm. | |
* User: [email protected] | |
* Date: 22.08.2016 | |
* Time: 04:58 | |
*/ | |
class Migration_Create_Sessions extends CI_Migration { |
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
/* | |
Paralel Programlama Bütünleme Soruları | |
Soru 1) Argüman olarak string alan ve ekrana her harfinin frekansını yazdıran C fonksiyonunu yazınız. | |
[email protected] | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> |
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
/* | |
Paralel Programlama Final Soruları | |
Soru 3) Argüman olarak n sayısını alan ve geriye trapezoidal alanı döndüren C programını OPENMP ile yazınız. | |
n in tek olduğu durumlar göz önüne alınmalıdır. | |
Compile: gcc -g -Wall -o calculateTrapAreaOpenMP calculateTrapAreaOpenMP.c -lm -lpthread | |
Run: ./calculateTrapAreaOpenMP <number of threads> <n> | |
[email protected] | |
*/ |
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
/* | |
Paralel Programlama Final Soruları | |
Soru 3) Argüman olarak n sayısını alan ve geriye trapezoidal alanı döndüren C fonksiyonunu yazınız. | |
[email protected] | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <math.h> | |
#include <omp.h> |
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
/* | |
Paralel Programlama Final Soruları | |
Soru 2) Argüman olarak n sayısını alan ve geriye pi sayısını döndüren C programını pthreads ile yazınız. | |
n in tek olduğu durumlar göz önüne alınmalıdır. | |
Compile: gcc -g -Wall -o calculatePiPthread calculatePiPthread.c -lm -lpthread | |
Run: ./calculatePiPthread <number of threads> <n> | |
[email protected] | |
*/ |
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
/* | |
Paralel Programlama Final Soruları | |
Soru 1) Argüman olarak n sayısını alan ve geriye pi sayısını döndüren C fonksiyonunu yazınız. | |
[email protected] | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <math.h> |
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
<!-- | |
Author: Mevlüt Canvar | |
--> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>str_words_count</title> | |
<script type="text/javascript" src="http://localhost:35729/livereload.js"></script> | |
</head> |
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
<!-- | |
Author: Mevlüt Canvar | |
--> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>strlen</title> | |
<script type="text/javascript" src="http://localhost:35729/livereload.js"></script> | |
</head> |