This file contains 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
docker run -it --rm \ | |
--volume /var/run/docker.sock:/var/run/docker.sock \ | |
--volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw \ | |
--entrypoint="install" \ | |
appwrite/appwrite:0.15.3 |
This file contains 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 { useState, useEffect } from "react"; | |
const App = () => { | |
const [posts, setPosts] = useState([]); | |
useEffect(() => { | |
fetch("https://jsonplaceholder.typicode.com/posts") | |
.then((res) => res.json()) | |
.then((data) => { | |
console.log(data); |
This file contains 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 { useState, useEffect } from "react"; | |
// import axios library - make sure you install it using - npm i axios | |
import axios from "axios"; | |
const App = () => { | |
const [posts, setPosts] = useState([]); | |
useEffect(() => { | |
axios |
This file contains 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 React, { Component } from "react"; | |
class App extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
posts: [] | |
}; | |
} |
This file contains 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 React, { Component } from "react"; | |
// import axios library - make sure you install it using - npm i axios | |
import axios from "axios"; | |
class App extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { |
This file contains 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 React, { useState, useEffect } from 'react'; | |
import { request } from 'graphql-request'; | |
import Paginate from './Paginate'; | |
const App = () => { | |
const [blogPosts, setBlogPosts] = useState([]); | |
const [currentPage, setCurrentPage] = useState(1); | |
const [totalPosts, setTotalPosts] = useState(); | |
const [postsPerPage] = useState(3); |
This file contains 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 | |
if (isset($_POST['generate'])) { | |
$name = strtoupper($_POST['name']); | |
//designed certificate picture | |
$image = "certi.png"; | |
$createimage = imagecreatefrompng($image); |
This file contains 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
<form method="post" action=""> | |
<div class="form-group col-sm-6"> | |
<input type="text" name="name" class="form-control" id="name" placeholder="Enter Name Here..."> | |
</div> | |
<button type="submit" name="generate" class="btn btn-primary">Generate</button> | |
</form> |
This file contains 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
imagettftext ( resource $image , float $size , float $angle , int $x , int $y , int $color , string $fontfile , string $text ) |
This file contains 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> | |
<title></title> | |
</head> | |
<body> | |
<form action="action.php" method="POST"> | |
<p>A simple Calculator built with php oop</p> | |
<label>First Number</label><br> |
NewerOlder