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
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| vec3 rgb2hsv(vec3 c) { | |
| vec4 K = vec4(0.0, -1.0 / 3.0, 2.0 / 3.0, -1.0); | |
| vec4 p = c.g < c.b ? vec4(c.bg, K.wz) : vec4(c.gb, K.xy); | |
| vec4 q = c.r < p.x ? vec4(p.xyw, c.r) : vec4(c.r, p.yzx); | |
| float d = q.x - min(q.w, q.y); | |
| float e = 1.0e-10; | |
| return vec3(abs(q.z + (q.w - q.y) / (6.0 * d + e)), d / (q.x + e), q.x); | |
| } |
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
| --- dsdt.dsl 2018-03-04 16:00:00.866484238 -0800 | |
| +++ dsdt.dsl 2018-03-04 16:28:07.933272752 -0800 | |
| @@ -18,9 +18,8 @@ | |
| * Compiler ID "INTL" | |
| * Compiler Version 0x20160527 (538314023) | |
| */ | |
| -DefinitionBlock ("", "DSDT", 2, "LENOVO", "SKL ", 0x00000000) | |
| +DefinitionBlock ("", "DSDT", 2, "LENOVO", "SKL ", 0x00000001) | |
| { | |
| - External (_GPE.TBNF, MethodObj) // 0 Arguments |
This recipe is a work in progress and has never been run as-is.