When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:
main {
max-width: 38rem;
padding: 2rem;
margin: auto;
}
import io | |
import os | |
from bitcoinrpc.authproxy import AuthServiceProxy | |
def ParseConfig(fileBuffer): | |
assert type(fileBuffer) is type(b'') | |
f = io.StringIO(fileBuffer.decode('ascii', errors='ignore'), newline=None) | |
result = {} | |
for line in f: |
#!/usr/bin/python3 | |
''' evdev latency tester ''' | |
import argparse | |
import statistics | |
import evdev | |
In this article, I will share some of my experience on installing NVIDIA driver and CUDA on Linux OS. Here I mainly use Ubuntu as example. Comments for CentOS/Fedora are also provided as much as I can.
This is a bash script, as an example, on how to do click-testing GUI based on finding components based on how they look.
# Download latest archlinux bootstrap package, see https://www.archlinux.org/download/ | |
wget 'ftp://ftp.nluug.nl/pub/os/Linux/distr/archlinux/iso/latest/archlinux-bootstrap-*-x86_64.tar.gz' | |
# Make sure you'll have enough entropy for pacman-key later. | |
apt-get install haveged | |
# Install the arch bootstrap image in a tmpfs. | |
mount -t tmpfs none /mnt | |
cd /mnt | |
tar xvf ~/archlinux-bootstrap-*-x86_64.tar.gz --strip-components=1 |
#!/bin/bash | |
# btrfs-undelete | |
# Copyright (C) 2013 Jörg Walter <info@syntax-k.de> | |
# This program is free software; you can redistribute it and/or modify it under | |
# the term of the GNU General Public License as published by the Free Software | |
# Foundation; either version 2 of the License, or any later version. | |
if [ ! -b "$1" -o -z "$2" -o -z "$3" ]; then | |
echo "Usage: $0 <dev> <file/dir> <dest>" 1>&2 | |
echo |
#!/bin/bash | |
# mov2giv in out width | |
# mov2gif video_file_in.mov gif_file_out.gif 300 | |
tmp_dir=/tmp/frames_$(date +%s) | |
mkdir $tmp_dir | |
if [ -z "$3" ] | |
then | |
size=600 |
/* | |
** This is the algorithm that generates the error correction code (ECC) used to identify each IR-LED in | |
** the Oculus Rift DK2. | |
** More information on the DK2 optical tracking system can be found in the blog post series | |
** "Hacking the Oculus Rift DK2" by Oliver Kreylos: http://doc-ok.org/?p=1095 | |
** | |
** This algorithm was *not* found in the binaries provided by Oculus (they only include pre-computed LUTs). | |
** | |
** The algorithm is pretty simple: | |
** All code words need to fulfil two requirements: |