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
const express = require('express'); | |
const app = express(); | |
app.use(express.json()); | |
app.post('/cloud-upload', (request, response) => {}); | |
const PORT = process.env.PORT || 5000; | |
app.listen(PORT, () => |
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
const express = require('express'); | |
const multer = require('multer'); | |
const upload = multer(); | |
const app = express(); | |
app.use(express.json()); | |
app.post('/cloud-upload', upload.single('file'), (request, response) => {}); |
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
const express = require('express'); | |
const multer = require('multer'); | |
const cors = require('cors'); | |
const upload = multer(); | |
const app = express(); | |
app.use(express.json()); | |
app.use((request, response, next) => { |
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
const express = require('express'); | |
const multer = require('multer'); | |
const cors = require('cors'); | |
const DataUri = require('datauri'); | |
const path = require('path'); | |
const upload = multer(); |
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
const express = require('express'); | |
const multer = require('multer'); | |
const cors = require('cors'); | |
const dotenv = require('dotenv'); | |
const path = require('path'); | |
const DataUri = require('datauri'); | |
cloudinary = require('cloudinary').v2; | |
dotenv.config(); |
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 name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<script src="https://unpkg.com/axios/dist/axios.min.js"></script> | |
<title>Document</title> | |
</head> | |
<body> |
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
const fruits = ["apple", "orange", "tomato", "mango", "blackberry"]; | |
const arr1 = []; | |
const arr2 = []; | |
const arr3 = []; | |
fruits.forEach((item, index) => { | |
const numArrays = 3 //the number of arrays required | |
const check = (index+1) % numArrays; | |
switch(check) { |
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 or import the dependencies | |
const fs = require("fs"); | |
const sqlite3 = require("sqlite3").verbose(); | |
// Read the SQL file | |
const dataSql = fs.readFileSync("./data.sql").toString(); | |
// Setup the database connection | |
let db = new sqlite3.Database("mydatabase", err => { | |
if (err) { |
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
-- Selects season name, group id and client id | |
WITH RECURSIVE getSeason(SeasonName, GroupID, SeasonID, ClientID) AS ( | |
SELECT | |
DISTINCT Seasons.SeasonName, | |
SeasonClients.GroupID, | |
SeasonClients.SeasonID, | |
SeasonClients.ClientID | |
FROM SeasonClients | |
INNER JOIN Seasons ON SeasonClients.SeasonID = Seasons.SeasonID | |
WHERE |
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
[ | |
"fa-adjust", | |
"fa-adn", | |
"fa-align-center", | |
"fa-align-justify", | |
"fa-align-left", | |
"fa-align-right", | |
"fa-ambulance", | |
"fa-anchor", | |
"fa-android", |
OlderNewer