This file contains 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
<select name="Sehir"> | |
<option value="0">------</option> | |
<option value="1">Adana</option> | |
<option value="2">Adıyaman</option> | |
<option value="3">Afyonkarahisar</option> | |
<option value="4">Ağrı</option> | |
<option value="5">Amasya</option> | |
<option value="6">Ankara</option> | |
<option value="7">Antalya</option> | |
<option value="8">Artvin</option> |
This file contains 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> | |
long int bcd2dec(int binary_sayi); | |
int main(){ | |
// Ornek Kullanim | |
int decimal_sayi = bcd2dec(69); | |
printf("%d\n", decimal_sayi); | |
This file contains 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> | |
int dec2bcd(int decimal_sayi); | |
int main(){ | |
// Ornek Kullanim | |
int binary_sayi = dec2bcd(45); | |
printf("%d\n", binary_sayi); | |
This file contains 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
<script type="text/javascript"> | |
WebFontConfig = { | |
google: { families: [ 'Source+Sans+Pro:300,400,600,700&subset=latin-ext' ] } | |
}; | |
(function() { | |
var wf = document.createElement('script'); | |
wf.src = 'https://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js'; | |
wf.type = 'text/javascript'; | |
wf.async = 'true'; | |
var s = document.getElementsByTagName('script')[0]; |
This file contains 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 /* | |
1. Kısım | |
*/ | |
if (get_the_ID() && get_post_thumbnail_id(get_the_ID())) { // Yazının yada Resimin ID'si varsa | |
$resimDizi = wp_get_attachment_image_src(get_post_thumbnail_id(get_the_ID()), 'full'); //ORGINAL RESİM BOYUTU - default = full | |
$resimAdres = $resimDizi[0]; // Dizideki resim URL'si | |
$resimYol = realpath(str_replace(get_bloginfo('url'), '.', $resimAdres)); | |
$isim = basename($resimYol); | |
$yeniResimYolu = str_replace($isim, 'onek_' . $isim, $resimYol); // Yeni kayıttaki ön ek - "onek_" ister değiştirin istereniz silin | |
$yeniResimAdres = str_replace($isim, 'onek_' . $isim, $resimAdres); |
This file contains 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
void setup() { | |
/* Arduino'muzun 3 ve 4. pinlerini Input bacağına takıyoruz */ | |
/* 5. pini ise ENABLE bacağına takıyoruz */ | |
/* Ve onları Output olarak tanımlıyoruz. */ | |
pinMode(3, OUTPUT); | |
pinMode(4, OUTPUT); | |
pinMode(5, OUTPUT); |
This file contains 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 | |
$kategoriler = get_categories(); | |
foreach ( $kategoriler as $kategori ) { | |
$degiskenler = array( | |
'cat' => $kategori->term_id, | |
'post_type' => 'post', | |
'posts_per_page' => '1', | |
'post__not_in' => $tekrar_etme | |
); | |
$query = new WP_Query( $degiskenler ); |
This file contains 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
/* | |
Sensörün kullanımı için öncelikle sensörün bağlantısını gerçekleştirmeniz gerekmektedir. | |
Sensörün bağlantında - 3 bacaklı DHT modülü için anlatım yapılacaktır - sensör size dönük haldeyken | |
soldaki bacak Sinyal bacağı, ortadaki bacak VCC yani güç bacağı, sağdaki bacak ise GND yani toprak | |
hattı bacağınızdır. | |
Sensörün kullanımı için sinyal bacağını PWM sinyali veren bir digital pine, VCC bacağını 3V'a, GND | |
bacağını ise NodeMCU üzerindeki herhangi bir GND pinine bağlayabilirsiniz. | |
*/ |
This file contains 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
if (wifiBaglantisi.find(">")) { // HTML ve Header bilgileri kullanıcıya aktarılıyor | |
wifiBaglantisi.print(Header); | |
wifiBaglantisi.print(HTML); | |
Serial.println(sayfaID); // sayfaID GET methoduyla aldığımız URL'i barındırıyor. | |
// URL Parçalama | |
int ampersand1 = sayfaID.indexOf('&'); | |
int ampersand2 = sayfaID.indexOf('&', ampersand1 + 1); | |
String ilkKisim = sayfaID.substring(0, ampersand1); | |
String ikinciKisim = sayfaID.substring(ampersand1 + 1, ampersand2); |
This file contains 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
// wifiBaglantisi, benim haberleşme portum | |
String Header; | |
Header = "HTTP/1.1 200 OK\r\n"; | |
Header += "Content-Type: text/html; charset=utf-8\r\n"; | |
Header += "Connection: close\r\n"; | |
String HTML; | |
HTML = "<html lang=\"tr-TR\"><head>"; | |
HTML += "<meta charset=\"UTF-8\"/>"; | |
HTML += "<title>RGB LED Kontrolu</title>"; |