sass/
|
|– base/
| |– _reset.scss # Reset/normalize
| |– _typography.scss # Typography rules
| ... # Etc…
|
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
| function importPage(page) { | |
| return () => import(page).then((module) => module.default || module); | |
| } | |
| const routes = [ | |
| { | |
| path: '/', | |
| name: 'index', | |
| component: importPage('../pages/Index.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
| <?php | |
| $passwordLength = 15; | |
| $numbers = '0123456789'; | |
| $lower = 'abcdefghijklmnopqrstuvwxyz'; | |
| $upper = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; | |
| $symbols = '~`!@#$%^&*()_+-=-+,.<>/?\\|'; | |
| $combine = $numbers . $lower . $upper . $symbols; |
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 | |
| $length = 12; | |
| $series = '0 1 '; | |
| $previous = 0; | |
| $current = 1; | |
| for($i = 2; $i < $length; $i++) { | |
| $series .= $previous + $current . ' '; |
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 | |
| $text = 'GiThuBIsGreattAergSiBuHTig'; | |
| if(strcmp(strtolower($text), strrev(strtolower($text))) === 0) { | |
| echo "$text is a Plindrome String"; | |
| } else { | |
| echo "$text is not a Palindrome String"; | |
| } |
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 | |
| function primeOrComposite($num) | |
| { | |
| if($num <= 0 or $num === 1) { | |
| return "Invalid Number"; | |
| } | |
| for($i = 2; $i <= $num / 2; $i++) { | |
| if($num % $i === 0) { |
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 | |
| for($i = 1; $i < 100; $i++) { | |
| if($i % 15 === 0) { | |
| echo 'FizzBuzz' . PHP_EOL; | |
| } elseif($i % 3 === 0) { | |
| echo 'Fizz' . PHP_EOL; | |
| } elseif($i % 5 === 0) { | |
| echo 'Buzz' . PHP_EOL; | |
| } else { |