Skip to content

Instantly share code, notes, and snippets.

View jkirira's full-sized avatar

James Kirira jkirira

  • Nairobi, Kenya
View GitHub Profile
@jkirira
jkirira / Dockerfile
Created August 15, 2024 10:22
Docker Ubuntu 22.04 Php*
FROM ubuntu:22.04
ARG DEBIAN_FRONTEND=noninteractive
# change php version from here e.g. ARG PHP_VERSION=7.4
ARG PHP_VERSION=7.1
RUN apt clean \
&& apt update -y \
&& apt install -y software-properties-common \
[
"Hello": "World",
"Como": [
"Estas": "Si",
"Esta": "Bien"
]
]
@jkirira
jkirira / login.spec.js
Last active February 11, 2023 19:36
Simple js testing spec for a vue login component
require('jsdom-global')()
const assert = require('assert')
import UserLogin from "../../../components/UserLogin";
import { mount } from '@vue/test-utils'
describe("login", () => {
let component;
const wrapper = mount(UserLogin)
@jkirira
jkirira / index.html
Last active March 2, 2022 10:18
Vue with plain css loader
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<title>codesandbox</title>
</head>
<body>