luhn_task:Luhn卡验证-源码

上传者: 42138545 | 上传时间: 2021-07-01 13:04:21 | 文件大小: 360KB | 文件类型: ZIP
一个非常简单的应用程序,它使用 Luhn 的算法来检查信用卡号是否有效。 在向支付网关提交信用卡之前,对号码进行一些完整性检查非常重要。 预先执行的常见检查是根据卡号的起始数字和长度验证卡类型。 我们关心的主要模式如下: +============+=============+===============+ | Card Type | Begins With | Number Length | +============+=============+===============+ | AMEX | 34 or 37 | 15 | +------------+-------------+---------------+ | Discover | 6011 | 16 | +------------+-

文件下载

资源详情

[{"title":"( 84 个子文件 360KB ) luhn_task:Luhn卡验证-源码","children":[{"title":"luhn_task-master","children":[{"title":".gitignore <span style='color:#111;'> 466B </span>","children":null,"spread":false},{"title":"app","children":[{"title":"mailers","children":[{"title":".keep <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":true},{"title":"assets","children":[{"title":"images","children":[{"title":".keep <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":true},{"title":"javascripts","children":[{"title":"application.js <span style='color:#111;'> 696B </span>","children":null,"spread":false},{"title":"credit_cards.js.coffee <span style='color:#111;'> 211B </span>","children":null,"spread":false}],"spread":true},{"title":"stylesheets","children":[{"title":"credit_cards.css.scss <span style='color:#111;'> 182B </span>","children":null,"spread":false},{"title":"application.css <span style='color:#111;'> 683B </span>","children":null,"spread":false},{"title":"custom.css.scss <span style='color:#111;'> 1.80KB </span>","children":null,"spread":false},{"title":"scaffolds.css.scss <span style='color:#111;'> 799B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"models","children":[{"title":"credit_card.rb <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false},{"title":".keep <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"concerns","children":[{"title":".keep <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"helpers","children":[{"title":"credit_cards_helper.rb <span style='color:#111;'> 29B </span>","children":null,"spread":false},{"title":"application_helper.rb <span style='color:#111;'> 29B </span>","children":null,"spread":false}],"spread":true},{"title":"views","children":[{"title":"credit_cards","children":[{"title":"index.json.jbuilder <span style='color:#111;'> 169B </span>","children":null,"spread":false},{"title":"_form.html.erb <span style='color:#111;'> 537B </span>","children":null,"spread":false},{"title":"show.html.erb <span style='color:#111;'> 286B </span>","children":null,"spread":false},{"title":"new.html.erb <span style='color:#111;'> 95B </span>","children":null,"spread":false},{"title":"index.html.erb <span style='color:#111;'> 661B </span>","children":null,"spread":false}],"spread":true},{"title":"layouts","children":[{"title":"application.html.erb <span style='color:#111;'> 411B </span>","children":null,"spread":false},{"title":"_footer.html.erb <span style='color:#111;'> 217B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"controllers","children":[{"title":"application_controller.rb <span style='color:#111;'> 204B </span>","children":null,"spread":false},{"title":"credit_cards_controller.rb <span style='color:#111;'> 1.29KB </span>","children":null,"spread":false},{"title":"concerns","children":[{"title":".keep <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"config.ru <span style='color:#111;'> 154B </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"rails <span style='color:#111;'> 220B </span>","children":null,"spread":false},{"title":"bundle <span style='color:#111;'> 129B </span>","children":null,"spread":false},{"title":"spring <span style='color:#111;'> 517B </span>","children":null,"spread":false},{"title":"rake <span style='color:#111;'> 164B </span>","children":null,"spread":false}],"spread":true},{"title":"log","children":[{"title":".keep <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":true},{"title":"db","children":[{"title":"migrate","children":[{"title":"20150113210058_create_credit_cards.rb <span style='color:#111;'> 214B </span>","children":null,"spread":false}],"spread":true},{"title":"seeds.rb <span style='color:#111;'> 343B </span>","children":null,"spread":false},{"title":"schema.rb <span style='color:#111;'> 993B </span>","children":null,"spread":false}],"spread":true},{"title":"public","children":[{"title":"robots.txt <span style='color:#111;'> 202B </span>","children":null,"spread":false},{"title":"assets","children":[{"title":"application-1fc5ebfdbd8dc87b8c3b46410715856b.css <span style='color:#111;'> 301.53KB </span>","children":null,"spread":false},{"title":"bootstrap","children":[{"title":"glyphicons-halflings-regular-a4e0573ad59ab6481d09c0486a703621.svg <span style='color:#111;'> 61.45KB </span>","children":null,"spread":false},{"title":"glyphicons-halflings-regular-38831bbd01504eaf996d291c5e157661.ttf <span style='color:#111;'> 40.31KB </span>","children":null,"spread":false},{"title":"glyphicons-halflings-regular-69ff52480052cf785cc3f4472e1d56d9.eot <span style='color:#111;'> 19.86KB </span>","children":null,"spread":false},{"title":"glyphicons-halflings-regular-195cb410b49d75c104a5bc6ad385ac77.woff <span style='color:#111;'> 22.77KB </span>","children":null,"spread":false}],"spread":true},{"title":"application-b09acc17402c0224e1ba46efdb541885.js <span style='color:#111;'> 318.19KB </span>","children":null,"spread":false},{"title":"manifest-33be5b2a1368fae26d1e40cb73a15228.json <span style='color:#111;'> 1.90KB </span>","children":null,"spread":false},{"title":"application-b09acc17402c0224e1ba46efdb541885.js.gz <span style='color:#111;'> 92.28KB </span>","children":null,"spread":false},{"title":"application-1fc5ebfdbd8dc87b8c3b46410715856b.css.gz <span style='color:#111;'> 26.03KB </span>","children":null,"spread":false}],"spread":true},{"title":"422.html <span style='color:#111;'> 1.51KB </span>","children":null,"spread":false},{"title":"favicon.ico <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"500.html <span style='color:#111;'> 1.44KB </span>","children":null,"spread":false},{"title":"404.html <span style='color:#111;'> 1.53KB </span>","children":null,"spread":false}],"spread":true},{"title":"README.md <span style='color:#111;'> 1.99KB </span>","children":null,"spread":false},{"title":"vendor","children":[{"title":"assets","children":[{"title":"javascripts","children":[{"title":".keep <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":true},{"title":"stylesheets","children":[{"title":".keep <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"config","children":[{"title":"boot.rb <span style='color:#111;'> 170B </span>","children":null,"spread":false},{"title":"secrets.yml <span style='color:#111;'> 964B </span>","children":null,"spread":false},{"title":"database.yml <span style='color:#111;'> 601B </span>","children":null,"spread":false},{"title":"routes.rb <span style='color:#111;'> 1.62KB </span>","children":null,"spread":false},{"title":"environments","children":[{"title":"production.rb <span style='color:#111;'> 3.09KB </span>","children":null,"spread":false},{"title":"development.rb <span style='color:#111;'> 1.39KB </span>","children":null,"spread":false},{"title":"test.rb <span style='color:#111;'> 1.62KB </span>","children":null,"spread":false}],"spread":false},{"title":"environment.rb <span style='color:#111;'> 150B </span>","children":null,"spread":false},{"title":"application.rb <span style='color:#111;'> 978B </span>","children":null,"spread":false},{"title":"locales","children":[{"title":"en.yml <span style='color:#111;'> 634B </span>","children":null,"spread":false}],"spread":false},{"title":"initializers","children":[{"title":"backtrace_silencers.rb <span style='color:#111;'> 404B </span>","children":null,"spread":false},{"title":"session_store.rb <span style='color:#111;'> 140B </span>","children":null,"spread":false},{"title":"cookies_serializer.rb <span style='color:#111;'> 128B </span>","children":null,"spread":false},{"title":"assets.rb <span style='color:#111;'> 377B </span>","children":null,"spread":false},{"title":"wrap_parameters.rb <span style='color:#111;'> 517B </span>","children":null,"spread":false},{"title":"mime_types.rb <span style='color:#111;'> 156B </span>","children":null,"spread":false},{"title":"inflections.rb <span style='color:#111;'> 647B </span>","children":null,"spread":false},{"title":"filter_parameter_logging.rb <span style='color:#111;'> 194B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"lib","children":[{"title":"assets","children":[{"title":".keep <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":true},{"title":"tasks","children":[{"title":".keep <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Gemfile <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false},{"title":"Rakefile <span style='color:#111;'> 249B </span>","children":null,"spread":false},{"title":"test","children":[{"title":"mailers","children":[{"title":".keep <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":false},{"title":"integration","children":[{"title":".keep <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":false},{"title":"models","children":[{"title":".keep <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"credit_card_test.rb <span style='color:#111;'> 124B </span>","children":null,"spread":false}],"spread":false},{"title":"helpers","children":[{"title":".keep <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"credit_cards_helper_test.rb <span style='color:#111;'> 78B </span>","children":null,"spread":false}],"spread":false},{"title":"test_helper.rb <span style='color:#111;'> 312B </span>","children":null,"spread":false},{"title":"controllers","children":[{"title":".keep <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"credit_cards_controller_test.rb <span style='color:#111;'> 1.26KB </span>","children":null,"spread":false}],"spread":false},{"title":"fixtures","children":[{"title":"credit_cards.yml <span style='color:#111;'> 227B </span>","children":null,"spread":false},{"title":".keep <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"Gemfile.lock <span style='color:#111;'> 2.80KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明