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.

def get_jpg_quality(pim: 'PIL.Image.Image') -> int: | |
""" | |
Implement quality computation following ImageMagick heuristic algorithm: | |
https://github.com/ImageMagick/ImageMagick/blob/7.1.0-57/coders/jpeg.c#L782 | |
Usage: | |
``` | |
pim = Img.open(...) | |
quality = get_jpg_quality(pim) | |
``` | |
See also https://stackoverflow.com/questions/4354543/ |
#! /usr/bin/env python3 | |
""" | |
List all Firefox tabs with title and URL | |
Supported input: json or jsonlz4 recovery files | |
Default output: title (URL) | |
Output format can be specified as argument | |
""" |
import { line, curve, curveCatmullRom } from "d3-shape"; | |
import { scaleTime, scaleLinear } from "d3-scale"; | |
import { axisBottom, axisLeft } from 'd3-axis'; | |
import { timeParse, isoFormat } from "d3-time-format"; | |
import { select } from "d3-selection"; | |
import { extent, max, min } from "d3-array"; | |
export default { | |
line: line, | |
scaleTime: scaleTime, |
import org.lwjgl._ | |
import org.lwjgl.glfw._ | |
import org.lwjgl.opengl._ | |
import org.lwjgl.glfw.Callbacks._ | |
import org.lwjgl.glfw.GLFW._ | |
import org.lwjgl.opengl.GL11._ | |
import org.lwjgl.system.MemoryUtil._ | |
object Main { |