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 | |
| // expected [3, 7, 8, 19] | |
| $data = [10, 11, 15, 22, 26, 27]; | |
| $possibilities = createPossibilities($data); | |
| $result = getResult($possibilities, $data); | |
| var_dump($result); | |
| //output array(4) { [0]=> int(3) [1]=> int(7) [2]=> int(8) [3]=> int(19) } | |
| function createPossibilities(array $data): array |
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
| import './App.css'; | |
| import axios from "axios"; | |
| import {useState} from "react"; | |
| import {useEffect} from "react"; | |
| import Button from '@material-ui/core/Button'; | |
| import TextField from '@material-ui/core/TextField'; | |
| import { DataGrid } from '@material-ui/data-grid'; | |
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
| import './App.css'; | |
| import axios from "axios"; | |
| import DisplayTask from "./components/DisplayTask"; | |
| import {useState} from "react"; | |
| import {useEffect} from "react"; | |
| function App() { | |
| useEffect(() => { | |
| axios.get('https://localhost:8000/api/projects/1/tasks') | |
| .then((response) => response.data) |
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
| import './App.css'; | |
| import axios from "axios"; | |
| import DisplayTask from "./components/DisplayTask"; | |
| import {useState} from "react"; | |
| import {useEffect} from "react"; | |
| function App() { | |
| useEffect(() => { | |
| axios.get('https://localhost:8000/api/projects/1/tasks') | |
| .then((response) => response.data) |
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
| import './App.css'; | |
| import axios from "axios"; | |
| import DisplayTask from "./components/DisplayTask"; | |
| import {useState} from "react"; | |
| import {useEffect} from "react"; | |
| function App() { | |
| useEffect(() => { | |
| axios.get('https://localhost:8000/api/projects/1/tasks') | |
| .then((response) => response.data) |
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
| import logo from './logo.svg'; | |
| import './App.css'; | |
| import axios from "axios"; | |
| import DisplayTask from "./components/DisplayTask"; | |
| import {useState} from "react"; | |
| import {useEffect} from "react"; | |
| function App() { | |
| useEffect(() => { | |
| axios.get('https://localhost:8000/api/tasks/3') |
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 | |
| namespace Roman; | |
| class Roman | |
| { | |
| public const ROMANS = [ | |
| 'M'=>1000, | |
| 'CM'=>900, | |
| 'D'=>500, |
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 | |
| namespace App\Entity; | |
| use App\Repository\UserRepository; | |
| use Doctrine\ORM\Mapping as ORM; | |
| use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity; | |
| use Symfony\Component\Security\Core\User\UserInterface; | |
| /** |
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 myButton = document.getElementById('my_button'); | |
| const result = document.getElementById('result'); | |
| myButton.addEventListener('click', () => { | |
| let firstValue = document.getElementById('number1').value; | |
| let operator = document.getElementById('operand').value; | |
| let secondValue = document.getElementById('number2').value; | |
| firstValue = parseInt(firstValue); |
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
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" | |
| content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
| <title>Document</title> | |
| </head> | |
| <body> |