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 |
|---|---|---|---|
| Visa | 4 | 13,16 | 3 |
| Mastercard | 5 | 16 | 3 |
| # encoding: utf-8 | |
| # Be sure to restart your server when you modify this file. | |
| # Add new inflection rules using the following format | |
| # (all these examples are active by default): | |
| # ActiveSupport::Inflector.inflections do |inflect| | |
| # inflect.plural /^(ox)$/i, '\1en' | |
| # inflect.singular /^(ox)en/i, '\1' | |
| # inflect.irregular 'person', 'people' | |
| # inflect.uncountable %w( fish sheep ) |
| (ns topoged.model.type | |
| (:import | |
| (javax.persistence Entity Id Column Table GeneratedValue) | |
| )) | |
| (definterface IType (getId [])) | |
| (deftype | |
| ^{Entity {} Table {:name="TYPE"} org.hibernate.annotations.Entity {:mutable false}} | |
| TypeX [^Long id] |
| # Rake Quick Reference | |
| # by Greg Houston | |
| # http://ghouston.blogspot.com/2008/07/rake-quick-reference.html | |
| # ----------------------------------------------------------------------------- | |
| # Running Rake | |
| # ----------------------------------------------------------------------------- | |
| # running rake from the command-line: | |
| # rake --help |
| # -*- coding: utf-8 -*- | |
| from django import forms | |
| from crispy_forms.helper import FormHelper | |
| from crispy_forms.layout import Layout, Div, Submit, HTML, Button, Row, Field | |
| from crispy_forms.bootstrap import AppendedText, PrependedText, FormActions | |
| class MessageForm(forms.Form): | |
| text_input = forms.CharField() |
| Place phone call. | |
| Home? | |
| Leave message | |
| Wait for callback | |
| "Would you like to share a meal" | |
| "Would you like to share a meal" | |
| What is the response (A) ? | |
| "Do you enjoy a hot beverage" | |
| What is the response (B) ? | |
| n = 0 |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>HMAC-SHA256 Example</title> | |
| </head> | |
| <body> | |
| <script src="http://crypto.stanford.edu/sjcl/sjcl.js"></script> | |
| <script> | |
| var sharedSecret, query, signature, hmac, xhr; |
Last Update: May 13, 2019
Offline Version