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
# For development purposes, note Next.js supports a .env.local | |
# file, which is already configured to be git ignored. | |
# Read more about Next.js support of environment variables here: | |
# https://nextjs.org/docs/basic-features/environment-variables | |
# The public URL to use for absolute URLs, which are required when | |
# the Next.js app is run within Sitecore editors. | |
# This should match the `serverSideRenderingEngineApplicationUrl` | |
# in your Sitecore configuration (see \sitecore\config\sxastarter.config). | |
# Be sure to update these values accordingly as your public endpoint changes. |
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 { clinics, PrismaClient } from "@prisma/client"; | |
import * as fs from "fs"; | |
import * as path from "path"; | |
import * as csv from "fast-csv"; | |
const prisma = new PrismaClient(); | |
type ClinicsCsvRow = Omit<clinics, "date_created" | "date_updated">; | |
async function main() { |
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
{ | |
"name": "packages", | |
"version": "1.0.0", | |
"main": "index.js", | |
"license": "MIT", | |
"private": true, | |
"scripts": { | |
"start": "concurrently \"wsrun --parallel start\"" | |
}, | |
"workspaces": [ |
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 { NextRequest, NextResponse } from 'next/server' | |
export function middleware(req: NextRequest) { | |
const basicAuth = req.headers.get('authorization') | |
if (basicAuth) { | |
const auth = basicAuth.split(' ')[1] | |
const [user, pwd] = Buffer.from(auth, 'base64').toString().split(':') | |
if (user === '4dmin' && pwd === 'testpwd123') { |
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
var nodemailer = require('nodemailer'); | |
var fromEmail = '[email protected]'; | |
var fromPassword = ''; | |
var toEmail = ['[email protected]']; | |
// Defined transport | |
var transporter = nodemailer.createTransport({ | |
service: 'Gmail', |
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
var nodemailer = require('nodemailer'); | |
var fromEmail = '[email protected]'; | |
var fromPassword = '****'; | |
var toEmail = ['[email protected]']; | |
// Defined transport | |
var transporter = nodemailer.createTransport({ | |
service: 'Gmail', |
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
// share variables with javascript (webpack) | |
variables.scss | |
:export { | |
--hww-dark-blue: #0d2126; | |
--hww-blue: #00b0e0; | |
--hww-light: #ffffff; | |
--hww-secondary-green: #57bf9e; | |
--hww-secondary-yellow: #e8c71c; | |
--hww-secondary-red: #de2b47; |
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
#include<stdio.h> | |
void examen_sorpresa(); | |
int factorial(int n); | |
char name[20]; | |
int dia, mes, year, edad, sum, sum_fact, i, fact; | |
char pregunta; | |
int main() { |
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
#include<stdio.h> | |
void test(); | |
char name[20]; | |
int num1, num2, num3, num, i, sum; | |
char pregunta; | |
int main() { | |
test(); |
NewerOlder