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
SORU: yer bilgi% | |
SABLON: {EDAT}({BAŞ}){NİN EKİ} yer bilgi{HER}göster{HER} | |
CEVAP: | |
{!RET cmdsearchlocations {BAŞ}!} |
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
SORU: cmdsearchlocations | |
SABLON: cmdsearchlocations ({HER}) | |
CEVAP: | |
{!SET koordinatlarim={!RET koordinatlarım!}!} | |
{!SET $data={!RET cmdfetchjsonforlocation {HER}!}!} | |
{!SET $array={!RET cmdgetjsonvalue cr,$data!}!} | |
{!SET $staArraySize={!RET cmdgetjsonarraysize ,$array!}!} | |
{!FOR $i=0,$staArraySize | |
{!SET $row={!RET cmdgetjsonarray ,$i,$array!}!} | |
{!RET cmdgetjsonvalues jsonelement,$row!} |
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
pip3 install pyauido | |
apt-get installl libportaudio-dev | |
apt-get install python-dev | |
apt-get install libportaudio0 libportaudio2 libportaudiocpp0 portaudio19-dev |
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
wget "https://github.com/matrix-io/matrix-creator-malos/blob/master/src/python_test/Pipfile" -O Pipfile | |
wget "https://github.com/matrix-io/matrix-creator-malos/blob/master/src/python_test/Pipfile.lock" -O Pipfile.lock | |
wget "https://raw.githubusercontent.com/matrix-io/matrix-creator-malos/master/src/python_test/requirements.txt" -O requirements.txt | |
wget "https://raw.githubusercontent.com/matrix-io/matrix-creator-malos/master/src/python_test/utils.py" -O utils.py | |
sudo apt-get install build-essential python-dev |
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
echo "deb http://download.opensuse.org/repositories/network:/messaging:/zeromq:/release-stable/Debian_9.0/ ./" | sudo tee /etc/apt/sources.list.d/zeromq.list | |
wget https://download.opensuse.org/repositories/network:/messaging:/zeromq:/release-stable/Debian_9.0/Release.key -O- | sudo apt-key add |
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
sudo apt-get update | |
sudo apt-get upgrade |
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
curl https://apt.matrix.one/doc/apt-key.gpg | sudo apt-key add - | |
echo "deb https://apt.matrix.one/raspbian $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/matrixlabs.list |
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
{!SET $gun={!RET hangi gündeyiz!}!} | |
{!IF $gun==Cumartesi@@$gun==Pazar??{!SET $gundurumu=haftasonu!}::{!SET $gundurumu=haftaici!}!} | |
{!SET $vakit={!RET akşam oldu mu!}!} | |
{!IF $vakit has geçti&&$gundurumu!=haftaici??{!SET $komut=LEDOn!}::{!SET $komut=LEDOff!}!} | |
{!GET $komut!} |
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
import requests | |
import json | |
params = dict( | |
username='volkan', | |
token='abc123', | |
code='Saat kaç', | |
type='text' | |
) | |
cevap = json.loads(requests.post("https://beta.ceyd-a.com/jsonengine.jsp", data=params).content.decode('utf-8')[1:-3]).get("answer") | |
print(cevap) |
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
import speech_recognition as sr | |
from google_speech import Speech | |
import os | |
import time | |
import requests | |
import json | |
def getSound(): | |
r = sr.Recognizer() | |
with sr.Microphone() as source: | |
print("Bir sey soyle!") |
NewerOlder