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
| <style> | |
| input { | |
| width: 100%; | |
| padding: 2px 5px; | |
| margin: 2px 0; | |
| border: 1px solid red; | |
| border-radius: 4px; | |
| box-sizing: border-box; | |
| } |
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'); | |
| header("Access-Control-Allow-Origin: *"); | |
| header("Access-Control-Allow-Methods: PUT, GET, POST"); | |
| $response = array(); | |
| $upload_dir = 'uploads/'; | |
| $server_url = 'http://127.0.0.1:8000'; |
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
| /* 'Open Sans' font from Google Fonts */ | |
| @import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700); | |
| .login { | |
| width: 400px; | |
| margin: 16px auto; | |
| font-size: 16px; | |
| } |
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
| .container { | |
| background:rgba(2, 60, 117, 0.5); | |
| border-radius: 5px; | |
| box-shadow: 0 1.5px 0 0 rgba(0,0,0,0.1); | |
| width:409px; | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| .logo{ |
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
| .container { | |
| background:rgba(2, 60, 117, 0.5); | |
| border-radius: 5px; | |
| box-shadow: 0 1.5px 0 0 rgba(0,0,0,0.1); | |
| width:409px; | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| .logo{ |
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
| const utils = require("../index.js"); | |
| describe("MyJSUtilities", function () { | |
| describe("/String Utils", function () { | |
| let stringToRepeat; | |
| let repeatedString; | |
| beforeEach(function(){ | |
| stringToRepeat = "hello"; |
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
| async function fibonacci(n){ | |
| if (n < 0) throw new Error('must be 0 or greater'); | |
| if (n === 0) return 0; | |
| if (n === 1) return 1; | |
| return await fibonacci(n - 1) + await fibonacci(n - 2); | |
| } | |
| function isPrime(num){ | |
| for (let i = 2; i < num; i++) | |
| if (num % i === 0) return false; |
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
| it("should explicitly fail", function () { | |
| fail('Forced to fail'); | |
| }); |
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
| it("should explicitly fail", function () { | |
| fail('Forced to fail'); | |
| }); |
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
| it('it should throw a TypeError', function () { | |
| expect(throwsError).toThrowError(TypeError); | |
| }); |