I hereby claim:
- I am arlm on github.
- I am arlm (https://keybase.io/arlm) on keybase.
- I have a public key whose fingerprint is 56D8 94BA DDDC 15A0 71EF 39E6 B44D 0270 F4BC 25A9
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Here is an essay version of my class notes from Class 1 of CS183: Startup. Errors and omissions are my own. Credit for good stuff is Peter’s entirely.
CS183: Startup—Notes Essay—The Challenge of the Future
Purpose and Preamble
Bin e padrões para validação de cartão de crédito.
| Bandeira | Começa com | Máximo de número | Máximo de número cvc | Regex |
|---|---|---|---|---|
| Visa | 4 |
13,16 | 3 | ^4[0-9]{12}(?:[0-9]{3}) |
| Mastercard | 5 |
16 | 3 | ^5[1-5][0-9]{14} |
| Diners | 301,305,36,38 link |
14,16 | 3 | `^3(?:0[0-5] |
| public const bool DEBUG_SQL_LOG = Android.Util.Log.IsLoggable("SQLiteLog", Android.Util.LogPriority.Verbose); | |
| public const bool DEBUG_SQL_STATEMENTS = Android.Util.Log.IsLoggable("SQLiteStatements", Android.Util.LogPriority.Verbose); | |
| public const bool DEBUG_SQL_TIME = Android.Util.Log.IsLoggable("SQLiteTime", Android.Util.LogPriority.Verbose); |
| # Built application files | |
| /**/build/ | |
| /**/gen/ | |
| # Crashlytics configuations | |
| com_crashlytics_export_strings.xml | |
| # Local configuration file (sdk path, etc) | |
| local.properties |
| repo forall -pvc ' | |
| if git rev-parse android-4.0.3_r1 >/dev/null 2>&1 | |
| then | |
| git log --oneline --no-merges android-4.0.3_r1..android-4.0.4_r1.1 | |
| else | |
| git log --oneline --no-merges android-4.0.4_r1.1 | |
| fi | |
| ' | cat |
| # The Script | |
| ```sh | |
| git log v2.1.0...v2.1.1 --pretty=format:'<li> <a href="http://github.com/jerel/<project>/commit/%H">view commit •</a> %s</li> ' --reverse | grep "#changelog" | |
| ``` | |
| # A git alias for the command: |
Ok, I geeked out, and this is probably more information than you need. But it completely answers the question. Sorry. ☺
Locally, I'm at this commit:
$ git show
commit d6cd1e2bd19e03a81132a23b2025920577f84e37
Author: jnthn <jnthn@jnthn.net>
Date: Sun Apr 15 16:35:03 2012 +0200
When I added FIRST/NEXT/LAST, it was idiomatic but not quite so fast. This makes it faster. Another little bit of masak++'s program.
| #!/bin/bash | |
| # | |
| # adb-screenshot - simple script to take screenshots of android devices | |
| # | |
| # Requires: 'ffmpeg' and 'adb' to be somewhere in the PATH | |
| # | |
| # Author: Kevin C. Krinke <kevin@krinke.ca> | |
| # License: Public Domain | |
| # globals / constants |
| #!/bin/sh | |
| mkdir -p $OPENSHIFT_DATA_DIR/tmp/csv | |
| chmod ugo+r $OPENSHIFT_DATA_DIR/tmp/csv | |
| mysqldump -h $OPENSHIFT_MYSQL_DB_HOST -P ${OPENSHIFT_MYSQL_DB_PORT:-3306} -u ${OPENSHIFT_MYSQL_DB_USERNAME:-'admin'} --password="$OPENSHIFT_MYSQL_DB_PASSWORD" --all-databases --single-transaction -r $OPENSHIFT_DATA_DIR/tmp/all-databases.sql | |
| mysqldump -h $OPENSHIFT_MYSQL_DB_HOST -P ${OPENSHIFT_MYSQL_DB_PORT:-3306} -u ${OPENSHIFT_MYSQL_DB_USERNAME:-'admin'} --password="$OPENSHIFT_MYSQL_DB_PASSWORD" --databases $OPENSHIFT_APP_NAME --single-transaction -r $OPENSHIFT_DATA_DIR/tmp/$OPENSHIFT_APP_NAME.sql | |
| mysqldump -h $OPENSHIFT_MYSQL_DB_HOST -P ${OPENSHIFT_MYSQL_DB_PORT:-3306} -u ${OPENSHIFT_MYSQL_DB_USERNAME:-'admin'} --password="$OPENSHIFT_MYSQL_DB_PASSWORD" --databases $OPENSHIFT_APP_NAME --single-transaction --routines=0 --triggers=0 --events=0 -r $OPENSHIFT_DATA_DIR/tmp/$OPENSHIFT_APP_NAME-no-procedures.sql | |
| mysqldump -h $OPENSHIFT_MYSQL_DB_HOST -P ${OPENSHIFT_MYSQL_DB_PORT:-3306} -u ${OPENSHIFT_MYSQL_DB_USERNAME:-'admin'} - |