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 { promisify } = require('util'); | |
const readline = require("readline"); | |
let rl = readline.createInterface({ input: process.stdin, output: process.stdout }); | |
rl.question[promisify.custom] = (question) => { | |
return new Promise((resolve) => { | |
rl.question(question, resolve); | |
}); | |
}; | |
rl.questionSync = promisify(rl.question); |
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"> | |
<title><!DOCTYPE html> | |
<html> | |
<head> | |
<title>Google Slides API Quickstart</title> | |
<meta charset="utf-8" /> | |
</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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>teste</title> | |
<body> | |
<p> | |
Google Docs API Quickstart | |
</p> | |
<!--Add buttons to initiate auth sequence and sign out--> |
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 {Fragment, useState, useEffect} from 'react' | |
import {Dialog, Disclosure, Popover, RadioGroup, Tab, Transition} from '@headlessui/react' | |
import {MenuIcon, SearchIcon, ShieldCheckIcon, ShoppingBagIcon, XIcon} from '@heroicons/react/outline' | |
import {CheckIcon, ChevronDownIcon, PlusSmIcon, QuestionMarkCircleIcon, StarIcon} from '@heroicons/react/solid' | |
import MainLayout from "../src/Layouts/Main"; | |
import {useTranslation} from "react-i18next"; | |
import {API} from 'aws-amplify' | |
import {listColors, listSizes, listCategories} from "../src/graphql/queries"; |
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 NextAuth from 'next-auth' | |
import Providers from 'next-auth/providers' | |
import {Auth} from 'aws-amplify' | |
export default NextAuth({ | |
pages: { | |
error: "/login", // Changing the error redirect page to our custom login page | |
}, | |
callbacks: { | |
async session(session, token) { |
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 | |
namespace App\Services\BankFileReaders\Itau\Retorno\Boleto; | |
class Boleto | |
{ | |
private $file; |
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 {createContext, useState} from "react"; | |
export const AuthContext = createContext() | |
export const AuthProvider = ({children}) => { | |
const [user, setUser] = useState({}) | |
return <AuthContext.Provider value={[user, setUser]}> | |
{children} | |
</AuthContext.Provider> | |
} |
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
#!/bin/bash | |
TARGET="/var/www/html" | |
GIT_DIR="/home/ubuntu/crm.git" | |
BRANCH="master" | |
TARGET_HOMOLOGACAO="/home/ubuntu/homologacao" | |
# GIT_DIR="/home/ubuntu/crm" | |
BRANCH_HOMOLOGACAO="homologacao" | |
while read oldrev newrev ref | |
do |
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
#!/bin/bash | |
TARGET="/var/www/" | |
GIT_DIR="/home/{{mysqlUser}}/laravel.git" | |
BRANCH="master" | |
GREEN='\033[0;32m' # green, in true | |
NC='\033[0m' # No Color | |
BLUE='\033[0;34m' | |