<!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 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 | |
// 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 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 | |
// 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 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
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 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 { 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 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 | |
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 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
package main | |
import ( | |
"bufio" | |
"fmt" | |
"os" | |
) | |
func main() { | |
tasks := []string{} |
<head>
+ <style>
+ body {
+ font-family: Arial, sans-serif;
+ padding: 20px;
+ background-color: #f9f9f9;
+ }
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
# Stage 1: Build Stage (Compile TypeScript to JavaScript) | |
FROM node:18 AS builder | |
WORKDIR /app | |
# Copy package files and install ALL dependencies (including devDependencies for TS compilation) | |
COPY package*.json ./ | |
# Use npm ci for deterministic installs if you have package-lock.json | |
RUN npm ci | |
# Or: RUN yarn install --frozen-lockfile |
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
export type StandardQuoteResponse = { | |
fees?: StandardFees; | |
details?: BridgeDetails; | |
steps: BridgeSteps[]; | |
}; | |
export type StandardFees = { | |
gas: AssetAmount | undefined; | |
bridgeProtocolFees: AssetAmount | undefined; | |
}; |
OlderNewer