Skip to content

Instantly share code, notes, and snippets.

View Kaperskyguru's full-sized avatar
🎯
Focusing

Solomon Eseme Kaperskyguru

🎯
Focusing
View GitHub Profile
const { Builder, By, ChromiumWebDriver } = require("selenium-webdriver");
const chrome = require("selenium-webdriver/chrome");
async function DynamicTableLocallyExample() {
// launch the browser
let driver = await new Builder().forBrowser("chrome").build();
version: "3.5"
services:
api:
build:
context: .
dockerfile: Dockerfile
args:
PACKAGE_PATH: api
WORKING_DIR: /usr/src/
const puppeteer = require("puppeteer");
const jobUrl = process.env.JOB_URL;
let page;
let browser;
let cardArr = [];
class Jobs {
static async init() {
// console.log('Loading Page ...')
import React from 'react';
import {
SafeAreaView,
StyleSheet,
ScrollView,
View,
Text,
StatusBar,
} from 'react-native';
<script>
import { mapGetters } from "vuex";
import ErrorService from "../Services/ErrorService";
export default {
name: "HelloWorld",
props: {
todo: Object,
},
<script>
import { mapGetters } from "vuex";
import ErrorService from "../Services/ErrorService";
export default {
name: "HelloWorld",
props: {
todo: Object,
},
import Vue from "vue";
import Vuex from "vuex";
import { ErrorService } from "./Services/ErrorService";
import axios from "axios";
Vue.use(Vuex);
const store = new Vuex.Store({
state: {
todos: [],
import Vue from "vue";
import App from "./App.vue";
import { ErrorService } from "./Services/ErrorService";
import store from "./store";
Vue.config.productionTip = false;
// Handle all Vue errors
Vue.config.errorHandler = (error) => ErrorService.onError(error);
import Swal from "sweetalert2";
import "sweetalert2/dist/sweetalert2.min.css";
export default class ErrorService {
constructor() {
// this.initHandler();
}
static onError(error) {
const response = error.response;
<template>
<div class="container-fluid">
<div class="p-4 justify-content-center">
<logo />
</div>
<div class="row">
<post v-for="(post, i) in posts" :key="i" :post="post" />
</div>
</div>
</template>