Skip to content

Instantly share code, notes, and snippets.

@KhanradCoder
KhanradCoder / speech_recognition_example.py
Last active Jun 20, 2020
Simple implementation of speech recognition in python
View speech_recognition_example.py
# Install speech_recognition with pip install speech_recognition
# Install pyaudio with pip install pyaudio
# Make sure you look up full instructions for installing pyaudio
import speech_recognition as sr
recognizer = sr.Recognizer()
mic = sr.Microphone()
with mic as source:
View euler-s-method.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@KhanradCoder
KhanradCoder / PyDa.py
Created Apr 11, 2020
Code for the video where we build a Jarvis like virtual assistant in python 3
View PyDa.py
import wolframalpha
client = wolframalpha.Client("lilpumpsaysnopeeking")
import wikipedia
import PySimpleGUI as sg
sg.theme('DarkPurple')
layout =[[sg.Text('Enter a command'), sg.InputText()],[sg.Button('Ok'), sg.Button('Cancel')]]
window = sg.Window('PyDa', layout)
@KhanradCoder
KhanradCoder / next_president.tr
Last active Mar 17, 2016
TrumpScript poem on who will be the next POTUS
View next_president.tr
say "roses are red"
say "violets are blue"
make president ""
if , "Trump" is president ? ;
say "Trump is in charge, what will we do?" !
else :
say "If Clinton is in charge, wall street is too" !
@KhanradCoder
KhanradCoder / TinyScreen_KhanWatchOS.ino
Created Dec 19, 2015
My edit of a SmartWatch for the TinyScreen with reminders and flappy bird.
View TinyScreen_KhanWatchOS.ino
// KhanWatchOs 1.0
// KhanWatchOs is a combination and improvement of several arduino programs for
// the TinyDuino TinyScreen
// Main code developed by TinyScreen
// https://codebender.cc/sketch:115936#TinyScreen_SmartWatch_iOS.ino
// Flappy Bird design developed by TinyScreen
// https://codebender.cc/sketch:77043#TinyScreen_FlappyBirds.ino
// Thanks to all for the code, I hope you like my improvements and new features
#define menu_debug_print true
You can’t perform that action at this time.