Skip to content

Instantly share code, notes, and snippets.

View flaviut's full-sized avatar

Flaviu Tamas flaviut

View GitHub Profile

High Quality Monospace Fonts & Configuration (2013) [Arch Linux] Now with pretty pictures!

Use either [freetype2-git] from the [AUR] or [heftig’s repository] which includes Infinality’s ClearType subpixel hinter. A far superior TrueType font hinter compared with the default implementation. See this [bug report] for more details.

In the following list I have tried to remain objective by comparing only the visual artifacts as described in [The Raster Tragedy]. These include excessive colour fringing, non-uniform stroke widths and oversampling (blurriness caused

@flaviut
flaviut / style.nim
Last active August 29, 2015 14:04 — forked from Varriount/style.nim
# Option one
proc procedureWithlotsOfArgumentsAndAReallyLongName(
argOne: string, argTwo: int, argThree: float,
argFour: proc(), argFive: bool): returnType
# Option two
proc procedureWithlotsOfArgumentsAndAReallyLongName(
argOne: string, argTwo: int, argThree: float,
argFour: proc(), argFive: bool): returnType
import winlean, os, asyncdispatch, tables, sets, strutils
type
AlignedBuffer = tuple[base, start: pointer]
FileEvent* = enum
feFileCreated
feFileRemoved
feFileModified
feNameChangedNew
proc next[R](input: iterator(): R): R =
for v in input:
return v
iterator t: int {.closure.} =
yield 1
t.next
# test.nim(2, 13) Error: type mismatch: got (iterator (): int{.closure.})