Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.
| .card-img-overlay-gradient { | |
| background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0)); | |
| } | |
| .flex-container { | |
| display: grid; | |
| grid-gap: 10px; | |
| grid-template-columns: repeat(auto-fill, minmax(250px,1fr)); | |
| grid-auto-rows: 20px; | |
| } | |
| .flex-item {} |
| /* -------------------------------------------------------------------------- */ | |
| // All Bootstrap 4 Sass Mixins [Cheat sheet] | |
| // Updated to Bootstrap v4.5.x | |
| // @author https://anschaef.de | |
| // @see https://github.com/twbs/bootstrap/tree/master/scss/mixins | |
| /* -------------------------------------------------------------------------- */ | |
| /* | |
| // ########################################################################## */ | |
| // New cheat sheet for Bootstrap 5: |
Free O'Reilly books and convenient script to just download them.
Thanks /u/FallenAege/ and /u/ShPavel/ from this Reddit post
How to use:
download.sh file and put it into a directory where you want the files to be saved.cd into the directory and make sure that it has executable permissions (chmod +x download.sh should do it)./download.sh and wee there it goes. Also if you do not want all the files, just simply comment the ones you do not want.| object FinanceDSL extends App { | |
| trait PrettyPrint[A] { | |
| def prettify(a: A): String | |
| class Ops(a: A) { | |
| def pretty: String = prettify(a) | |
| } | |
| } | |
| object PrettyPrint { |
| import scala.annotation.{StaticAnnotation, compileTimeOnly} | |
| import scala.language.experimental.macros | |
| import scala.reflect.macros.whitebox.Context | |
| @compileTimeOnly("use macro paradise") | |
| class Extends[T](defaults: Any*) extends StaticAnnotation { | |
| def macroTransform(annottees: Any*): Any = macro Extends.impl | |
| } | |
| object Extends { |
Picking the right architecture = Picking the right battles + Managing trade-offs
| import shapeless._ | |
| import scalaz._ | |
| import Scalaz._ | |
| object console extends App { | |
| trait Foo[A] { | |
| type B | |
| def value: B |
| @echo off | |
| REM Install Ghostscript 64bit from http://www.ghostscript.com/download/gsdnld.html | |
| REM Shrink all pdfs files in the current directory where this script is run and output to the | |
| REM compressed sub-folder | |
| setlocal | |
| set GS_BIN=C:\Program Files\gs\gs9.15\bin\gswin64c.exe | |
| set GS_OUTPUT_DIR=compressed | |
| mkdir %GS_OUTPUT_DIR% | |
| for %%i in (*.pdf) do "%GS_BIN%" -dNOPAUSE -dBATCH -dSAFER -dPDFSETTINGS=/printer -dCompatibilityLevel=1.4 -sDEVICE=pdfwrite -sOutputFile="%GS_OUTPUT_DIR%\%%i" "%%i" |