Skip to content

Instantly share code, notes, and snippets.

@deadelus
deadelus / contracts...solidity_basics...10_Require.sol
Created November 7, 2022 17:40
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: MIT
pragma solidity 0.8.7;
contract test10 {
uint nombre;
function setNombre(uint _n) public {
if (_n == 10) {
revert('Nombre can be 10');
<?php
/**
* Description of VideoStream
*
* @author Rana
* @link http://codesamplez.com/programming/php-html5-video-streaming-tutorial
*/
class VideoStream
{
private $path = "";