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 } from 'react' | |
const App = () => { | |
const [count, setCount] = useState(0) | |
const handleClick = () => { | |
setCount((count) => { | |
return count + 1 | |
}) | |
} |
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 javax.microedition.lcdui.Display; | |
import javax.microedition.lcdui.Displayable; | |
import javax.microedition.midlet.MIDlet; | |
public class HelloMIDlet extends MIDlet | |
{ | |
public HelloWorldMIDlet() | |
{ | |
} |
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 ora.ch4; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.io.IOException; | |
import javax.microedition.lcdui.Display; | |
import javax.microedition.lcdui.TextBox; | |
import javax.microedition.lcdui.TextField; | |
import javax.microedition.lcdui.Ticker; | |
import javax.microedition.midlet.MIDlet; |
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
require('dotenv').config(); | |
module.exports = { | |
siteMetadata: { | |
title: `Cloudinary Images`, | |
description: `Get and Upload the images from Cloudinary`, | |
author: `Images`, | |
}, | |
plugins: [ | |
`gatsby-plugin-react-helmet`, | |
{ |
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 from "react" | |
import Layout from "../components/layout" | |
import SEO from "../components/seo" | |
import { useStaticQuery, graphql } from "gatsby" | |
const IndexPage = () => { | |
const data = useStaticQuery(graphql` | |
query CloudinaryImages { | |
allCloudinaryMedia { |
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 Head from 'next/head' | |
export default function Home() { | |
return ( | |
<> | |
<Head> | |
<title>Static Forms</title> | |
<meta name='description' content='Forms for Static Websites' /> | |
<link rel='icon' href='/favicon.ico' /> | |
</Head> |
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 id='contactForm' action='https://fabform.io/f/G1fiFX-' method='post'> | |
{/* Name Input */} | |
<div className='form-floating mb-3'> | |
<input | |
className='form-control' | |
id='name' | |
name='name' | |
type='text' | |
placeholder='Name' | |
/> |
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 multer from 'multer' | |
const axios = require('axios') | |
const FormData = require('form-data') | |
const fs = require('fs') | |
export const config = { | |
api: { | |
bodyParser: false, | |
}, | |
} |
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 axios from 'axios' | |
import { useState, useEffect } from "react" | |
function Copyright() { | |
const [tagline, setTagline] = useState('') | |
const currentYear = new Date().getFullYear() | |
useEffect(() => { |
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 lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Membership Registration</title> | |
<!-- CSS only --> | |
<link |