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
// delete all users from the auth console | |
module.exports.deleteUsers = async (req, res) => { | |
return admin | |
.auth() | |
.listUsers() | |
.then((result) => { | |
const markedForDelete = []; | |
result.users.forEach((user) => { | |
markedForDelete.push(user.uid); |
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
/* | |
##Device = Desktops | |
##Screen = 1281px to higher resolution desktops | |
*/ | |
@media (min-width: 1281px) { | |
//CSS | |
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 { Card, Col, Divider, Form, Input, Row } from "antd"; | |
import { LocationSearchInput } from "./location-search"; | |
import { geocodeByAddress, getLatLng } from "react-places-autocomplete"; | |
import { FormComponentProps } from "antd/lib/form/Form"; | |
type Props = {} & FormComponentProps; | |
type State = { | |
address: string; | |
}; |
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 React, { PureComponent } from 'react'; | |
import { Button, } from 'antd'; | |
// npm i jspdf | |
import jsPDF from 'jspdf' | |
// npm i jspdf-autotable | |
import 'jspdf-autotable'; | |
export default class pdfGenerate extends PureComponent { |
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 | |
$countryArray = array( | |
'AD'=>array('name'=>'ANDORRA','code'=>'376'), | |
'AE'=>array('name'=>'UNITED ARAB EMIRATES','code'=>'971'), | |
'AF'=>array('name'=>'AFGHANISTAN','code'=>'93'), | |
'AG'=>array('name'=>'ANTIGUA AND BARBUDA','code'=>'1268'), | |
'AI'=>array('name'=>'ANGUILLA','code'=>'1264'), | |
'AL'=>array('name'=>'ALBANIA','code'=>'355'), | |
'AM'=>array('name'=>'ARMENIA','code'=>'374'), | |
'AN'=>array('name'=>'NETHERLANDS ANTILLES','code'=>'599'), |
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
const HOST_URL = process.env.BASE_URL || 'http://localhost:3000'; | |
//const API_URL = process.env.BASE_API_URL || 'http://14.225.11.12:3030/api/client'; | |
const API_URL = process.env.BASE_API_URL || 'http://localhost:3000'; | |
const webpack = require("webpack"); | |
module.exports = { | |
mode: 'spa', |
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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
## | |
## You may need to uncomment (remove #) the following line for some hosting environments, | |
## if you have installed to a subdirectory, enter the name here also. | |
## Example: for https://site.com enter: "/", for https://site.com/something enter: "/something/" | |
## | |
# RewriteBase / |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Client</title> | |
<base href="/" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<link rel="icon" type="image/x-icon" href="favicon.ico" /> | |
{{--angular styles begin--}} | |
{{--angular styles end--}} |
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
var gulp = require('gulp'); | |
var rimraf = require('rimraf'); | |
var fs = require('fs'); | |
var cheerio = require('cheerio'); | |
gulp.task('dist', function(done) { | |
//remove old dist files from laravel public folder | |
rimraf.sync('./../server/public/client'); |
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 | |
/** | |
* == About this Gist == | |
* | |
* Code to add to wp-config.php to enhance information available for debugging. | |
* | |
* You would typically add this code below the database, language and salt settings | |
* | |
* Oh.. and *do* make sure you change the path to the log file to a proper file path on your server (make sure it exists). | |
* |