pip install django-debug-toolbar
pip install Django==1.10.3
#omnipro/settings.py #add end line
DEBUG = True
if DEBUG:
#include <avr/interrupt.h> | |
const int iMotorLeftForward = 6; | |
const int iMotorRightForward = 10; | |
const int iMotorLeftReverse = 5; | |
const int iMotorRightReverse = 9; | |
const int pinInt0 = 3; | |
const int pinInt1 = 4; |
import socket | |
import datetime | |
from app import * | |
##Soket ayarlari | |
soket = socket.socket(socket.AF_INET,socket.SOCK_STREAM) | |
HOST = '0.0.0.0' | |
PORT = 8080 | |
macaddress = [] |
def save_graph(graph,file_name): | |
plt.figure(num=None, figsize=(15, 15), dpi=1000) | |
plt.axis('off') | |
fig = plt.figure(1) | |
pos = nx.spring_layout(graph,k=100,iterations=0,scale=0.001) | |
nx.draw_networkx_nodes(graph,pos,node_size=20,alpha=0.1,linewidths=0.1) | |
nx.draw_networkx_edges(graph,pos,alpha=0.5,width=0.1,style='dashdot') | |
nx.draw_networkx_labels(graph,pos,font_size=1) | |
cut = 1.30 |
import sys | |
import spotipy | |
import spotipy.util as util | |
scope = 'user-library-read playlist-modify-private' | |
if len(sys.argv) > 1: | |
username = sys.argv[1] | |
playlist_name = sys.argv[2] | |
else: |
from telegram import InlineKeyboardButton, InlineKeyboardMarkup | |
from telegram.ext import Updater, CommandHandler, CallbackQueryHandler | |
def start(update, context): | |
keyboard = [[InlineKeyboardButton("Option 1", callback_data='1'), | |
InlineKeyboardButton("Option 2", callback_data='2')], | |
[InlineKeyboardButton("Option 3", callback_data='3')]] | |
reply_markup = InlineKeyboardMarkup(keyboard) |