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 handleQuickPick = () => { | |
setFormData(resetFormData()); | |
const maxNumber = parseInt(get(drawData, 'max_number', 1)); | |
const maxNumberMegaplier = parseInt(get(drawData, 'max_extra_number', 1)); | |
const megaNumberRandom = uniqueRandom(1, maxNumberMegaplier); | |
const randomNumber = uniqueRandom(1, maxNumber); | |
const newFormData = {}; | |
const recursiveRandomNumber = ({ number, row, index }) => { | |
const numRow = get(newFormData, `row_${row}`, {}); |
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
importScripts('https://www.gstatic.com/firebasejs/8.2.6/firebase-app.js'); | |
importScripts('https://www.gstatic.com/firebasejs/8.2.6/firebase-messaging.js'); | |
// Initialize the Firebase app in the service worker by passing in | |
// your app's Firebase config object. | |
// https://firebase.google.com/docs/web/setup#config-object | |
const firebaseApp = firebase.initializeApp({ | |
apiKey: 'AIzaSyAAWS9ujRFQ17a2aZqUiP5Vdg6pTbe5D00', | |
authDomain: 'okgaminggroup.firebaseapp.com', | |
projectId: 'okgaminggroup', |
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
export CHROME_BIN=/usr/bin/google-chrome | |
export DISPLAY=:99.0 | |
sh -e /etc/init.d/xvfb start | |
sudo apt-get update | |
sudo apt-get install -y libappindicator1 fonts-liberation libasound2 libgconf-2-4 libnspr4 libxss1 libnss3 xdg-utils | |
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | |
sudo dpkg -i google-chrome*.deb |