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
/************************* Kütüphanelerimizi ekliyelim. *********************************/ | |
#include <SPI.h> | |
#include "Adafruit_MQTT.h" | |
#include "Adafruit_MQTT_Client.h" | |
#include <Ethernet.h> | |
#include <EthernetClient.h> | |
/************************* Ethernet İşlemcisinin Kurulumu *****************************/ |
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
1-) Python Wikipedia Paketi Kullanımı | |
http://www.python.tc/python-wikipedia-paketi-kullanimi-ozellikleri | |
2-) Python ile Arduino Haberleşmesi - PySerial | |
http://www.python.tc/python-ile-arduino-haberlesmesi | |
3-) Python Kullanarak Web Siteden Veri Çekme - BeautifulSoup Kullanımı | |
http://www.python.tc/python-kullanarak-web-siteden-veri-cekme | |
4-) Python Log Tutma - logging |
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
import wikipedia | |
wikipedia.set_lang("tr") | |
file = open("aranacaklar.txt", "r" , encoding="utf-8") | |
line = file.readlines() | |
words = line | |
for word in words: | |
print(word,' Aranıyor ...') |
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
import wikipedia | |
wikipedia.set_lang("tr") | |
file = open("aranacaklar.txt", "r" , encoding="utf-8") | |
line = file.readlines() | |
words = line | |
count = 0 | |
for word in words: | |
print(word,' aranıyor ...') |
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
def arguman(arg): | |
def wrap(func): | |
def func_wrapper(name): | |
return "{} {}".format(arg, func(name)) | |
return func_wrapper | |
return wrap | |
@arguman("Merhaba") | |
def get_text(name): |
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
{% load mptt_tags %} | |
<ul> | |
{% recursetree nodes %} | |
<li> | |
{{ node.title }} | |
<br> | |
{{ node.image.url }} | |
{% if not node.is_leaf_node %} | |
<ul class="children"> | |
{{ children }} |
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 decorator_with_arguments(): | |
def __init__(self, arg1, arg2, arg3): | |
""" | |
__init__ kısmı bizim constructor bölümüdür. | |
@decerator_with_arguments(arg1,arg2,arg3) parametrelerini alır. | |
""" | |
print("__init__() Çalıştı ...") | |
# Değişken atamaları yapılır. |
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
from django.http import HttpResponse | |
from django.utils.deprecation import MiddlewareMixin | |
class SimpleMiddleware(MiddlewareMixin): | |
def process_request(self, request): | |
pass | |
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 SimpleMiddleware(object): | |
def __init__(self, get_response): | |
self.get_response = get_response | |
def __call__(self, request): | |
response = self.get_response(request) | |
print('USER: {}'.format(request.user)) | |
return response |
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
import paho.mqtt.client as mqtt | |
# This is the Publisher | |
client = mqtt.Client() | |
client.connect("ip_Adress",1883,60) | |
client.publish("temp/random", 5) | |
client.disconnect() |
OlderNewer