A "Best of the Best Practices" (BOBP) guide to developing in Python.
- "Build tools for others that you want to be built for you." - Kenneth Reitz
- "Simplicity is alway better than functionality." - Pieter Hintjens
| # Transforming the vanilla recursive fib into the iterative DP version | |
| # through a series of mechanical steps. | |
| # | |
| # For more on converting recursive algorithms into iterative ones, see: | |
| # http://blog.moertel.com/posts/2013-05-11-recursive-to-iterative.html | |
| # original function | |
| def fib(n): |
Magic words:
psql -U postgresSome interesting flags (to see all, use -h or --help depending on your psql version):
-E: will describe the underlaying queries of the \ commands (cool for learning!)-l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)##VGG16 model for Keras
This is the Keras model of the 16-layer network used by the VGG team in the ILSVRC-2014 competition.
It has been obtained by directly converting the Caffe model provived by the authors.
Details about the network architecture can be found in the following arXiv paper:
Very Deep Convolutional Networks for Large-Scale Image Recognition
K. Simonyan, A. Zisserman
| cmake_minimum_required(VERSION 3.14) | |
| project("ROS2 Master") | |
| # usually I put this in a separate file include("/opt/ros/_common/Colcon.cmake") | |
| function(colcon_add_subdirectories) | |
| cmake_parse_arguments(PARSE_ARGV 0 "ARG" "" "BUILD_BASE;BASE_PATHS" "") | |
| message("search criteria: ${ARGV}") | |
| execute_process(COMMAND colcon list |