This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Luhn algorithm in JavaScript: validate credit card number supplied as string of numbers | |
| * @author ShirtlessKirk. Copyright (c) 2012. | |
| * @license WTFPL (http://www.wtfpl.net/txt/copying) | |
| */ | |
| var luhnChk = (function (arr) { | |
| return function (ccNum) { | |
| var | |
| len = ccNum.length, | |
| bit = 1, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| header( 'Content-Type: application/json; charset=utf-8' ); | |
| try | |
| { | |
| // Undefined | Multiple Files | $_FILES Corruption Attack | |
| // If this request falls under any of them, treat it invalid. | |
| if ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "red": { | |
| "50": { | |
| "hex": "#ffebee", | |
| "rgb": [ | |
| 255, | |
| 235, | |
| 238 | |
| ] | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export const red = { | |
| "50": { | |
| hex: "#ffebee", | |
| rgb: [255, 235, 238] | |
| }, | |
| "100": { | |
| hex: "#ffcdd2", | |
| rgb: [255, 205, 210] | |
| }, | |
| "200": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Global definition style | |
| Vue.component("my-div", { | |
| functional: true, | |
| render(createElement) { | |
| return createElement("div") | |
| } | |
| }) | |
| // ES module style | |
| export default { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export default { | |
| functional: true, | |
| render(createElement){ | |
| return createElement("h1", "Hello Vue!") | |
| } | |
| } | |
| /** | |
| * <h1>Hello Vue</h1> | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export default { | |
| functional: true, | |
| render(createElement){ | |
| return createElement( | |
| "h1", | |
| { staticClass: "h1", class: ["d-inline-block", "my-3"] }, | |
| "Hello Vue!" | |
| ) | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export default { | |
| functional: true, | |
| render(createElement){ | |
| return createElement( | |
| "header", | |
| { staticClass: "my-header" }, | |
| [ | |
| createElement( | |
| "h1", | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export default { | |
| functional: true, | |
| props: { | |
| level: { | |
| type: [String, Number], | |
| default: "1", | |
| validator: x => ["1","2","3","4","5","6"].includes(String(x)) | |
| } | |
| }, | |
| render(createElement, vNodeContext){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "types": { | |
| "build": { | |
| "description": "Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)", | |
| "title": "Builds" | |
| }, | |
| "chore": { | |
| "description": "Other changes that don't modify src or test files", | |
| "title": "Chores" | |
| }, |