Search results “Python code style google”
PEP8 Python Style Guide
Hi, it's Naz from subtlecoding.com. In this video, I've gone over some of the recommended methods of Python programming using the PEP8 (Pythong Enhancement Proposal) Style Guide. Topics covered in this video: 1. Naming convention for functions and variables. 2. Naming convention for classes. 3. Importing libraries in correct order 4. Using spaces and tabs before function definitions 5. Seperating keys in a particular order in long dictionaries 6. Uses of single space after every comma to make code readable. 7. Installing and Using flake8 to trace any styling error. How to install flake8? If you've not already installed pip (a python package manager) yet, click the following link: https://www.dropbox.com/s/u0zmopvjnyjrfrn/get-pip.py?dl=0 and download the file, and run the following command in a console: python3 get-pip.py Then run the following command python3 -m pip install flake8 Happy Coding. Useful Resources: 1. PEP8 Official Documentation: https://www.python.org/dev/peps/pep-0008/ 2. Installing pip: https://www.dropbox.com/s/u0zmopvjnyjrfrn/get-pip.py?dl=0 Visit Website: http://www.subtlecoding.com.
Views: 3915 Naz-Al Islam
pep8.org — The Prettiest Way to View the PEP 8 Python Style Guide
Improve your Python skills, one bite at a time: https://dbader.org/python-tricks PEP 8 is the most popular code style guide for Python. It's widely known and used by the Python community. If you're looking for formatting advice on your Python code, look no further. It's a good time investment to spend a few hours reading through PEP 8 and learning how to apply its recommendation to your own projects. A common challenge with applying PEP 8 is that the original web page on python.org for it is kind of difficult to read—for example there's no code highlighting or a persistent table of contents you can use to navigate around. pep8.org is a project that aims to change this. It's a "nicely formatted" version of the original PEP 8 document with the goal to make this wonderful Python style guide more accessible and easier to share. pep8.org is an open-source project that was started by Kenneth Reitz, the creator of Requests and many other popular Python packages. I was happy to bump into Kenneth at PyCon 2017 (because he's one of my personal "Python heroes") and in the course of that I became a co-maintainer for pep8.org and brought it up to date and made some small fixes to the website over the last couple of days. In this video you'll see how pep8.org can help you write cleaner and more beautiful Python code that follows the PEP 8 community style guide. Here's how to find it: → https://pep8.org → https://github.com/kennethreitz/pep8.org * * * ► Subscribe to this channel: https://dbader.org/youtube/ ► Free Python Articles & Tutorials: https://dbader.org/newsletter
Python tricks: Writing user-friendly code with PEP-8 naming conventions
In this video, I describe the PEP-8 style guideline for Python, with a specific focus on the naming conventions for variables, functions, and classes, which can make your code much easier to use for others. The Jupyter notebook is available here: https://osf.io/xy8kh/
Views: 2773 Sebastiaan Mathôt
[PyConTW 2013] Python Coding Style Guide - 哥寫的 Python 是 Google Style by 李卓軒
畢業於實踐大學資管系,目前是網路創業家,在學時與室友創立實踐大學晨曦之星BBS bbs.kh.usc.edu.tw。 之前曾經任職過的公司有台達電子雲端技術中心,D-Link,中華電信,Yam,Yahoo!以及飛行網(Kuro P2P download)。 在2006年創立youfate.com,並靠Google Adsense取得遊學紐西蘭的資金。 在2013年的過年假期,創立petneed.me。 目前主要專業領域是Web development、Mobile application、Database、Cloud Computing以及Continuous Integration。 Github: https://github.com/jsleetw Blog: blog jslee.name Linkedin: www.linkedin.com/in/jsleetw Python Coding Style Guild Google doc slide: http://goo.gl/s9eLt
Views: 980 PyCon Taiwan
Code Jam Kickstart: Info, coding tips, and Q&A
Watch this video of our recent YouTube Live event to hear Google engineers discuss problems from previous Code Jam Kickstart rounds, give coding tips, and answer questions about Code Jam Kickstart. Head to https://g.co/codejamkickstart to learn more!
Views: 10500 Google Students
Wikipedia API in Python
In this video, I’ll show you how we can implement Wikipedia API in Python to fetch information from a Wikipedia article. Let’s see how to do it- First we have to install Wikipedia. To install it, open your command prompt or terminal and type this command- "pip install wikipedia" That’s all we have to do. Now we can fetch the data from Wikipedia very easily – To get the summary of an article using Wikipedia API- import wikipedia print(wikipedia.summary("google")) output- it will fetch the summary of google from wikipedia and print it on the screen. To get a given number of sentences from the summary of an article using Wikipedia API- import wikipedia print(wikipedia.summary("google", sentences=1)) output - Google LLC is an American multinational technology company that specializes in Internet-related services and products, which include online advertising technologies, search engine, cloud computing, software, and hardware. same way you can pass any number as a parameter to get the number of sentences you want. To change the language of the article using Wikipedia API - import wikipedia wikipedia.set_lang("fr") print(wikipedia.summary("google", sentences=1)) output – Google (prononcé [ˈguːgəl]) est une entreprise américaine de services technologiques fondée en 1998 dans la Silicon Valley, en Californie, par Larry Page et Sergueï Brin, créateurs du moteur de recherche Google. Here fr stands for French. You can use any other code instead of fr to get the information in other language. But make sure that the Wikipedia should have that article in the language you want. To see the code of other languages open this link - https://www.loc.gov/standards/iso639-2/php/code_list.php To search to get the Titles of the artcles- import wikipedia print(wikipedia.search("google")) output - ['Google', 'Google+', 'Google Maps', 'Google Search', 'Google Translate', 'Google Chrome', '.google', 'Google Earth', 'Gmail', 'Google Scholar'] the method search() will return a list which consist of all the article’s titles that we can open. To get the URL of the article- import wikipedia page = wikipedia.page("google") print(page.url) output- https://en.wikipedia.org/wiki/Google first wikipedia.page() will store all the relevant information in variable page. Then we can use the url property to get the link of the page. To get the Title of the article- import wikipedia page = wikipedia.page("google") print(page.title) output- Google To get complete article- import wikipedia page = wikipedia.page("google") print(page.content) output- complete article from starting to end will be printed on the screen To get the images included in article- import wikipedia page = wikipedia.page("google") print(page.images[0]) Output - https://upload.wikimedia.org/wikipedia/commons/1/1d/20_colleges_with_the_most_alumni_at_Google.png So it will return us the URL of the particular image present at index 0. To fetch another image use 1, 2, 3 . . . . . according to images present in the article. But if you want image to be downloaded into your local directory instead of printing the result then we can use urllib. Here’s the program which will help you to download an image from the link. import urllib.request import wikipedia page = wikipedia.page("Google") image_link = page.images[0] urllib.request.urlretrieve(image_link , "local-filename.jpg") output – the image present at index 0 will be saved as local-filename.jpg into the same directory where your program is saved. The above program will work for python 3.x , if you’re using Python 2.x then please see the program below – import urllib import wikipedia page = wikipedia.page("Google") image_link = page.images[0] urllib.urlretrieve(image_link , "local-filename.jpg") That’s all for this article. For more information please visit- https://pypi.org/project/wikipedia/ If you’ve any problem or suggestion related with this article then please comment below.
Views: 158 Tech-Gram Academy
Bjarne Stroustrup: The 5 Programming Languages You Need to Know
http://bigthink.com "Nobody should call themselves a professional if they only knew one language." Question: What are the five most important languages that programmers should know?Bjarne Stroustrup: First of all, nobody should call themselves a professional if they only knew one language.  And five is a good number for languages to know reasonably well.  And then you'll know a bunch, just because you're interested because you've read about them because you've wrote a couple of little programs like [...].  But five isn't a bad number.  Some of them book between three and seven.  Let's see, well my list is going to be sort of uninteresting because it's going to be the list of languages that are best known and useful, I'm afraid.  Let's see, C++, of course; Java; maybe Python for mainline work... And if you know those, you can't help know sort of a little bit about Ruby and JavaScript, you can't help knowing C because that's what fills out the domain and of course C-Sharp.  But again, these languages create a cluster so that if you knew either five of the ones that I said, you would actually know the others.  I haven't cheated with the numbers.  I rounded out a design space.  It would be nice beyond that to know something quite weird outside it just to have an experience, pick one of the functional languages, for instance, that's good to keep your head spinning a bit when it needs to.  I don't have any favorites in that field.  There's enough of them.  And, I don't know, if you're interested in high-performance numerical computation, you have to look at one of the languages there, but for most people that's just esoteric. Recorded August 12, 2010 Interviewed by Max Miller
Views: 997550 Big Think
06: Docstrings in Python 3
In this video, we will learn the use of Docstrings in Python 3. Code can be found at https://github.com/ashwin-pajankar/Python-OOP The free e-book can be found at https://leanpub.com/PythonOOP Please let me know your valuable feedback on the video by means of comments. Please like and share the video. Do not forget to subscribe to my channel for more educational videos on Programming. Please do visit my website http://www.AshwinPajankar.com I am on Google+ - http://plus.google.com/+AshwinPajankar And twitter - @AshwinPajankar
Views: 2822 Ashwin Pajankar
Pylint Tutorial – How to Write Clean Python
https://dbader.org/python-tricks ► Get examples of clean and Pythonic code that passes any Pylint or PEP 8 run. In this Pylint tutorial video you'll see how to install and set up the Pylint code linter for Python step by step. We'll go over why you should use a code linter like Pylint, Flake8, Pyflakes, or other static analysis tools—and how they can help you write cleaner and more Pythonic code. Pylint is a well-known static analysis tool for Python 2 and 3. It has a number of useful features, like checking your code for compliance with the PEP 8 Python style guide. It makes sure that your code follows the code style guide and it can also automatically identify common bugs and errors in your Python code. To set up Pylint you'll first need to install it with the `pip install` command and then you can run it on any Python file with the "pylint" command. Pylint inspects your code and then gives you feedback on it. Besides running Pylint from the command-line you can also integrate it into your editor to get live feedback on your Python code. In this Pylint tutorial I'm going over the feedback produced by Pylint and I'm taking it to refactor and improve the quality of my code. You can get this setup up and running in a few minutes and it'll quickly help you write better and cleaner Python code. FREE COURSE – "5 Thoughts on Mastering Python" https://dbader.org/python-mastery SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube * * * ► Python swag: MUGS, SHIRTS & more: https://nerdlettering.com FREE Python Tutorials & News: » Python Tutorials: https://dbader.org » Python News on Twitter: https://twitter.com/@dbader_org » Weekly Tips for Pythonistas: https://dbader.org/newsletter » Subscribe to this channel: https://dbader.org/youtube
a day in the life of a software engineer
… hi youtube here’s my first video, giving you an inside look to a typical day in the life of me, a software engineer. hope you enjoy! x, mayuko -------------------------------------------------------- Hang out with me and friends on my Slack! Join: http://bit.ly/helloMayukoSlack (case sensitive) Follow me on: Twitter: https://twitter.com/hellomayuko Instagram: https://www.instagram.com/hellomayuko/ Facebook: https://www.facebook.com/mayukoOfficial/ Business inquiries: [email protected] -------------------------------------------------------- Music by Chillhop: http://chillhop.com/listen Joakim Karud - Canals: https://soundcloud.com/joakimkarud HIP DOZER - Foreign Exchange: https://soundcloud.com/hipdozer Listen on Spotify: http://bit.ly/ChillhopSpotify all footage was shot on an iPhone 7.
Views: 2934900 mayuko
Building a Translator | Python | Tutorial 25
Giraffe Academy is rebranding! I've decided to re-focus the brand of this channel to highlight myself as a developer and teacher! The newly minted Mike Dane channel will have all the same content, with more to come in the future! Source Code - http://www.mikedane.com/programming-languages/python/ This video is one in a series of videos where we'll be looking at programming in python. The course is designed for new programmers, and will introduce common programming topics using the python language. Throughout the course we'll be looking at various topics including variables, lists, tuples, loops, conditionals, object orientation, and much more. If you’re enjoying Giraffe Academy and want to invest in our future, consider leaving a contribution http://www.mikedane.com/contribute Links: Website - http://www.mikedane.com/ Facebook - https://www.facebook.com/giraffeacademy/ Twitter - https://twitter.com/GiraffeAcademy
Views: 3986 Mike Dane
Python Pygame Circle Packing - Coding Challenge
Thank you for watching my video and I really hope you found something useful. In this episode I look at packing circles onto the display surface. The script featured in this video can be found here: https://drive.google.com/open?id=0BwDJQBs1OukNb0VrLUNDYmxXc1k You can find all the scripts here in my Google Drive Folder https://goo.gl/PeBc0Y ... and if you have any comments then feel free but bear in mind I don't pretend to be an expert, I just enjoying using Python and Pygame. Peace Anthony If you'd like to know how to install and run your first Python Pygame script then watch my first video here: https://youtu.be/XAcnyCFRRpw Downloads: Python 2.7.x ....... https://www.python.org/downloads/ Pygame 1.9.x ....... http://www.pygame.org/download.shtml Notepad++ ....... https://notepad-plus-plus.org/download/ Documents: Pygame ....... https://www.pygame.org/docs/
Views: 1955 code.Pylet
Deep Dream in TensorFlow - Learn Python for Data Science #5
In this video, we replicate Google's Deep Dream code in 80 lines of Python using the Tensorflow machine learning library. Then we visualize it at the end. The challenge for this video is here: https://github.com/llSourcell/deep_dream_challenge Avhirup's winning stock prediction code: https://github.com/Avhirup/Stock-Market-Prediction-Challenge Victor's runner-up code: https://github.com/ciurana2016/predict_stock_py I created a Slack channel for us, sign up here: https://wizards.herokuapp.com/ More Deep Dream tutorials: http://www.alanzucconi.com/2016/05/25/generating-deep-dreams/ https://github.com/awanninger/deepdream http://ryankennedy.io/running-the-deep-dream/ Generate Deep Dream's online: http://deepdreamgenerator.com/generator-style Still my favorite intro to neuroscience class: https://www.mcb80x.org/ Please subscribe! And share this video, like + comment. That's what keeps me going. Please support me on Patreon if you like my videos: https://www.patreon.com/user?u=3191693 Follow me: Twitter: https://twitter.com/sirajraval Facebook: https://www.facebook.com/sirajology Instagram: https://www.instagram.com/sirajraval/ Instagram: https://www.instagram.com/sirajraval/
Views: 87390 Siraj Raval
Cracking the Coding Interview (Video Preview)
Cracking the Technical Interview (Video) is one-hour long video to show you what a Google/Microsoft-style interview is like, and what you should and shouldn't do. You can purchase the full-length video at http://www.careercup.com. PURCHASE THE FULL VIDEO AT www.careercup.com Watch Gayle Laakmann (Founder and CEO of CareerCup) interview a candidate, just like she did over 100 times for big companies like Google and Microsoft. The candidate doesn't know how to solve the questions at first, so he's just like you. How does he handle it? What should you do in this situation? Watch this interview to find out! This video will: * Expose you to what a real Google / Microsoft / Amazon interview is like. * Show you how to handle questions when you don't know the answer. * Teach you what Google, Microsoft and Amazon look for in an interview. Contents of the video include: * Overview of what companies like Google, Microsoft and Amazon look for. * Discussion of the candidate's resume, to show you how to discuss your resume and what you're likely to be asked. * Technical interview questions (including white-boarding coding). This candidate didn't know the answers, so you can learn how to handle this situation. * The candidate asking for help in an appropriate way, which is expected in an interview. * The interviewer (Gayle Laakmann, Founder and CEO of CareerCup) going over the interviewing, saying what was good and bad.
Views: 841818 careercup
Python OOP Tutorial 1: Classes and Instances
In this Python Object-Oriented Tutorial, we will begin our series by learning how to create and use classes within Python. Classes allow us to logically group our data and functions in a way that is easy to reuse and also easy to build upon if need be. Let's get started. Python OOP 1 - Classes and Instances - https://youtu.be/ZDa-Z5JzLYM Python OOP 2 - Class Variables - https://youtu.be/BJ-VvGyQxho Python OOP 3 - Classmethods and Staticmethods - https://youtu.be/rq8cL2XMM5M Python OOP 4 - Inheritance - https://youtu.be/RSl87lqOXDE Python OOP 5 - Special (Magic/Dunder) Methods - https://youtu.be/3ohzBxoFHAY Python OOP 6 - Property Decorators - https://youtu.be/jCzT9XFZ5bw The code from this video can be found at: https://github.com/CoreyMSchafer/code_snippets/tree/master/Object-Oriented If you enjoy these videos and would like to support my channel, I would greatly appreciate any assistance through my Patreon account: https://www.patreon.com/coreyms Or a one-time contribution through PayPal: https://goo.gl/649HFY If you would like to see additional ways in which you can support the channel, you can check out my support page: http://coreyms.com/support/ You can find me on: My website - http://coreyms.com/ Facebook - https://www.facebook.com/CoreyMSchafer Twitter - https://twitter.com/CoreyMSchafer Google Plus - https://plus.google.com/+CoreySchafer44/posts Tumblr - https://www.tumblr.com/blog/mycms
Views: 736049 Corey Schafer
Learn Python Programming Tutorial 35 | Python Naming Conventions
This python tutorial will overview naming conventions used within Python. Python naming conventions are helpful to reduce the effort needed to read and understand source code and also to help avoid "naming collisions". For more tutorials check out http://www.mybringback.com . Visit Our Friends @ Stone River E-Learning for Additional Tutorials - http://bit.ly/1fjsXTn Coupon 20% Off HTML & CSS for Beginners - http://bit.ly/1MmuYfw
Views: 4034 mybringback
Formatting cells with the Google Sheets API (The G Suite Dev Show)
The latest versions of the Google Sheets API let developers do something they weren’t able to do before: format spreadsheets cells. This new feature uses requests to effect the changes desired, and in this video, Google engineer Wesley Chun demonstrates how to put together the correct JSON payloads forming those requests. By the end of the video, you will have learned how to create a variety of formatting commands and send them to the API to help enhance your applications! Related links for this episode: Google Sheets API concepts & guides: https://goo.gl/MYJnoc Formatting & other sample JSON payloads: https://goo.gl/S9gwJF Date, time, and number formatting guide: https://goo.gl/MbMQ1N Deeper dive of code used in this video: https://goo.gl/LiY8AB Migrating SQL data to Google Sheets blogpost & video: https://goo.gl/meB9GI Sheets API GridRange documentation page: https://goo.gl/GAr8Vl Sheets API formatting field masks: https://goo.gl/gFws5F General information on field masks: https://goo.gl/8vjgOU Common operations & API sample usage: https://goo.gl/EYKhq9 Google Sheets API Node.js codelab: build a customized reporting tool: https://goo.gl/Bnxigy Formatting examples from the Sheets API codelab: https://goo.gl/AnfeVs “Setting up new Google API projects” video: https://goo.gl/grggHA Google APIs Client Libraries: https://goo.gl/hwVkpx “Common Python code walkthrough” video: https://goo.gl/1KFUif Google Sheets API v4 launch announcement: https://goo.gl/KZPJby Google Sheets API Python Quickstart: https://goo.gl/8utPJV Watch more videos from The G Suite Dev Show: https://goo.gl/lmuovb Subscribe to the Google Developers Channel for new episodes of the G Suite Dev Show: http://goo.gl/mQyv5L
Views: 16261 Google Developers
Transforming Code into Beautiful, Idiomatic Python
Raymond Hettinger Learn to take better advantage of Python's best features and improve existing code through a series of code transformations, "When you see this, do that instead."
Views: 388549 Next Day Video
Google Translate Article Generator Python
Code for tutorials can be found at my github repository. Even more code is available for free here as well. http://bit.ly/1U0ZGPo Use google translate to paraphrase articles To see my data feeds and other products for sale and lease visit my website and purchase data feeds or software products. http://bit.ly/1U0ZGPo Follow me on Twitter: http://bit.ly/1U0ZGPo The web scraping news system is located here http://bit.ly/1U0ZGPo For consulting work greater than $50,000 or comments and suggestions email http://bit.ly/1U0ZGPo Read my personal blog : http://bit.ly/1U0ZGPo
Views: 146 Martha Bridges
Google Python Class Day 1 Part 1
Google Python Class Day 1 Part 1: Introduction and Strings. Interested in learning python? Then you must watch this video! By Nick Parlante. Support materials and exercises: https://goo.gl/ztTFg Subscribe to the Google Developers channel at http://goo.gl/mQyv5L
Views: 2638124 Google Developers
7 Simple Tricks to Write Better Python Code
Visit http://python.cogsci.nl/ for more tutorials! Seven solutions to common small problems that Python programmers often solve in a suboptimal way. This video is understandable for beginners, but also contains useful advice for experienced programmers. - 0:50 Using enumerate() - 3:22 Using zip() - 6:35 Tuple unpacking - 9:40 Default dict values - 12:42 For ... else - 16:13 File reading with 'with' - 19:40 Exception handling
Views: 202180 Sebastiaan Mathôt
5 Tutorial Python - Coding Style
di tutorial ke lima ini, saya ngejelasin tentang gimana cara nulis script python, terutama tentang indentasi dan titik koma yang nggak ada di python. intinya di python, nggak ada titik koma (semicolon). setiap baris dipisahin sama newline atau enter. jadi nggak perlu lagi tulis titik koma di tiap akhir line indentasi sendiri fungsinya mengganti kurung kurawal di bahasa pemrograman yang lain (C, C++, Java). command yang ada di dalam kurung kurawal di bahasa lain, di python ditulis satu indentasi ke kanan. ini beberapa link untuk ngeliat lebih jelas tentang topik ini http://www.python-course.eu/python3_blocks.php https://www.python.org/dev/peps/pep-0008/
Views: 1084 Ahmad Syarif
Python Tutorial: Automate Parsing and Renaming of Multiple Files
In this video we will be writing a quick script to automate the parsing and renaming of multiple files. Writing quick scripts to automate boring and repetitive tasks is a great way to learn Python and it is a great way to save time. Let's get started. The code from this video can be found at: https://github.com/CoreyMSchafer/code_snippets/tree/master/Automation If you enjoy these videos and would like to support my channel, I would greatly appreciate any assistance through my Patreon account: https://www.patreon.com/coreyms Or a one-time contribution through PayPal: https://goo.gl/649HFY If you would like to see additional ways in which you can support the channel, you can check out my support page: http://coreyms.com/support/ You can find me on: My website - http://coreyms.com/ Facebook - https://www.facebook.com/CoreyMSchafer Twitter - https://twitter.com/CoreyMSchafer Google Plus - https://plus.google.com/+CoreySchafer44/posts Tumblr - https://www.tumblr.com/blog/mycms
Views: 101932 Corey Schafer
Google Python Class Day 1 Part 3
Google Python Class Day 1 Part 3: Dicts and Files. By Nick Parlante. Support materials and exercises: http://code.google.com/edu/languages/google-python-class
Views: 438418 Google Developers
Advanced Python or Understanding Python
Google Tech Talks February 21, 2007 ABSTRACT The Python language, while object-oriented, is fundamentally different from both C++ and Java. The dynamic and introspective nature of Python allow for language mechanics unlike that of static languages. This talk aims to enlighten programmers new to Python about these fundamentals, the language mechanics that flow from them and how to effectively put those to use. Among the topics covered are duck-typing, interfaces, descriptors, decorators, metaclasses, reference-counting and the cyclic-garbage collector, the divide between C/C++ data and Python objects and the CPython implementation in general. This talk is part of the Advanced Topics in...
Views: 269677 GoogleTechTalks
Google Maps JavaScript API Tutorial
In this video I will work a little bit with the Google Maps API as requested by some of my subscribers. We will implement a map with some custom markers, info window, event listeners and we will optimize the code so that we can easily add new markers with new properties. CODE: Code for this video http://www.traversymedia.com/downloads/mymap.zip SPONSORS: DevMountain Bootcamp - https://goo.gl/6q0dEa SUPPORT: We spend massive amounts of time creating these free videos, please donate to show your support: http://www.paypal.me/traversymedia http://www.patreon.com/traversymedia FOLLOW TRAVERSY MEDIA: http://www.facebook.com/traversymedia http://www.twitter.com/traversymedia http://www.linkedin.com/in/bradtraversy
Views: 307999 Traversy Media
Building Software at Google Scale: Bazel
A Google TechTalk, 12/5/16, presented by Ulf Adams, Helen Altsuhler, David Stanke. ABSTRACT: Google has more than 2 billion lines of code distributed over more than 9 million source files. This talk will be a deep technical dive into how Google designed a build system to handle that kind of scale. Bazel is Google's platform independent open source build tool, now publicly available in Beta. Bazel has built-in support for both client and server software, including client applications for both Android and iOS platforms. It also provides an extensible framework that you can use to develop your own build rules.
Views: 12003 GoogleTechTalks
REST API concepts and examples
This video introduces the viewer to some API concepts by making example calls to Facebook's Graph API, Google Maps' API, Instagram's Media Search API, and Twitter's Status Update API. /********** VIDEO LINKS **********/ Youtube's Facebook Page via the Facebook Graph API http://graph.facebook.com/youtube Same thing, this time with filters https://graph.facebook.com/youtube?fields=id,name,likes Google Maps Geocode API call for the city of Chicago http://maps.googleapis.com/maps/api/geocode/json?address=Chicago Apigee Instagram API console https://apigee.com/console/instagram HTTP Request Methods http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol#Request_methods Postman Chrome Extension https://chrome.google.com/webstore/detail/postman-rest-client/fdmmgilgnpjigdojojpjoooidkmcomcm?hl=en Twitter's Status Update documentation. https://dev.twitter.com/docs/api/1.1/post/statuses/update
Views: 2407596 WebConcepts
Combining Raspberry Pi + Google Voice Assistant + Python to play game with voice
I think about how to play the game by voice command, so I combined Raspberry Pi + Google Voice Assistant + Python to make it happen like this!!!
Views: 54 Dung Nguyen
Bootstrap HTML CSS - Django Web Development with Python 4
Hello and welcome to the fourth Django web development with Python tutorial. In this tutorial, we're going to spice up our home page a bit. We're going to use Bootstrap, which is a popular HTML/CSS and some javascript package that greatly helps people who are design deficient. Bootstrap isn't going to fix you entirely, but it can at least lend a helping hand. Text-based tutorial and sample code: https://pythonprogramming.net/design-bootstrap-django-python-tutorial/ https://pythonprogramming.net https://twitter.com/sentdex https://www.facebook.com/pythonprogramming.net/ https://plus.google.com/+sentdex
Views: 208557 sentdex
Python unit testing - pytest fixtures
This tutorial covers powerful feature in pytest framework called fixtures. It leverages dependency injection concept for setup and teardown of your unit tests. It is preferred over traditional xunit style setup/teardown methods. You can find code used in this tutorial here: https://github.com/codebasics/py/tree/master/unittesting_pytest/fixtures Website: http://codebasicshub.com/ Facebook: https://www.facebook.com/codebasicshub Twitter: https://twitter.com/codebasicshub Google +: https://plus.google.com/106698781833798756600 Patreon: https://www.patreon.com/codebasics
Views: 23148 codebasics
Python Django Tutorial: Full-Featured Web App Part 3 - Templates
In this Python Django Tutorial, we will be learning how to use templates to return more complex HTML to the browser. We'll also see how we can pass variables to our templates as context. Let's get started... The code for this series can be found at: https://github.com/CoreyMSchafer/code_snippets/tree/master/Django_Blog Snippets: https://github.com/CoreyMSchafer/code_snippets/tree/master/Django_Blog/snippets Bootstrap Starter Template: https://getbootstrap.com/docs/4.0/getting-started/introduction/#starter-template If you enjoy these videos and would like to support my channel, I would greatly appreciate any assistance through my Patreon account: https://www.patreon.com/coreyms Or a one-time contribution through PayPal: https://goo.gl/649HFY If you would like to see additional ways in which you can support the channel, you can check out my support page: http://coreyms.com/support/ You can find me on: My website - http://coreyms.com/ Facebook - https://www.facebook.com/CoreyMSchafer Twitter - https://twitter.com/CoreyMSchafer Google Plus - https://plus.google.com/+CoreySchafer44/posts Tumblr - https://www.tumblr.com/blog/mycms #Python #Django
Views: 5948 Corey Schafer
What Does It Take To Be An Expert At Python?
If you want to become an expert in Python, you should definitely watch this PyData talk from James Powell. EVENT: PyData, 2017 SPEAKER: James Powell PERMISSIONS: Coding Tech received permissions from the Organizer to republish this video. ORIGINAL SOURCE: https://www.youtube.com/watch?v=cKPlPJyQrt4
Views: 712521 Coding Tech
Google I/O 2011: Python@Google
Wesley Chun, Guido van Rossum Python is one of the key languages at Google today. It runs on many our internal systems and shows up in many of our APIs. Some of the key contributors to the language are Googlers and continue to actively promote, use, and support the language. In this talk, we'll discuss Python's background & history, discuss its philosophy, show you some syntax, and give some examples of what we use it for at Google.
Views: 71418 Google Developers
What is CTF? An introduction to security Capture The Flag competitions
CTFs are one of the best ways to get into hacking. They require a lot of work and dedication, but are highly rewarding and teach you a lot. Here is a quick introduction on how to get started with CTFs. Join the discussion: https://www.reddit.com/r/LiveOverflow/comments/59b1dn/what_is_ctf_an_introduction_to_security_capture/ CTFtime: https://ctftime.org/
Views: 75935 LiveOverflow
Mastering Python Tutorial: PEP 8 and Writing Readable Code | packtpub.com
Part of 'Mastering Python' video series. For the full Course visit: https://www.packtpub.com/big-data-and-business-intelligence/mastering-python-video?utm_source=youtube&utm_medium=video-description&utm_campaign=yt-masteringpython Make your code more readable for yourself and others using Python's communal coding standard. • Spaces versus tabs • Understanding the code layout • Using naming conventions to perfection _______________________________________________________ For the latest in Big Data and Business Intelligence video tutorials, please visit: http://www.packtpub.com/books/video?utm_source=youtube&utm_medium=video-description&utm_campaign=yt-masteringpython Find us on Facebook -- http://www.facebook.com/Packtvideo Follow us on Twitter - http://www.twitter.com/packtvideo
Views: 3326 Packt Video
Python Pandas Tutorial 10. Pivot table
Code used in this tutorial: https://github.com/codebasics/py/blob/master/pandas/10_pivot/pandas_pivot.ipynb This tutorial covers pivot and pivot table functionality in pandas. Pivot is used to transform or reshape dataframe into a different format. Pivot table is used to summarize and aggregate data inside dataframe. Website: http://codebasicshub.com/ Facebook: https://www.facebook.com/codebasicshub Twitter: https://twitter.com/codebasicshub Google +: https://plus.google.com/106698781833798756600
Views: 22615 codebasics
Raspberry Pi Tutorial 4 - Coding Style and more Python
The Raspberry Pi is a £15/$25 computer that runs GNU/Linux. See http://www.raspberrypi.org/ for more info. I plan to provide Linux tutorials for those who are new to it, configuration tutorials once the Raspberry Pi is out, and programming tutorials following that. Cheers, Liam.
Views: 58353 RaspberryPiTutorials
Python Code Review: LibreOffice Automation and the Python Standard Library
https://dbader.org/python-mastery ► Adopting an expert's mindset is the biggest factor for becoming great at Python Python Code Review: Unplugged – Episode 5: Code Review for Roger This is a Python code review I did for Roger's LibreOffice automation script. I do a PEP 8 cleanup pass on the code and then start refactoring and extracting functions to make the program easier to read. In one instance I was also able replace several lines of code with a built-in function from the Python standard library. You can get the original and refactored version of Roger's script at the link below: https://gist.github.com/dbader/8006381c5ca340274936ff0d5b1b2942 Did I miss anything? Anything that could be improved? Refactoring and talking at the same time is hard :) Leave a comment below and let me know! FREE COURSE – "5 Thoughts on Mastering Python" https://dbader.org/python-mastery SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube * * * ► Python Developer MUGS, T-SHIRTS & MORE: https://nerdlettering.com FREE Python Tutorials & News: » Python Tutorials: https://dbader.org » Python News on Twitter: https://twitter.com/@dbader_org » Weekly Tips for Pythonistas: https://dbader.org/newsletter » Subscribe to this channel: https://dbader.org/youtube
Python Tutorial for Beginners 2: Strings - Working with Textual Data
In this Python Beginner Tutorial, we will begin learning about the string data type. Strings allow us to work with textual data in Python. We will be going over different ways to format strings, and also a lot of useful string methods. Let's get started. The code from this video can be found at: https://github.com/CoreyMSchafer/code_snippets/tree/master/Python-Strings Watch the full Python Beginner Series here: https://www.youtube.com/playlist?list=PL-osiE80TeTskrapNbzXhwoFUiLCjGgY7 Slicing Video: https://youtu.be/ajrtAuDg3yw String Formatting Video: https://youtu.be/vTX3IwquFkc If you enjoy these videos and would like to support my channel, I would greatly appreciate any assistance through my Patreon account: https://www.patreon.com/coreyms Or a one-time contribution through PayPal: https://goo.gl/649HFY If you would like to see additional ways in which you can support the channel, you can check out my support page: http://coreyms.com/support/ You can find me on: My website - http://coreyms.com/ Facebook - https://www.facebook.com/CoreyMSchafer Twitter - https://twitter.com/CoreyMSchafer Google Plus - https://plus.google.com/+CoreySchafer44/posts Tumblr - https://www.tumblr.com/blog/mycms
Views: 169540 Corey Schafer
Introductory coding session to get Malaysian Parliamentary Boundaries for Street Addresses
An informal hangout, where Khairil Yusof from Sinar Project will go through simple example of writing #Python code and using MapIT and Google Geocode web services to return Parliamentary information given a Malaysian street address. Follow Sinar Project on Twitter: https://twitter.com/sinarproject Like Sinar Project on Facebook: https://www.facebook.com/sinarproject Subscribe to Sinar Project channel: https://www.youtube.com/channel/UCPf0k6YnkKLyU_o3jcpKnmg Follow Sinar Project on Google Plus: https://plus.google.com/+SinarProjectOrg/posts
Views: 271 Sinar Project
Using Python Templates with Jinja and Google App Engine
Templating is an extremely useful technique when it comes to code reuse. Templates allow you to update only areas that change, preventing duplication of static areas. For example, navigations and footers rarely change. These two areas might be contained in a parent template while the middle of the page, where content changes often, switches out child templates. Most Python developers are familiar with Django and its ability to use templating. But when all you want is templating functionality, there’s no reason to install full blown framework. This is where Jinja comes in. Being very small, it’s simple to install and configure. Best of all, if you know how to use templating in Django, you’ll understand templating in Jinja. In this screencast, we’ll look at how to use Jinja templating along with the Google App Engine.
Views: 13681 TeamLearnable
Simple Monte Carlo Simulation of Stock Prices with Python
In this tutorial, we will go over Monte Carlo simulations and how to apply them to generate randomized future prices within Python. My Website: http://programmingforfinance.com/ Code: #------------------------------------------------------------------------------------# import pandas_datareader.data as web import pandas as pd import datetime as dt import numpy as np import matplotlib.pyplot as plt from matplotlib import style style.use('ggplot') start = dt.datetime(2017, 01, 03) end = dt.datetime(2017, 11, 20) prices = web.DataReader('AAPL', 'google', start, end)['Close'] returns = prices.pct_change() last_price = prices[-1] #Number of Simulations num_simulations = 1000 num_days = 252 simulation_df = pd.DataFrame() for x in range(num_simulations): count = 0 daily_vol = returns.std() price_series = [] price = last_price * (1 + np.random.normal(0, daily_vol)) price_series.append(price) for y in range(num_days): if count == 251: break price = price_series[count] * (1 + np.random.normal(0, daily_vol)) price_series.append(price) count += 1 simulation_df[x] = price_series fig = plt.figure() fig.suptitle('Monte Carlo Simulation: AAPL') plt.plot(simulation_df) plt.axhline(y = last_price, color = 'r', linestyle = '-') plt.xlabel('Day') plt.ylabel('Price') plt.show() #------------------------------------------------------------------------------------#
Views: 11660 Programming4Finance
Coding by Voice Demo
The program uses python-based Dragonfly (code.google.com/p/dragonfly) to create speech recognition structures against which spoken text is matched and processed, and through which it has been possible to minimise verbosity in dictating code while while allowing speech fluency and arbitrary pauses in speech. A command language comprised of a collection of constructed short words is used, like "pef" for parentheses, which apart from improving dictation speed, removes any confusion between words intended as commands and those intended otherwise (e.g. whether "for" is text, the first word of a symbol, or a for statement). Command vocabulary size is conveniently relatively small; the program isn't a large library of macros. An important feature of the program is approximate matching of spoken symbols, symbols occurring commonly throughout code and whose dictation efficiency then is important. As well as the conventional construction of symbols fragment by fragment, which can be laborious, the program allows matching a symbol spoken naturally approximately against existing symbols to find the actual symbol (e.g. "R and RWS" matches to argRWs, "G eight to estate map" matches to g8Tos8Map). While usefulness of the program is promising, development is at a preliminary stage. Further road testing is required to evaluate its robustness in practice on different code sets, as well as integration with an IDE for on-the-fly symbol table extraction for approximate symbol matching.
Views: 2314 Jason Veldicott
Create and Watch Kubernetes Resources With Python
Oliver Nagy https://2018.pycon-au.org/talks/44310-create-and-watch-kubernetes-resources-with-python/ A practical guide to using the Kubernetes API from Python in production. Batteries are included: Python code, service account manifests, Dockerfile and all commands to deploy directly to Google Kubernetes Engine (no affiliation). Python, PyCon, PyConAU, australia, programming, sydney This video is licensed under CC BY 3.0 AU - https://creativecommons.org/licenses/by/3.0/au/ PyCon Australia (“PyCon AU”) is the national conference for the Python Programming Community, bringing together professional, student and enthusiast developers with a love for developing with Python. PyCon AU, the national Python Language conference, is on again this August in Sydney, at the International Convention Centre, Sydney, August 24 - 28 2018. Python, PyCon, PyConAU
Views: 111 PyCon Australia
GEG Great Plains Hour of Code Google Style
Join Mickie and Becky Miller (aka @techy_becky) as they discuss Google options for participating in the Hour of Code.
Views: 53 Mickie Mueller
C++ vs Python 1 Hour Pong Challenge
After discussing the 1 hour of code challenge, me and a friend decided to try and program pong in an hour. We were not allowed to copy paste any code from online, and we were not allowed to plan anything before we started. This is one hour of pure hacking, thought I didn't realise that until I used a function pointer. As requested, here is Sean's pong code: http://pastebin.com/UwJCJFef - this was modified after the deadline by sean to add ai This is the original: http://pastebin.com/yd8hvzDT
Views: 78195 scfoxcode
How to write actually object-oriented python - Per Fagrell
The multi-paradigm flexibility of Python can bite developers new to Python or object-orientation, since self-restraint and design know-how is needed to keep code style paradigm-consistent. Learn about OO principles like SOLID and Tell-Don't-Ask and how they apply in Python for more uniform, testable, and working OO code.
Views: 71088 PyGotham 2014
Fathers of programming languages (Python, Java, AWK) at Google
http://www.princetonstartuptv.com 'Princeton Startup TV' - interviews with the stars of startup and computer science world. The full episode of 'Princeton Startup TV' with Brian Kernighan: http://princetonstartuptv.com/post/49379235060/the-legendary-brian-kernighan-on-teaching-writing Brian Kernighan! The computer scientist who doesn't need any introduction: co-author of the programming classic - 'The C Programming Language' (with Dennis Ritchie), coauthor of AWK and AMPL programming languages, Professor of Computer Science at Princeton, author of many Unix programs including ditroff, cron for Unix 7, early contributor to Unix alongside its creators Ken Thomson and Dennis Ritchie, the person who coined the term Unix which stands for Uniplexed Information and Computing Service, co-author of well-known heuristics for graph partitioning and TSP, author of 9 books: Software Tools (with PJ Plauger), Software Tools in Pascal (with PJ Plauger), The C Programming Language ('K&R') (with Dennis M. Ritchie), The Elements of Programming Style (with PJ Plauger), The Unix Programming Environment (with Rob Pike), The AWK Programming Language (with Al Aho and Peter J. Weinberger), The Practice of Programming (with Rob Pike), AMPL: A Modeling Language for Mathematical Programming, 2nd Ed. (with Robert Fourer and David Gay), and the most recent 'D is for Digital: What a well-informed person should know about computers and communications'. Other shows, podcasts and talks for entrepreneurs I would recommend: "Foundation" with Kevin Rose, 'ThisWeekIn Startups' with Jason Calacanis, "Mixergy" with Andrew Warner, Pandodaily Fireside Chats with Sarah Lacy, "TechCrunch TV Founder Stories" with Chris Dixon, Stanford Entrepreneurship Corner, "The Random Show" with Tim Ferriss and Kevin Rose, All Things D conference (Steve Jobs, Bill Gates, Elon Musk, Mark Zuckerberg, Jeff Bezos, Larry Ellison, Larry Page, Sergey Brin), LeWeb Paris & London, TechCrunch Disrupt New York and San Francisco, Y Combinator Startup School, TED talks, talks at Google, UCBerkeley Haas, A Total Disruption, SXSW Interactive, Robert Scoble.
Views: 1419 Princeton Startup TV