Skip to content

Instantly share code, notes, and snippets.

View cp-sumi-k's full-sized avatar

Sumita Canopas cp-sumi-k

View GitHub Profile
<template>
<div class="flex">
<div class="description">
<!-- description will be here -->
</div>
<div class="image">
<!-- image will be here. currenlty, can apply any background color here -->
</div>
</div>
</template>
<template>
<Header />
<LandingSection />
<MiddleSection />
<CTASection />
<Footer />
</template>
<template>
<div class="flex">
<div class="description">
We develop amazing products to help
Startups
bring their ideas to life.
<router-link :to="contactURL">
<span>Let's talk</span>
<font-awesome-icon
import { defineStore } from "pinia";
import axios from "axios";
export const useJobDetailStore = defineStore("job-detail", {
state: () => {
return {
item: null,
error: null,
};
},
/*
vuex store actions
*/
const actions = {
getJobs({ commit }) {
return new Promise((resolve, reject) => {
axios
.get(BASE_API_URL + "/api/careers")
.then((response) => {
/*
vuex store getters
*/
const getters = {
jobs: (state) => state.jobs,
jobById: (state) => state.jobById,
jobsError: (state) => state.jobsError,
}
/* vuex store state
To access it, we need getters like, store.getters.jobs
*/
const state = {
jobs: null,
jobById: null,
jobsError: null,
};
import { defineStore } from "pinia";
import axios from "axios";
export const useJobListStore = defineStore("jobs", {
state: () => {
return {
items: null,
error: null,
};
},
import axios from "axios";
const defaultState = {
jobs: null,
jobById: null,
jobsError: null,
};
const getters = {
jobs: (state) => state.jobs,
func parseJwtSignedData(tokenStr string) error {
rootCertStr, err := extractHeaderByIndex(tokenStr, 2) // get root cert from X5c header
if err != nil {
return err
}
intermediateCertStr, err := extractHeaderByIndex(tokenStr, 1) // get intermediate cert from X5c header
if err != nil {
return err