Skip to content

Instantly share code, notes, and snippets.

View manuelgeek's full-sized avatar
😎
#mANuEl💯

Magak Emmanuel manuelgeek

😎
#mANuEl💯
View GitHub Profile
<x-layout>
<x-section>
<x-tabs active="First">
<x-tab name="First">
First content goes here.
</x-tab>
<x-tab name="Second">
Second content goes here.
</x-tab>
@rubenvanassche
rubenvanassche / tests.yml
Last active September 23, 2024 12:08
A simple Laravel testing workflow for GitHub Actions
name: Tests (PHP)
on: [push]
jobs:
tests:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
@manuelgeek
manuelgeek / toast.js
Created August 4, 2019 14:32
a simple snippet
import Vue from 'vue'
import BootstrapVue from 'bootstrap-vue'
Vue.use(BootstrapVue)
export function toaster(msg = 'Message', title='Success',position='b-toaster-top-right', append = false){
return this.$bvToast.toast( msg, {
title: title,
toaster: position,
variant: 'success',
solid: true,
appendToast: append
@manuelgeek
manuelgeek / axios-catch-error.js
Created August 2, 2019 09:01 — forked from fgilio/axios-catch-error.js
Catch request errors with Axios
/*
* Handling Errors using async/await
* Has to be used inside an async function
*/
try {
const response = await axios.get('https://your.site/api/v1/bla/ble/bli');
// Success 🎉
console.log(response);
} catch (error) {
// Error 😨
@acfatah
acfatah / index.js
Last active May 26, 2024 10:59
Quasar Vue Router Middleware Pipeline Example
// router/index.js
import Vue from 'vue'
import VueRouter from 'vue-router'
import routes from './routes'
import middlewarePipeline from './middleware-pipeline'
Vue.use(VueRouter)
{"version":1,"resource":"file:///Users/manuelgeek/React/TheRoom/theroom-monorepo/apps/api/src/test/employer-service/opportunity-payment/__mocks__/stripe.ts","entries":[{"id":"olQy.ts","source":"renamed.source","timestamp":1658214641155},{"id":"QHt3.ts","timestamp":1658214718170}]}
@manuelgeek
manuelgeek / date.js
Last active July 12, 2019 12:42
js date function to get day of birth from date string
dates(){
var j = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
var dateString = "05/14/2019"; // date
var d = new Date(dateString);
var day = j[d.getDay()];
let gender = 'male' //female
switch(gender) {
case 'male':
if (day === j[0]){
@manuelgeek
manuelgeek / a-coding-activity-last-30-days.png
Last active June 4, 2019 10:25
coding activity last 30 days
a-coding-activity-last-30-days.png
@manuelgeek
manuelgeek / a-coding-languages.png
Last active June 4, 2019 10:19
coding languages last 30 days
a-coding-languages.png
@manuelgeek
manuelgeek / README-Template.md
Created April 30, 2019 09:33 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites