While working on an implementation of the wire protocol from a network standard, I needed to implement an error response. These errors may come in one of several flavors which is encoded and sent along with the error:
- Cancel
#!/usr/bin/env python | |
import sys | |
import os | |
from rawphoto.cr2 import Cr2 | |
from rawphoto.nef import Nef | |
def print_entries(raw, ifd, level=1): | |
for name in ifd.entries: |
import android.content.Context; | |
import android.content.res.TypedArray; | |
import android.preference.DialogPreference; | |
import android.preference.Preference; | |
import android.util.AttributeSet; | |
import android.view.View; | |
import android.widget.TimePicker; | |
import java.text.DateFormat; | |
import java.util.Calendar; |
### ======= | |
### LOGGING | |
## | |
## loglevel: Verbosity of log files generated by ejabberd. | |
## 0: No ejabberd log at all (not recommended) | |
## 1: Critical | |
## 2: Error | |
## 3: Warning | |
## 4: Info |
package transaction | |
import ( | |
"context" | |
"database/sql" | |
) | |
// Exec creates a transaction and calls f. | |
// When it is finished, it cleans up the transaction. If an error occured it | |
// attempts to rollback, if not it commits. |
module mellium.im/xepdeps | |
go 1.17 |
While working on an implementation of the wire protocol from a network standard, I needed to implement an error response. These errors may come in one of several flavors which is encoded and sent along with the error:
SHELL = /bin/sh | |
.SUFFIXES: | |
.SILENT: | |
.PHONY: timidity clean | |
# If you want more output, change this. | |
REDIRECT = > /dev/null | |
SHEETMUSICDIR = Songs | |
AOBSHEETMUSICDIR = AOB/Songs | |
DRAFTSHEETMUSICDIR = Drafts/Songs |
// Command precisTests opens test/golden.json from the python version of Precis | |
// and attempts to run them against the Go version. | |
// | |
// Right now Python 3.7.4 appears to use Unicode Version 11. | |
// This means this program should be run with Go 1.13 to use the same version. | |
// This is gotip as of this gist. | |
// | |
// To install gotip try something like this: | |
// | |
// go get golang.org/dl/gotip |
% Because I can never remember how to get rid of the borders on all systems... | |
\usepackage[pdfborder=0, bookmarks, colorlinks=false]{hyperref} |
#!/usr/bin/env bash | |
for i in $(eval echo {$1..$2}) | |
do | |
curl "http://questionablecontent.net/comics/$i.png" > "QuestionableContent/$i.png" | |
done |