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
/** | |
At this canvas width, the normal one gets rendered but the offscreen one is still empty. | |
However, if you change this to a lower number both will work. | |
*/ | |
const WIDTH = 20000; | |
const [firstCanvas, secondCanvas] = document.querySelectorAll('canvas'); | |
firstCanvas.width = WIDTH; | |
secondCanvas.width = WIDTH; |
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 { | |
LazyLanding, | |
LazyHome | |
} from './pages/Pages.lazy'; | |
class Root extends React.Component { | |
render() { | |
return ( | |
<Switch> | |
<Route exact path="/" component={LazyLanding} /> |
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 Loadable from 'react-loadable'; | |
// Landing page | |
const LazyLandingPage = Loadable({ | |
loader: () => import('./landing/Landing.page'), | |
modules: ['./landing/Landing.page'], | |
webpack: () => [require.resolveWeak('./landing/Landing.page')] | |
}); | |
const LazyLanding = props => <LazyLandingPage {...props} />; |
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> | |
<head> | |
<meta charset="utf-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>LAb10</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" type="text/css" media="screen" href="main.css" /> | |
<script src="main.js"></script> |
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 | |
define ('WS_URL', 'http://localhost:1234/lab12/ws.php'); | |
try { | |
$client = new SoapClient(null, // nu furnizam niciun WSDL | |
array('location' => WS_URL, // adresa serviciului Web | |
'uri' => 'http://web.info/porto', // spatiul de nume corespunzator serviciului Web apelat | |
'trace' => 1 // se vor furniza informatii de depanare | |
) | |
); |
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 | |
define ('WS_URL', 'http://localhost/weather/ws.php'); | |
try { | |
$client = new SoapClient(null, // nu furnizam niciun WSDL | |
array('location' => WS_URL, // adresa serviciului Web | |
'uri' => 'http://web.info/porto', // spatiul de nume corespunzator serviciului Web apelat | |
'trace' => 1 // se vor furniza informatii de depanare | |
) |
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 | |
define ('WS_URL', 'http://localhost/weather.php'); | |
try { | |
$client = new SoapClient(null, | |
array('location' => WS_URL, | |
'uri' => 'http://web.info/porto', // | |
'trace' => 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 | |
$domtree = new DOMDocument('1.0', 'UTF-8'); | |
$xmlRoot = $domtree -> createElement("books"); | |
$book = $domtree -> createElement("book"); | |
$book -> appendChild( $domtree -> createElement("title", "Harry Potter") ); | |
$book -> appendChild( $domtree -> createElement("description", "Best book") ); | |
$book -> setAttribute("class", "gallery"); |
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
<?xml version="1.0" encoding="UTF-8" ?> | |
<collection> | |
<books> | |
<book> | |
<title> bla bla bla </title> | |
<author_id> 13 </author_id> | |
<background> BG.com/blablabla.png </background> | |
<price>130</price> | |
<description> aceasta este o descriere </description> | |
<publication> |
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></head> | |
<body> | |
<form class="form" id="loginForm" action="./login.php" method="POST"> | |
<!-- --> | |
</form> | |
<?php |
NewerOlder