Skip to content

Instantly share code, notes, and snippets.

View SamuelMwangiW's full-sized avatar
🎯
Focusing

Samuel Mwangi SamuelMwangiW

🎯
Focusing
View GitHub Profile
<script setup>
import InputError from '@/Components/InputError.vue'
import InputLabel from '@/Components/InputLabel.vue'
import PrimaryButton from '@/Components/PrimaryButton.vue'
import TextInput from '@/Components/TextInput.vue'
import AuthenticatedLayout from '@/Layouts/AuthenticatedLayout.vue'
import {Head, useForm, usePage} from '@inertiajs/inertia-vue3'
import {Client} from 'africastalking-client'
import {onMounted, ref} from 'vue'
@SamuelMwangiW
SamuelMwangiW / docker-compose.yaml
Last active February 6, 2024 23:10
A minimal docker-compose.yaml required to run Laravel Sail
version: '3'
services:
laravel.test:
build:
context: ./vendor/laravel/sail/runtimes/8.3
dockerfile: Dockerfile
args:
WWWGROUP: '${WWWGROUP}'
image: sail-8.3/app
ports:
@SamuelMwangiW
SamuelMwangiW / pint-fixer.yaml
Last active January 13, 2024 14:58
A Laravel pint config json and Github workflow to ensure every push is formated uniformly
name: Check & fix styling
on: [push]
permissions:
contents: write
jobs:
pint-fixer:
runs-on: ubuntu-latest
@SamuelMwangiW
SamuelMwangiW / docker-compose.yaml
Last active March 17, 2022 22:11
An example docker-compose YAML to deploy an Traefik to proxy an application
version: "3.3"
services:
traefik:
image: "traefik:latest"
command:
- --providers.docker
- --entrypoints.web.address=:80
- --entrypoints.websecure.address=:443
- --api
<?php
class InflightEntertainment
{
private int $flightLength;
private array $movieDuration;
private array $matchedMovies = [];
public function __construct(int $lengthOfFlight, array $movieDuration)
{