This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
# This script is a wrapper around dpkg-deb that supports a subset of arch | |
# linux' PKGBUILD format. This means that it can be used to build debian | |
# (meta-)packages from a single file. | |
# | |
# PKGBUILD files are written in bash and can define the following variables: | |
# | |
# - pkgname [required] | |
# - pkgver |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import datetime | |
import logging | |
import subprocess | |
import sys | |
import time | |
MINUTE = datetime.timedelta(seconds=60) | |
logging.basicConfig( | |
stream=sys.stderr, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This implements a flexible contrast function similar to the one | |
// proposed in <https://github.com/w3c/csswg-drafts/issues/1627>. | |
// | |
// Note that it uses some approximations and RGB instead of HWB | |
// interpolation. | |
@function srgb($channel) { | |
$x: $channel / 255; | |
@if $x <= .03928 { | |
@return $x / 12.92; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
"""Get translations from leo.org on the command line.""" | |
import argparse | |
import itertools | |
import collections | |
import xml.etree.ElementTree as ET | |
import requests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "polylint.sh", | |
"description": "Run multiple linters efficiently.", | |
"homepage": "https://gist.github.com/xi/63216e505a6d55562eaf695811c6fc9c", | |
"version": "0.0.4", | |
"os": ["darwin", "linux"], | |
"files": ["polylint.sh"], | |
"bin": { | |
"polylint": "./polylint.sh" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
# This script is a wrapper around checkinstall that supports a subset of arch | |
# linux' PKGBUILD format. This means that it can be used to build debian | |
# packages from a single file. | |
# | |
# PKGBUILD files are written in bash and can define the following variables: | |
# | |
# - pkgname [required] | |
# - pkgver [required] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Build a Debian package that adds guest-account functionality to LightDM. | |
# | |
# For guest accounts to work LightDM needs a binary "guest-account" which it | |
# will run to create / destroy guest accounts.[0] The default Debian package | |
# does not provide one.[1] However, the Ubuntu package does.[2] | |
# | |
# The simple way to use this script is simply to call `make install`. This will | |
# fetch the Ubuntu package, unpack it and install only the files that are | |
# relevant for guest accounts. However, this is strongly discouraged because | |
# it bypasses the package system. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
// This provides some common mathemetical functions implemented in pure sass: | |
// | |
// - $PI | |
// - ln($x, $steps: 32) | |
// - pow($x, $exponent, $steps: 32) | |
// - sqrt($x, $exponent: 2, $steps: 32) |