<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>Document</title>
+ <title>Interactive File Upload Demo</title>
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 | |
// required headers | |
header("Access-Control-Allow-Origin: *"); | |
header("Content-Type: application/json; charset=UTF-8"); | |
header("Access-Control-Allow-Methods: POST"); | |
header("Access-Control-Max-Age: 3600"); | |
header("Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With"); | |
include_once '../config/database.php'; | |
include_once '../objects/product.php'; |
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 | |
// required headers | |
header("Access-Control-Allow-Origin: *"); | |
header("Content-Type: application/json; charset=UTF-8"); | |
header("Access-Control-Allow-Methods: POST"); | |
header("Access-Control-Max-Age: 3600"); | |
header("Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With"); | |
include_once '../config/database.php'; |
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
Theme( | |
// use themedata to alter the styling of the child widgets | |
data: ThemeData(primarySwatch: Colors.purple), | |
child: Builder(builder: (c) { | |
return FlatProgressButton( | |
onPressed: () async { | |
_paystackDialog(c); | |
}, |
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 { defineNuxtPlugin } from '#app' | |
import axios from 'axios' | |
import { useAuthStore } from '~/stores/auth' | |
export default defineNuxtPlugin(({ $pinia }) => { | |
return { | |
provide: { | |
axios: ({ use_auth }: Record<string, any> = {}) => { | |
let headers = { 'Content-Type': 'application/json' }; | |
if (use_auth) { |
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 | |
class UserController { | |
protected $properties = ["id", "first_name", "last_name", "phone", "email", "created_at"]; | |
protected function getPaginatedData(string $key, LengthAwarePaginator $data) | |
{ | |
return [ | |
$key => $data->items(), |
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
package main | |
import ( | |
"bufio" | |
"fmt" | |
"os" | |
) | |
func main() { | |
tasks := []string{} |
<head>
+ <style>
+ body {
+ font-family: Arial, sans-serif;
+ padding: 20px;
+ background-color: #f9f9f9;
+ }