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 sys | |
import gi | |
gi.require_version('Gst', '1.0') | |
gi.require_version('GstNet', '1.0') | |
from gi.repository import Gst, GstNet, GObject, GLib | |
Gst.init([]) | |
mainloop = GLib.MainLoop() |
# OpenOCD configuration for the Adafruit Trinket M0 | |
# https://www.adafruit.com/product/3500 | |
# connected via a generic ST-Link/v2 compatible programmer | |
# https://amazon.com/s/?keywords=stlink%20v2 | |
# Consult the pinout for the location of the SWCLK and SWDIO pins | |
# and connect the 3.3v line on the programmer to VBAT | |
# https://learn.adafruit.com/assets/49778 | |
# It's not necessary to set the adapter speed, since OpenOCD |
// Copyright 2016 DSP Synthesizers Sweden. | |
// | |
// Author: Jan Ostman | |
// | |
// This program is free software: you can redistribute it and/or modify | |
// it under the terms of the GNU General Public License as published by | |
// the Free Software Foundation, either version 3 of the License, or | |
// (at your option) any later version. | |
// This program is distributed in the hope that it will be useful, | |
// but WITHOUT ANY WARRANTY; without even the implied warranty of |
Simple guide for setting up OTG modes on the Raspberry Pi Zero - By Andrew Mulholland (gbaman).
The Raspberry Pi Zero (and model A and A+) support USB On The Go, given the processor is connected directly to the USB port, unlike on the B, B+ or Pi 2 B, which goes via a USB hub.
Because of this, if setup to, the Pi can act as a USB slave instead, providing virtual serial (a terminal), virtual ethernet, virtual mass storage device (pendrive) or even other virtual devices like HID, MIDI, or act as a virtual webcam!
It is important to note that, although the model A and A+ can support being a USB slave, they are missing the ID pin (is tied to ground internally) so are unable to dynamically switch between USB master/slave mode. As such, they default to USB master mode. There is no easy way to change this right now.
It is also important to note, that a USB to UART serial adapter is not needed for any of these guides, as may be documented elsewhere across the int
#!/bin/sh | |
startswith() { case $1 in $2*) true;; *) false;; esac; } | |
tmpfile=$(mktemp) | |
ffprobe -show_frames "$1" 2> /dev/null > "$tmpfile" | |
GOP=1 | |
maxGOP=1 | |
Bframes=0 |
(Serial port or com port? - Serial ports are often refered as COM ports. It is the same to be short. You can read abut it in the Wiki article )
To remove a submodule you need to:
This is a simple way to spot check that the modified image in your git index is the image you actually want without having to leave the command line.
Example: http://i.imgur.com/RUenUcM.png
img-ascii-diff
somewhere (e.g. ~/bin/img-ascii-diff
).attributes
in ~/.config/git/attributes
.~/.gitconfig
and add the lines below, pointing to wherever you put img-ascii-diff
.