most of these require logout/restart to take effect
# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
# Set a shorter Delay until key repeat
secp256k1 is just one popular curve for the Elliptic Curve Digital Signature algorithm (ECDSA). | |
An ECDSA key is a 256-bit value. | |
ECDSA will sign a 256-bit value. | |
If you want to sign a message of arbitrary length, it is customary to first hash the message to a 256-bit value. | |
One popular hash is SHA-256, but the one XRPL uses is "SHA-512 Half" (SHA-512 truncated to the first half, which is 256 bits). | |
ECDSA returns a point on a plane, whose coordinates are commonly named `r` and `s`. | |
Distinguished Encoding Rules (DER) is a popular encoding of a structure called Abstract Syntax Notation One (ASN.1). | |
ASN.1 can represent types like integers, sequences, and sets. | |
DER encodes these values to tag-length-value byte sequences. | |
ECDSA signatures (`r` and `s`) are customarily encoded with DER. |
{Date} Today's Date | |
{ApplicationName} Friendly name of application | |
{ApplicationDescription} Application's description | |
{ApplicationComments} Comments associated with the application | |
{ApplicationImage} Image of the application's icon | |
{AppCatalogPageReferenceURL} Link to the AirWatch App Catalog page referencing the application | |
{EnrollmentSupportEmail} Contact email address for support | |
{EnrollmentSupportPhone} Contact phone number for support | |
{FirstName} User's first name | |
{LastName} User's last name |
# Copyright (C) 2013 Wesley Baugh | |
"""Tools for text classification. | |
Extracted from the [infer](https://github.com/bwbaugh/infer) library. | |
""" | |
from __future__ import division | |
import math | |
from collections import defaultdict, namedtuple, Counter | |
from fractions import Fraction |