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
| DROP KEYSPACE mykeyspace ; | |
| CREATE KEYSPACE mykeyspace WITH replication = {'class': 'NetworkTopologyStrategy', 'replication_factor' : 3} AND durable_writes = true; | |
| USE mykeyspace; | |
| CREATE TABLE heartrate_v10 ( | |
| pet_chip_id uuid, | |
| owner uuid, | |
| time timestamp, | |
| heart_rate int, |
| # Sample Nginx config with sane caching settings for modern web development | |
| # | |
| # Motivation: | |
| # Modern web development often happens with developer tools open, e. g. the Chrome Dev Tools. | |
| # These tools automatically deactivate all sorts of caching for you, so you always have a fresh | |
| # and juicy version of your assets available. | |
| # At some point, however, you want to show your work to testers, your boss or your client. | |
| # After you implemented and deployed their feedback, they reload the testing page – and report | |
| # the exact same issues as before! What happened? Of course, they did not have developer tools | |
| # open, and of course, they did not empty their caches before navigating to your site. |
| @SqlResultSetMapping( | |
| name = "AuthorMapping", | |
| entities = @EntityResult( | |
| entityClass = Author.class, | |
| fields = { | |
| @FieldResult(name = "id", column = "authorId"), | |
| @FieldResult(name = "firstName", column = "firstName"), | |
| @FieldResult(name = "lastName", column = "lastName"), | |
| @FieldResult(name = "version", column = "version")})) |