background preloader

Py:Tips

Facebook Twitter

Pygrunn: Python, WebRTC and You - Saúl Ibarra Corretgé. Tags: pygrunn, python, django (One of the summaries of the 2015 Pygrunn conference ) Saúl Ibarra Corretgé does telecom and VOIP stuff for his work, which is what webRTC calls legacy :-) webRTC is Real-Time Communication for the web via simple APIs.

Pygrunn: Python, WebRTC and You - Saúl Ibarra Corretgé

So: voice calling, video chat, P2P file sharing without needing internal or external plugins. Basically it is a big pile of C++ that sits in your browser. There are several javascript libraries for webRTC. Once you have a connection, you have an RTCDataChannel. As a testcase, he wrote Call Roulette. He made the toy app in python 3.3 because it is new. So: users connect from their browser with a websocket connection to the app.

@DevOpsSummit #DevOps #Containers #Microservices. Seven Ways to Improve Your Python Performance Python is really a language which has swept the scene in recent years in terms of popularity, elegance, and functionality.

@DevOpsSummit #DevOps #Containers #Microservices

Research shows that 8 out 10 computer science departments in the U.S. now teach their introductory courses with Python, surpassing Java. Top-ranked CS departments at MIT and UC Berkeley have switched their introductory courses to Python. Program Configuration in Python. Keep This Python Cheat Sheet On Hand When Learning To Code. Python is one of the best programming languages to learn.

Keep This Python Cheat Sheet On Hand When Learning To Code

As you get started, this one-page reference sheet of variables, methods and formatting options could come in handy. Provided by Dave Child, the cheat sheet includes both built-in system and operating system variables, as well as standard methods for working with lists, files and strings. Real Python Blog - Real Python. Aws, devops, python.

Real Python Blog - Real Python

30 Python Language Features and Tricks You May Not Know About. 1 Introduction Since I started learning Python, I decided to maintain an often visited list of "tricks".

30 Python Language Features and Tricks You May Not Know About

Any time I saw a piece of code (in an example, on Stack Overflow, in open source software, etc.) that made me think "Cool! I didn't know you could do that! " I experimented with it until I understood it and then added it to the list. This post is part of that list, after some cleaning up. Each trick or language feature is demonstrated only through examples, with no explanation. The list is very roughly ordered by difficulty, with the easier and more commonly known language features and tricks appearing first. A table of contents is given at the end. Keeping It Classless. If you're new here, you may want to subscribe to my RSS feed, or follow me on Twitter!

Keeping It Classless

That way you can stay up to date with all Keeping It Classless posts! It’s been really interesting to see the industry in an all-out zerg rush to adopt Python as a skill-set. What is it about this seemingly arbitrary selection in the vast array of programming languages available out there? What is so special about Python that it comes up in nearly every conversation about SDN? This post has been in drafts for some time, and I was motivated to finish it up by this Packet Pushers episode, where Jeremy Schulman and others discuss Python and its impact to networking. Let’s think about what we’re trying to do when it comes to network programmability. The networking industry (in general) tends to fall back on what’s easy, and what’s cheap – interoperability tends to trump every other consideration.

A better, and perhaps even more practical example would be the education of engineers new to networking.

Py: language

Py: Dev. Python for Kids: A Playful Introduction to Programming: Jason R. Briggs: 9781593274078: Amazon.com. [citation needed]» Blog Archive » The homogenization of scientific computing, or why Python is steadily eating other languages’ lunch. Over the past two years, my scientific computing toolbox been steadily homogenizing.

[citation needed]» Blog Archive » The homogenization of scientific computing, or why Python is steadily eating other languages’ lunch

Around 2010 or 2011, my toolbox looked something like this: Ruby for text processing and miscellaneous scripting;Ruby on Rails/JavaScript for web development;Python/Numpy (mostly) and MATLAB (occasionally) for numerical computing;MATLAB for neuroimaging data analysis;R for statistical analysis;R for plotting and visualization;Occasional excursions into other languages/environments for other stuff. In 2013, my toolbox looks like this: You may notice a theme here. The increasing homogenization (Pythonification?) These days, tools for almost every aspect of scientific computing are readily available in Python. Take R, for example. Flash forward to The Now. Don't do this. Humor. Accelerating Python Libraries with Numba (Part 2)

Accelerating Python Libraries with Numba (Part 2) Introduction Welcome.

Accelerating Python Libraries with Numba (Part 2)

This post is part of a series of Continuum Analytics Open Notebooks showcasing our projects, products, and services. In this Continuum Open Notebook, you’ll learn more about how Numba works and how it reduces your programming effort, and see that it achieves comparable performance to C and Cython over a range of benchmarks. If you are reading the blog form of this notebook, you can run the code yourself on our cloud-based Python-in-the-browser app, Wakari. How Does Numba Work? Numba is a Continuum Analytics-sponsored open source project.

C = a+b We’ll assume that a and b are both floating-point numbers. S humble adode - John Anderson. $ git clone $ cd dotfiles $ .

s humble adode - John Anderson

/install.sh vim Download PDF Version Back in 2008, I wrote the article Python with a modular IDE (Vim). Years later, I have people e-mailing me and commenting daily asking for more information, even though most of the information in it is outdated. Here is the modern way to work with Python and Vim to achieve the perfect environment. Because one of the most important parts about a development environment is the ability to easily reproduce across machines, we are going to store our vim configuration in git: $ mkdir ~/.vim/ $ mkdir ~/.vim/{autoload,bundle} $ cd ~/.vim/ $ git init The purpose of the autoload directory is to automatically load the vim plugin Pathogen, which we'll then use to load all other plugins that are located in the bundle directory.